Skip to content

Commit 7710adb

Browse files
authored
Add support for python 3.13 (#273)
* Add support for python 3.13 Remove support for python 3.8. Upgrade all dependencies Replaced sphinx docs googleanalytics module as current one is deprecated. Reformatted code using new version of black.. Use new merge-requires github action AB#10062
1 parent e533cdf commit 7710adb

35 files changed

+251
-198
lines changed

.env.tools

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export TOOLS_BUILDNUMBER=20241115.3

.github/workflows/python-package.yml renamed to .github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python Quality Control
4+
name: Build and test
55

6-
on: [pull_request]
6+
on:
7+
workflow_call:
78

89
jobs:
910
build:
1011
strategy:
1112
fail-fast: false
1213
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12" ]
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13" ]
1415
os: [ubuntu-latest, windows-latest]
1516
runs-on: ${{ matrix.os }}
1617
steps:
@@ -66,7 +67,6 @@ jobs:
6667
./scripts/unittests.sh
6768
shell: bash
6869
- name: Run type-hint checks
69-
if: ${{ matrix.python-version != '3.12' }}
7070
run: |
7171
./scripts/version.sh
7272
python3 -m pyright --stats archivist
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow configures the repository specific choices of which CI builds
2+
# must pass in order for a build to merge. This allows a sinlge global teraform
3+
# configured rule to require a "well known" check in each repository. Whilst
4+
# granting repository stakeholders the ability configure what workflows are
5+
# appropriate to satisfy that check.
6+
name: Merge Requires
7+
on:
8+
push:
9+
10+
jobs:
11+
ci:
12+
secrets: inherit
13+
uses: ./.github/workflows/ci.yml
14+
release:
15+
if: ${{ github.event_name == 'release' }}
16+
secrets: inherit
17+
uses: ./.github/workflows/package.yml
18+
19+
merge-checks-ok:
20+
runs-on: ubuntu-latest
21+
needs: [ci]
22+
steps:
23+
- name: ok
24+
run: |
25+
echo "This code is mergeable"
26+
27+
release-checks-ok:
28+
runs-on: ubuntu-latest
29+
if: ${{ github.event_name == 'release' }}
30+
needs: [ci, release]
31+
steps:
32+
- name: ok
33+
run: |
34+
echo "This code is releasable"

.github/workflows/python-publish.yml renamed to .github/workflows/package.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# This workflow will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Upload Python Package
4+
name: Package and Publish
55

66
on:
7-
release:
8-
types: [created]
7+
workflow_call:
98

109
jobs:
11-
deploy:
10+
build:
1211

1312
runs-on: ubuntu-latest
1413

DEVELOPMENT.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ To run the unittests:
200200
task unittests
201201
```
202202

203-
##### Python 3.9
203+
##### Python 3.10
204204

205-
To build the docker builder image with Python 3.9:
205+
To build the docker builder image with Python 3.10:
206206
```bash
207-
task builder-3.9
207+
task builder-3.10
208208
```
209209

210210
To check the style
@@ -217,11 +217,11 @@ To run the unittests:
217217
task unittests
218218
```
219219

220-
##### Python 3.10
220+
##### Python 3.11
221221

222-
To build the docker builder image with Python 3.10:
222+
To build the docker builder image with Python 3.11:
223223
```bash
224-
task builder-3.10
224+
task builder-3.11
225225
```
226226

227227
To check the style
@@ -234,11 +234,11 @@ To run the unittests:
234234
task unittests
235235
```
236236

237-
##### Python 3.11
237+
##### Python 3.12
238238

239-
To build the docker builder image with Python 3.11:
239+
To build the docker builder image with Python 3.12:
240240
```bash
241-
task builder-3.11
241+
task builder-3.12
242242
```
243243

244244
To check the style
@@ -251,11 +251,11 @@ To run the unittests:
251251
task unittests
252252
```
253253

254-
##### Python 3.12
254+
##### Python 3.13
255255

256-
To build the docker builder image with Python 3.12:
256+
To build the docker builder image with Python 3.13:
257257
```bash
258-
task builder-3.12
258+
task builder-3.13
259259
```
260260

261261
To check the style

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ documented at https://docs.datatrails.ai
1212
Support
1313
=======
1414

15-
This package currently is tested against Python versions 3.8,3.9,3.10,3.11 and 3.12.
15+
This package currently is tested against Python versions 3.9,3.10,3.11, 3.12 and 3.13.
1616

17-
The current default version is 3.8 - this means that this package will not
18-
use any features specific to versions 3.9 and later.
17+
The current default version is 3.9 - this means that this package will not
18+
use any features specific to versions 3.10 and later.
1919

2020
After End of Life of a particular Python version, support is offered on a best effort
2121
basis. We may ask you to update your Python version to help solve the problem,

Taskfile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ tasks:
1717
- ./scripts/builder.sh pip-audit -r requirements.txt
1818

1919
builder:
20-
desc: Build a docker environment with the right dependencies and utilities
21-
cmds:
22-
- ./scripts/build.sh "3.8"
23-
24-
builder-3.9:
2520
desc: Build a docker environment with the right dependencies and utilities
2621
cmds:
2722
- ./scripts/build.sh "3.9"
@@ -41,6 +36,11 @@ tasks:
4136
cmds:
4237
- ./scripts/build.sh "3.12"
4338

39+
builder-3.13:
40+
desc: Build a docker environment with the right dependencies and utilities
41+
cmds:
42+
- ./scripts/build.sh "3.13"
43+
4444
check:
4545
desc: Check the style, bug and quality of the code
4646
deps: [about]

archivist/notebooks/Checking the Dog's Weight.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
38-
"\n",
3938
"from json import dumps as json_dumps\n",
4039
"from os import getenv\n",
4140
"\n",

archivist/notebooks/Create Artist and Album Release Info.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"metadata": {},
3535
"outputs": [],
3636
"source": [
37-
"\n",
3837
"from json import dumps as json_dumps\n",
3938
"from os import getenv\n",
4039
"\n",

archivist/notebooks/Feeding the Dog Hourly.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
38-
"\n",
3938
"from json import dumps as json_dumps\n",
4039
"from os import getenv\n",
4140
"\n",

0 commit comments

Comments
 (0)