Skip to content

Commit

Permalink
Python 3.8 compatibility (#329)
Browse files Browse the repository at this point in the history
* add py38 to CI

* recythonize

* add release notes [ci skip]

* sort out requirements

* fix tox
  • Loading branch information
alimanfoo committed Jul 8, 2020
1 parent 86152f8 commit 10be09a
Show file tree
Hide file tree
Showing 9 changed files with 15,624 additions and 14,510 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dist: xenial
python:
- "3.6"
- "3.7"
- "3.8"

install:
- pip install -U pip setuptools wheel tox-travis coveralls
Expand Down
6,959 changes: 4,463 additions & 2,496 deletions allel/opt/io_vcf_read.c

Large diffs are not rendered by default.

7,326 changes: 3,537 additions & 3,789 deletions allel/opt/model.c

Large diffs are not rendered by default.

15,807 changes: 7,597 additions & 8,210 deletions allel/opt/stats.c

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ environment:
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7"

- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8"

install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "%CMD_IN_ENV% python -m pip install -U pip setuptools wheel"
- "%CMD_IN_ENV% python -m pip install cython==0.29.10"
- "%CMD_IN_ENV% python -m pip install numpy==1.16.4"
- "%CMD_IN_ENV% python -m pip install -rrequirements_dev.txt"
- "%CMD_IN_ENV% python -m pip install -rrequirements_dev_base.txt"
- "%CMD_IN_ENV% python -m pip install -rrequirements_dev_optional.txt"
- "%CMD_IN_ENV% python -m pip install -rrequirements_test.txt"
- "%CMD_IN_ENV% python -m pip install pyfasta==0.5.2"
- "%CMD_IN_ENV% python setup.py build_ext --inplace"

build: off
Expand Down
10 changes: 10 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Release notes
=============


.. _release_1.3.1:

v1.3.1
------

* Add compatibility with Python 3.8. By :user:`Alistair Miles
<alimanfoo>`, :issue:`329`.


.. _release_1.3.0:

v1.3.0
Expand Down
4 changes: 4 additions & 0 deletions requirements_dev_base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# required
cython==0.29.20
numpy==1.19.0
dask[array]==2.19.0
5 changes: 1 addition & 4 deletions requirements_dev.txt → requirements_dev_optional.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# required
cython==0.29.20
numpy==1.19.0
dask[array]==2.19.0
# optional
scipy==1.5.0
matplotlib==3.2.2
Expand All @@ -16,3 +12,4 @@ hmmlearn==0.2.3
# install problems on windows, skip for now
# https://github.com/jmschrei/pomegranate/issues/333#issuecomment-449151227
#pomegranate==0.10.0
pyfasta==0.5.2
13 changes: 6 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py35, py36, py37, docs
envlist = py36, py37, py38, docs
# trick to enable pre-installation of numpy and cython
indexserver =
preinstall = https://pypi.python.org/simple
Expand All @@ -15,17 +15,16 @@ setenv =
PYTHONHASHSEED = 42
commands =
python setup.py build_ext --inplace
py35,py36: pytest -v --cov=allel allel
py37: pytest -v --cov=allel --doctest-modules allel
py36,py37: pytest -v --cov=allel allel
py38: pytest -v --cov=allel --doctest-modules allel
coverage report -m
py37: flake8 allel --max-line-length=100
py38: flake8 allel --max-line-length=100
pip freeze
deps =
:preinstall: setuptools
:preinstall: cython==0.29.10
:preinstall: numpy==1.16.4
:preinstall: -rrequirements_dev_base.txt
-rrequirements_test.txt
-rrequirements_dev.txt
-rrequirements_dev_optional.txt

[testenv:docs]
install_command = pip install -U --no-cache-dir {opts} {packages}
Expand Down

0 comments on commit 10be09a

Please sign in to comment.