Skip to content

Commit daa6f26

Browse files
authored
[MRG+1] Rm python 3.9 support (#603)
* Rm python 3.9 support
1 parent 46158c1 commit daa6f26

File tree

13 files changed

+29
-174
lines changed

13 files changed

+29
-174
lines changed

.circleci/config.yml

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ commands:
8181
-v `pwd`:/app \
8282
-w /app \
8383
--env-file vars.env \
84-
python:3.9 \
84+
python:3.11 \
8585
./build_tools/circle/deploy.sh
8686
8787
jobs:
@@ -94,7 +94,7 @@ jobs:
9494
# larger unit tests, and to avoid multiple setup steps that can slow the pipeline down
9595
test-sanity:
9696
docker:
97-
- image: python:3.9
97+
- image: python:3.10
9898
working_directory: ~/pmdarima
9999
environment:
100100
SETUPTOOLS_USE_DISTUTILS: stdlib
@@ -117,30 +117,8 @@ jobs:
117117
echo "Expected VERSION file"
118118
exit 4
119119
fi
120-
- run:
121-
name: Test install from sdist
122-
command: |
123-
echo "0.0.0" > ~/pmdarima/pmdarima/VERSION
124-
125-
# we'll need packaging, numpy, and cython to build this. let install_requires do all the
126-
# rest of the work. We build with our lowest supported numpy version to make sure there is no regression
127-
pip install "packaging>=17.1" "numpy~=1.19.3" "cython>=0.29,!=0.29.18,!=0.29.31"
128-
python setup.py sdist
129-
130-
cd dist
131-
pip install pmdarima-0.0.0.tar.gz
132-
python -c 'import pmdarima as pm; print(pm.__version__)'
133120
134121
# --- Unit tests ---
135-
test-unit-cpython39:
136-
machine:
137-
image: ubuntu-2004:202111-02
138-
working_directory: ~/pmdarima
139-
steps:
140-
- checkout
141-
- build-test-and-persist:
142-
pythonversion: "3.9"
143-
144122
test-unit-cpython310:
145123
machine:
146124
image: ubuntu-2004:202111-02
@@ -175,7 +153,6 @@ jobs:
175153
working_directory: ~/pmdarima
176154
steps:
177155
- checkout
178-
- run: make install
179156
- run: ./build_tools/circle/build_doc.sh
180157
# This persists doc/_build/html for the deploy step
181158
- persist_to_workspace:
@@ -211,16 +188,6 @@ jobs:
211188
key: "3.8"
212189
- deploy-to-pypi
213190

214-
deploy-cpython39-whl:
215-
machine:
216-
image: ubuntu-2004:202111-02
217-
working_directory: ~/pmdarima
218-
steps:
219-
- checkout
220-
- restore-whl-file:
221-
key: "3.9"
222-
- deploy-to-pypi
223-
224191
deploy-cpython310-whl:
225192
machine:
226193
image: ubuntu-2004:202111-02
@@ -259,7 +226,7 @@ jobs:
259226
# GH_TOKEN (the personal Git token with pushes enabled)
260227
deploy-doc:
261228
docker:
262-
- image: python:3.9
229+
- image: python:3.11
263230
working_directory: ~/pmdarima
264231
steps:
265232
- checkout
@@ -278,8 +245,6 @@ workflows:
278245
# run on test and tag
279246
- test-sanity:
280247
filters: *test-filters
281-
- test-unit-cpython39:
282-
filters: *test-filters
283248
- test-unit-cpython310:
284249
filters: *test-filters
285250
- test-unit-cpython311:
@@ -291,7 +256,6 @@ workflows:
291256
- testing-passed:
292257
requires:
293258
- test-sanity
294-
- test-unit-cpython39
295259
- test-unit-cpython310
296260
- test-unit-cpython311
297261
- test-unit-cpython312
@@ -305,11 +269,6 @@ workflows:
305269
- testing-passed
306270
filters: *test-filters
307271

308-
- deploy-cpython39-whl:
309-
filters: *deploy-filters
310-
requires:
311-
- deploy-doc
312-
313272
- deploy-cpython310-whl:
314273
filters: *deploy-filters
315274
requires:

.github/workflows/build_and_deploy.yml

Lines changed: 2 additions & 2 deletions
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: [9, 10, 11, 12]
23+
python3-minor-version: [10, 11, 12]
2424
# TODO: Figure out macos-14/macos-latest
2525
os: [macos-13, ubuntu-latest, windows-latest]
2626
defaults:
@@ -56,7 +56,7 @@ jobs:
5656
run: make version sdist
5757

5858
- name: Install cibuildwheel
59-
run: python -m pip install 'cibuildwheel<2.20.0'
59+
run: python -m pip install cibuildwheel
6060

6161
- name: Building and testing wheels
6262
run: python -m cibuildwheel --output-dir dist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ instance/
101101

102102
# Sphinx documentation
103103
docs/_build/
104+
doc/sg_execution_times.rst
104105

105106
# PyBuilder
106107
target/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![CircleCI](https://circleci.com/gh/alkaline-ml/pmdarima.svg?style=svg)](https://circleci.com/gh/alkaline-ml/pmdarima)
55
[![Github Actions Status](https://github.com/alkaline-ml/pmdarima/workflows/Mac%20and%20Windows%20Builds/badge.svg?branch=master)](https://github.com/alkaline-ml/pmdarima/actions?query=workflow%3A%22Mac+and+Windows+Builds%22+branch%3Amaster)
66
[![codecov](https://codecov.io/gh/alkaline-ml/pmdarima/branch/master/graph/badge.svg)](https://codecov.io/gh/alkaline-ml/pmdarima)
7-
![Supported versions](https://img.shields.io/badge/python-3.9+-blue.svg)
7+
![Supported versions](https://img.shields.io/badge/python-3.10+-blue.svg)
88
![Downloads](https://img.shields.io/badge/dynamic/json?color=blue&label=downloads&query=%24.total&url=https%3A%2F%2Fstore.zapier.com%2Fapi%2Frecords%3Fsecret%3D1e061b29db6c4f15af01103d403b0237)
99
![Downloads/Week](https://img.shields.io/badge/dynamic/json?color=blue&label=downloads%2Fweek&query=%24.weekly&url=https%3A%2F%2Fstore.zapier.com%2Fapi%2Frecords%3Fsecret%3D1e061b29db6c4f15af01103d403b0237)
1010

@@ -118,7 +118,7 @@ with open('model.pkl', 'rb') as pkl:
118118

119119
### Availability
120120

121-
`pmdarima` is available on PyPi in pre-built Wheel files for Python 3.9+ for the following platforms:
121+
`pmdarima` is available on PyPi in pre-built Wheel files for Python 3.10+ for the following platforms:
122122

123123
* Mac (64-bit)
124124
* Linux (64-bit manylinux)

build_tools/build_requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
numpy==1.21.2; python_version < '3.10'
21
numpy>=1.21.6; python_version == '3.10' and platform_system != 'Windows'
32
numpy>=1.22.3; python_version == '3.10' and platform_system == 'Windows'
43
numpy>=1.23.2; python_version == '3.11'
54
numpy>=1.26.0; python_version == '3.12'
6-
scipy==1.3.2; python_version <= '3.8' and platform_machine != 'aarch64'
7-
scipy==1.5.3; python_version <= '3.8' and platform_machine == 'aarch64'
8-
scipy==1.5.4; python_version == '3.9'
95
scipy==1.7.2; python_version == '3.10'
106
scipy==1.9.3; python_version == '3.11'
117
scipy==1.11.2; python_version == '3.12'
@@ -19,7 +15,6 @@ patsy
1915
pytest
2016
pytest-mpl
2117
pytest-benchmark
22-
setuptools>=42,!=50.0.0,<60.0; python_version < '3.10'
2318
setuptools>=42,!=50.0.0; python_version >= '3.10'
2419
packaging>=17.1 # Bundled with setuptools, but want to be explicit
2520
wheel

build_tools/circle/build_doc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
set -e
44

5+
pip install --upgrade -r requirements.txt
6+
make install
7+
pip install pandas sphinx sphinx_gallery pytest-runner sphinx_rtd_theme "matplotlib>=2.2.0" image
8+
pip install --upgrade numpydoc
9+
510
# this is a hack, but we have to make sure we're only ever running this from
611
# the top level of the package and not in the subdirectory...
712
if [[ ! -d pmdarima/__check_build ]]; then

doc/migration-guide.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

doc/sg_execution_times.rst

Lines changed: 0 additions & 73 deletions
This file was deleted.

doc/usecases/stocks.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ randomly; we must make a clean split in our time series (and exogenous variables
7070
As in the TDS example, we'll use :math:`0.8 * dataSize` as our training sample.
7171

7272
.. code-block:: python
73+
7374
from pmdarima.model_selection import train_test_split
7475
7576
train_len = int(df.shape[0] * 0.8)

doc/whats_new.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ 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.5 <https://alkaline-ml.com/pmdarima/2.0.5>`_
11-
-------------------------------------------------
10+
`v2.1.0 <https://alkaline-ml.com/pmdarima/2.1.0>`_
11+
--------------------------------------------------
1212

1313
* Remove support for Python 3.7 (end-of-life 2023-06-23)
1414
* Remove support for Python 3.8 (end-of-life 2024-10-07)
15+
* Remove support for Python 3.9 (end-of-life 2025-10-31)
16+
* Add support for Numpy 2.x. See `#600 <https://github.com/alkaline-ml/pmdarima/pull/600>`_
1517

1618
`v2.0.4 <https://alkaline-ml.com/pmdarima/2.0.4>`_
17-
-------------------------------------------------
19+
--------------------------------------------------
1820

1921
* Pin numpy to ``<2.0.0`` while work is done to support numpy ``>=2.0.0``
2022

2123
`v2.0.3 <https://alkaline-ml.com/pmdarima/2.0.3>`_
22-
-------------------------------------------------
24+
--------------------------------------------------
2325

2426
* Fix a bug when generating permutations using ``numpy>=1.24.0``. See `#534 <https://github.com/alkaline-ml/pmdarima/pull/534>`_
2527
* Fix a bug in ``transform`` when using ``scikit-learn>=1.2.0``, addressing `#539 <https://github.com/alkaline-ml/pmdarima/issues/539>`_

0 commit comments

Comments
 (0)