Skip to content

Commit cc752e2

Browse files
authored
Require Python3.11 (#1585)
As per our Python support policy, we drop support for Python 3.10. Also, run tests with Python 3.13 instead of 3.12.
1 parent 7a6d06e commit cc752e2

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
python-version: ['3.10', '3.12']
28+
python-version: ['3.11', '3.13']
2929

3030
steps:
3131
- name: Check out repository
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: macos-13 # TODO: change to macos-latest after the next release
6565
strategy:
6666
matrix:
67-
python-version: ['3.12']
67+
python-version: ['3.13']
6868

6969
steps:
7070
- name: Check out repository
@@ -100,7 +100,7 @@ jobs:
100100
runs-on: windows-latest
101101
strategy:
102102
matrix:
103-
python-version: ['3.12']
103+
python-version: ['3.13']
104104

105105
steps:
106106
- name: Check out repository
@@ -133,7 +133,7 @@ jobs:
133133
runs-on: ubuntu-latest
134134
strategy:
135135
matrix:
136-
python-version: ['3.11', '3.12']
136+
python-version: ['3.11', '3.13']
137137

138138
steps:
139139
- name: Check out repository
@@ -172,7 +172,7 @@ jobs:
172172
runs-on: ubuntu-latest
173173
strategy:
174174
matrix:
175-
python-version: ['3.10', '3.12']
175+
python-version: ['3.11', '3.13']
176176

177177
# needed to allow julia-actions/cache to delete old caches that it has created
178178
permissions:
@@ -223,7 +223,7 @@ jobs:
223223
runs-on: ubuntu-latest
224224
strategy:
225225
matrix:
226-
python-version: ['3.12']
226+
python-version: ['3.13']
227227

228228
steps:
229229
- name: Check out repository
@@ -259,7 +259,7 @@ jobs:
259259
runs-on: ubuntu-latest
260260
strategy:
261261
matrix:
262-
python-version: ['3.10', '3.12']
262+
python-version: ['3.11', '3.13']
263263

264264
steps:
265265
- name: Check out repository
@@ -295,7 +295,7 @@ jobs:
295295
runs-on: ubuntu-latest
296296
strategy:
297297
matrix:
298-
python-version: ['3.10', '3.12']
298+
python-version: ['3.11', '3.13']
299299

300300
steps:
301301
- name: Check out repository
@@ -331,7 +331,7 @@ jobs:
331331
runs-on: ubuntu-latest
332332
strategy:
333333
matrix:
334-
python-version: ['3.12']
334+
python-version: ['3.13']
335335

336336
steps:
337337
- name: Check out repository
@@ -396,7 +396,7 @@ jobs:
396396
runs-on: ubuntu-latest
397397
strategy:
398398
matrix:
399-
python-version: ['3.10']
399+
python-version: ['3.11']
400400

401401
steps:
402402
- name: Check out repository
@@ -426,7 +426,7 @@ jobs:
426426
runs-on: ubuntu-latest
427427
strategy:
428428
matrix:
429-
python-version: ['3.10']
429+
python-version: ['3.11']
430430

431431
steps:
432432
- name: Check out repository

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ classifiers =
3232
Development Status :: 4 - Beta
3333
Operating System :: OS Independent
3434
Programming Language :: Python
35+
Programming Language :: Python :: 3.13
3536
Programming Language :: Python :: 3.12
3637
Programming Language :: Python :: 3.11
37-
Programming Language :: Python :: 3.10
3838
keywords =
3939
parameter inference
4040
optimization
@@ -57,7 +57,7 @@ install_requires =
5757
tqdm >= 4.46.0
5858
tabulate >= 0.8.10
5959

60-
python_requires = >=3.10
60+
python_requires = >=3.11
6161
include_package_data = True
6262

6363
# Where is my code

tox.ini

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ description =
5050

5151
[testenv:base]
5252
extras = test,test_petab,amici,petab,emcee,dynesty,mltools,pymc,jax,fides,roadrunner
53-
5453
deps =
5554
git+https://github.com/Benchmarking-Initiative/Benchmark-Models-PEtab.git@master\#subdirectory=src/python
5655
# FIXME: Until we have proper PEtab v2 import
@@ -69,8 +68,6 @@ description =
6968

7069
[testenv:windows]
7170
extras = test
72-
deps =
73-
numpy < 2.0
7471
commands =
7572
pytest \
7673
test/base/test_prior.py \
@@ -114,8 +111,6 @@ description =
114111

115112
[testenv:optimize]
116113
extras = test,dlib,ipopt,pyswarm,cma,nlopt,fides,mpi,pyswarms,petab
117-
deps =
118-
numpy < 2.0
119114
commands =
120115
pytest --cov=pypesto --cov-report=xml --cov-append \
121116
test/optimize
@@ -162,8 +157,6 @@ description =
162157
[testenv:doc]
163158
extras =
164159
doc,amici,petab,aesara,jax,select,roadrunner
165-
deps =
166-
numpy < 2.0
167160
commands =
168161
sphinx-build -W -b html doc/ doc/_build/html
169162
description =

0 commit comments

Comments
 (0)