Skip to content

Commit afd2fac

Browse files
Python 3.11 Support (#524)
* First pass at Python 3.11 support * Update 'whats new' * Update build_requirements for different python versions * Fix docs * Empty commit for CI * Use lowest supported numpy (==) for building instead of max compatible (~=) * Make min numpy 1.21.3 * Use lowest supported version of scipy when building * More scipy hackery * https://github.com/scipy/scipy/blob/26a77da3a4ca126a943a331c1aa6ef3915b0d501/pyproject.toml#L41 * More scipy hackery * Typos * More typos
1 parent f999f87 commit afd2fac

File tree

7 files changed

+47
-6
lines changed

7 files changed

+47
-6
lines changed

.circleci/config.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,15 @@ jobs:
167167
- checkout
168168
- build-test-and-persist:
169169
pythonversion: "3.10"
170+
171+
test-unit-cpython311:
172+
machine:
173+
image: ubuntu-2004:202111-02
174+
working_directory: ~/pmdarima
175+
steps:
176+
- checkout
177+
- build-test-and-persist:
178+
pythonversion: "3.11"
170179
# --- /Unit tests ---
171180

172181
build-doc:
@@ -241,6 +250,16 @@ jobs:
241250
key: "3.10"
242251
- deploy-to-pypi
243252

253+
deploy-cpython311-whl:
254+
machine:
255+
image: ubuntu-2004:202111-02
256+
working_directory: ~/pmdarima
257+
steps:
258+
- checkout
259+
- restore-whl-file:
260+
key: "3.11"
261+
- deploy-to-pypi
262+
244263
# For documentation deployment. You'll need the following environment vars
245264
# in your Circle CI settings, otherwise this will not work.
246265
#
@@ -276,6 +295,8 @@ workflows:
276295
filters: *test-filters
277296
- test-unit-cpython310:
278297
filters: *test-filters
298+
- test-unit-cpython311:
299+
filters: *test-filters
279300
- build-doc:
280301
filters: *test-filters
281302
- testing-passed:
@@ -285,6 +306,7 @@ workflows:
285306
- test-unit-cpython38
286307
- test-unit-cpython39
287308
- test-unit-cpython310
309+
- test-unit-cpython311
288310
- build-doc
289311
filters: *test-filters
290312

@@ -314,3 +336,8 @@ workflows:
314336
filters: *deploy-filters
315337
requires:
316338
- deploy-doc
339+
340+
- deploy-cpython311-whl:
341+
filters: *deploy-filters
342+
requires:
343+
- deploy-doc

.github/workflows/build_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build-and-deploy:
2121
strategy:
2222
matrix:
23-
python3-minor-version: [7, 8, 9, 10]
23+
python3-minor-version: [7, 8, 9, 10, 11]
2424
os: [macos-latest, ubuntu-latest, windows-latest]
2525
defaults:
2626
run:

.github/workflows/nightly_cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [windows-latest, macos-latest, ubuntu-latest]
27-
python-version: ['3.10']
28-
python-executable: ['cp310']
27+
python-version: ['3.11']
28+
python-executable: ['cp311']
2929
defaults:
3030
run:
3131
shell: bash

build_tools/build_requirements.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
numpy~=1.21.2
2-
scipy>=1.3.2
1+
numpy==1.21.2; python_version < '3.10'
2+
numpy==1.21.6; python_version == '3.10' and platform_system != 'Windows'
3+
numpy==1.22.3; python_version == '3.10' and platform_system == 'Windows'
4+
numpy==1.23.2; python_version >= '3.11'
5+
scipy==1.3.2; python_version <= '3.8' and platform_machine != 'aarch64'
6+
scipy==1.5.3; python_version <= '3.8' and platform_machine == 'aarch64'
7+
scipy==1.5.4; python_version == '3.9'
8+
scipy==1.7.2; python_version == '3.10'
9+
scipy==1.9.3; python_version == '3.11'
310
cython>=0.29,!=0.29.18,!=0.29.31
411
scikit-learn>=0.22
512
pandas>=0.19

doc/whats_new.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ What's new in pmdarima
77
As new releases of pmdarima are pushed out, the following list (introduced in
88
v0.8.1) will document the latest features.
99

10+
`v2.0.2 <http://alkaline-ml.com/pmdarima/2.0.2>`_
11+
-------------------------------------------------
12+
13+
* Add support for Python 3.11
14+
* Change minimum numpy version to ``1.21.2``
15+
1016
`v2.0.1 <http://alkaline-ml.com/pmdarima/2.0.1>`_
1117
-------------------------------------------------
1218

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
joblib>=0.11
22
Cython>=0.29,!=0.29.18,!=0.29.31
3-
numpy>=1.21
3+
numpy>=1.21.2
44
pandas>=0.19
55
scikit-learn>=0.22
66
scipy>=1.3.2

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def do_setup():
243243
'Programming Language :: Python :: 3.8',
244244
'Programming Language :: Python :: 3.9',
245245
'Programming Language :: Python :: 3.10',
246+
'Programming Language :: Python :: 3.11',
246247
('Programming Language :: Python :: '
247248
'Implementation :: CPython'),
248249
],

0 commit comments

Comments
 (0)