Skip to content

Commit

Permalink
[MRG+1] Python 3.9 support (#395)
Browse files Browse the repository at this point in the history
* First pass at 3.9 support

* Use 3.9 for nightly

* Fix UCS

* Use python version in cache key

* Actually add the job to Circle

* Update whats_new
  • Loading branch information
aaronreidsmith authored Apr 16, 2021
1 parent 1761972 commit ce5fc19
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ jobs:
steps:
- make-unit-test

cpython39:
docker:
- image: python:3.9
working_directory: ~/pmdarima
steps:
- make-unit-test

build-doc:
docker:
- image: alkalineml/pmdarima-doc-base:latest
Expand Down Expand Up @@ -179,6 +186,16 @@ jobs:
pythonversion: "3.8"
- deploy-to-pypi

deploy-cpython39-whl:
machine:
image: circleci/classic:latest
working_directory: ~/pmdarima
steps:
- checkout
- build-whl-file:
pythonversion: "3.9"
- deploy-to-pypi

# For documentation deployment. You'll need the following environment vars
# in your Circle CI settings, otherwise this will not work.
#
Expand Down Expand Up @@ -213,6 +230,8 @@ workflows:
filters: *test-filters
- cpython38:
filters: *test-filters
- cpython39:
filters: *test-filters
- build-doc:
filters: *test-filters
- test-linting:
Expand All @@ -224,6 +243,7 @@ workflows:
- cpython36
- cpython37
- cpython38
- cpython39
- build-doc
- test-linting
- test-install-from-sdist
Expand All @@ -250,3 +270,8 @@ workflows:
filters: *deploy-filters
requires:
- deploy-doc

- deploy-cpython39-whl:
filters: *deploy-filters
requires:
- deploy-doc
2 changes: 1 addition & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8']
python-version: ['3.6', '3.7', '3.8', '3.9']
architecture: ['x86', 'x64']
exclude:
# Don't build 32-bit on Mac
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ['3.8']
python-version: ['3.9']
architecture: ['x86', 'x64']
exclude:
# Don't build 32-bit on Mac or Linux
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/dependencies_key.txt') }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/dependencies_key.txt') }}

# We install one-by-one because some dependencies depend on others
- name: Installing dependencies
Expand Down
2 changes: 1 addition & 1 deletion build_tools/circle/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function build_wheel {

# https://www.python.org/dev/peps/pep-0513/#ucs-2-vs-ucs-4-builds
ucs_tag="m"
if [ "$pyver" = "3.8" ]; then
if [ "$pyver" = "3.8" || "$pyver" = "3.9" ]; then
ucs_tag=""
elif [ "$ucs_setting" = "ucs4" ]; then
ucs_tag="${ucs_tag}u"
Expand Down
2 changes: 2 additions & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ v0.8.1) will document the latest features.

* No longer pin Cython to ``<0.29.18``

* Add support for Python 3.9


`v1.8.0 <http://alkaline-ml.com/pmdarima/1.8.0/>`_
--------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def do_setup():
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
('Programming Language :: Python :: '
'Implementation :: CPython'),
],
Expand Down

0 comments on commit ce5fc19

Please sign in to comment.