Skip to content

Commit 5ab8b6b

Browse files
MatthewMiddlehurstchrisholder
authored andcommitted
[MNT,ENH] Update to allow Python 3.13 (#2608)
* python 3.13 * tensorflow * esig * tensorflow * tensorflow * esig and matrix profile * signature notebook * remove prts * fix * remove annoying deps from all_extras * Update pyproject.toml
1 parent f1d4da2 commit 5ab8b6b

20 files changed

+81
-64
lines changed

.github/actions/cpu_all_extras/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Pip install all_extras with CPU versions
22
description: "For CI testing install the CPU version of dependencies with all extras if on ubuntu"
33

44
inputs:
5+
python_version:
6+
description: "Python version used"
7+
required: false
8+
default: "3.11"
59
additional_extras:
610
description: "Comma-separated list of additional extras to install"
711
required: false
@@ -11,7 +15,7 @@ runs:
1115
using: "composite"
1216
steps:
1317
- name: Install CPU TensorFlow
14-
if: runner.os == 'Linux'
18+
if: ${{ runner.os == 'Linux' && inputs.python_version != '3.13' }}
1519
uses: nick-fields/retry@v3
1620
with:
1721
timeout_minutes: 30

.github/utilities/run_examples.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ set -euxo pipefail
66
CMD="jupyter nbconvert --to notebook --inplace --execute --ExecutePreprocessor.timeout=600"
77

88
excluded=(
9-
"examples/transformations/signature_method.ipynb"
9+
# try removing when 3.9 is dropped
10+
"examples/transformations/signature_method.ipynb"
1011
)
1112
if [ "$1" = true ]; then
1213
excluded+=(

.github/workflows/fast_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- uses: actions/setup-python@v5
14+
- name: Setup Python 3.11
15+
uses: actions/setup-python@v5
1516
with:
16-
python-version: "3.10"
17+
python-version: "3.11"
1718

1819
- name: Build project
1920
run: |

.github/workflows/issue_assigned.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
with:
2626
sparse-checkout: .github/utilities
2727

28-
- name: Setup Python 3.10
28+
- name: Setup Python 3.11
2929
uses: actions/setup-python@v5
3030
with:
31-
python-version: "3.10"
31+
python-version: "3.11"
3232

3333
- name: Install PyGithub
3434
run: pip install -Uq PyGithub

.github/workflows/issue_comment_edited.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
with:
2727
sparse-checkout: .github/utilities
2828

29-
- name: Setup Python 3.10
29+
- name: Setup Python 3.11
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: "3.10"
32+
python-version: "3.11"
3333

3434
- name: Install PyGithub
3535
run: pip install -Uq PyGithub

.github/workflows/issue_comment_posted.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
with:
1515
sparse-checkout: .github/utilities
1616

17-
- name: Setup Python 3.10
17+
- name: Setup Python 3.11
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: "3.10"
20+
python-version: "3.11"
2121

2222
- name: Install PyGithub
2323
run: pip install -Uq PyGithub

.github/workflows/periodic_tests.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Setup Python 3.10
21+
- name: Setup Python 3.11
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: "3.10"
24+
python-version: "3.11"
2525

2626
- name: Run check-manifest
2727
uses: pre-commit/action@v3.0.1
@@ -35,10 +35,10 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@v4
3737

38-
- name: Setup Python 3.10
38+
- name: Setup Python 3.11
3939
uses: actions/setup-python@v5
4040
with:
41-
python-version: "3.10"
41+
python-version: "3.11"
4242

4343
- name: Run pre-commit
4444
uses: pre-commit/action@v3.0.1
@@ -57,17 +57,17 @@ jobs:
5757
brew install bash
5858
/opt/homebrew/bin/bash --version
5959
60-
- name: Setup Python 3.10
60+
- name: Setup Python 3.11
6161
uses: actions/setup-python@v5
6262
with:
63-
python-version: "3.10"
63+
python-version: "3.11"
6464

6565
- name: Use numba cache to set env variables but not restore cache
6666
uses: ./.github/actions/numba_cache
6767
with:
6868
cache_name: "run-notebook-examples"
6969
runner_os: ${{ runner.os }}
70-
python_version: "3.10"
70+
python_version: "3.11"
7171
restore_cache: "false"
7272

7373
- uses: ./.github/actions/cpu_all_extras
@@ -92,10 +92,10 @@ jobs:
9292
- name: Checkout
9393
uses: actions/checkout@v4
9494

95-
- name: Setup Python 3.10
95+
- name: Setup Python 3.11
9696
uses: actions/setup-python@v5
9797
with:
98-
python-version: "3.10"
98+
python-version: "3.11"
9999

100100
- name: Install aeon and dependencies
101101
uses: nick-fields/retry@v3
@@ -117,17 +117,17 @@ jobs:
117117
- name: Checkout
118118
uses: actions/checkout@v4
119119

120-
- name: Setup Python 3.10
120+
- name: Setup Python 3.11
121121
uses: actions/setup-python@v5
122122
with:
123-
python-version: "3.10"
123+
python-version: "3.11"
124124

125125
- name: Use numba cache to set env variables but not restore cache
126126
uses: ./.github/actions/numba_cache
127127
with:
128128
cache_name: "test-no-soft-deps"
129129
runner_os: ${{ runner.os }}
130-
python_version: "3.10"
130+
python_version: "3.11"
131131
restore_cache: "false"
132132

133133
- name: Install aeon and dependencies
@@ -157,7 +157,7 @@ jobs:
157157
fail-fast: false
158158
matrix:
159159
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
160-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
160+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
161161

162162
steps:
163163
- name: Checkout
@@ -184,6 +184,7 @@ jobs:
184184

185185
- uses: ./.github/actions/cpu_all_extras
186186
with:
187+
python_version: ${{ matrix.python-version }}
187188
additional_extras: "dev"
188189

189190
- name: Show dependencies
@@ -206,10 +207,10 @@ jobs:
206207
- name: Checkout
207208
uses: actions/checkout@v4
208209

209-
- name: Setup Python 3.10
210+
- name: Setup Python 3.11
210211
uses: actions/setup-python@v5
211212
with:
212-
python-version: "3.10"
213+
python-version: "3.11"
213214

214215
- name: Disable Numba JIT
215216
run: echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV

.github/workflows/pr_core_dep_import.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v4
2626

27-
- name: Setup Python 3.10
27+
- name: Setup Python 3.11
2828
uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.10"
30+
python-version: "3.11"
3131

3232
- name: Install aeon and dependencies
3333
uses: nick-fields/retry@v3

.github/workflows/pr_examples.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030
brew install bash
3131
/opt/homebrew/bin/bash --version
3232
33-
- name: Setup Python 3.10
33+
- name: Setup Python 3.11
3434
uses: actions/setup-python@v5
3535
with:
36-
python-version: "3.10"
36+
python-version: "3.11"
3737

3838
- if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no numba cache') }}
3939
name: Restore numba cache
4040
uses: ./.github/actions/numba_cache
4141
with:
4242
cache_name: "run-notebook-examples"
4343
runner_os: ${{ runner.os }}
44-
python_version: "3.10"
44+
python_version: "3.11"
4545

4646
- uses: ./.github/actions/cpu_all_extras
4747
with:

.github/workflows/pr_opened.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
with:
2121
sparse-checkout: .github/utilities
2222

23-
- name: Setup Python 3.10
23+
- name: Setup Python 3.11
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.10"
26+
python-version: "3.11"
2727

2828
- name: Install PyGithub
2929
run: pip install -Uq PyGithub

0 commit comments

Comments
 (0)