From 24968ae2fefc855b82c0c825594323406f4e09e7 Mon Sep 17 00:00:00 2001 From: Bruno Bord Date: Tue, 5 May 2020 15:58:06 +0200 Subject: [PATCH 1/4] Revamped/simplify Travis configuration * Drop the "sudo" for Python 3.7 job, * Using the "magic" matrix utility to make it more readable, * Upgraded the VM to Bionic --- .travis.yml | 31 +++++++++---------------------- CHANGELOG.md | 2 +- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 77abd59..db19e7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,12 @@ -sudo: false -dist: xenial +dist: bionic language: python -install: - - pip install tox - -script: - - tox -e $TOXENV - +cache: pip +install: pip install tox tox-travis +script: tox -v +python: +- 2.7 +- 3.5 +- 3.6 +- 3.7 matrix: fast_finish: true - include: - # Python version is just for the look on travis. - - python: 2.7 - env: TOXENV=py27 - - - python: 3.5 - env: TOXENV=py35 - - - python: 3.6 - env: TOXENV=py36 - - - python: 3.7 - env: TOXENV=py37 - sudo: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a29e01..5d3608f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## master (unreleased) -Nothing here yet. +* Revamped/Simplified Travis configuration. ## 1.0.0 (2020-05-05) From 94c78b905da05a19b24965b12fb320ab0e10b3b7 Mon Sep 17 00:00:00 2001 From: Bruno Bord Date: Tue, 5 May 2020 16:13:21 +0200 Subject: [PATCH 2/4] Removed tox.ini reference to Python 3.3 builds --- CHANGELOG.md | 1 + tox.ini | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d3608f..a21ba18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## master (unreleased) * Revamped/Simplified Travis configuration. +* Removed tox.ini reference to Python 3.3 builds. ## 1.0.0 (2020-05-05) diff --git a/tox.ini b/tox.ini index 331152f..671e596 100644 --- a/tox.ini +++ b/tox.ini @@ -7,8 +7,3 @@ commands = pytest -s {posargs} deps = .[tests] - - -[testenv:py33] -deps = . -commands = pip freeze -l From 8bad393d5818bd698c98c2a49290e8b04cf2ae54 Mon Sep 17 00:00:00 2001 From: Bruno Bord Date: Tue, 5 May 2020 16:22:12 +0200 Subject: [PATCH 3/4] Warn users that this project is not compatible with Python 2.6 --- CHANGELOG.md | 1 + README.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a21ba18..699292d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Revamped/Simplified Travis configuration. * Removed tox.ini reference to Python 3.3 builds. +* Warn users that this project is not compatible with Python 2.6. ## 1.0.0 (2020-05-05) diff --git a/README.md b/README.md index 48a06d3..0eac836 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,9 @@ In order to be able to run the `download.py` script, we recommend to run it **fr make install-dev ``` -*Note:* This project is, and should be compatible with Python 2.6/2.7 and Python 3.5+, to be kept the same Python compatiblity that `skyfield` has. +*Note:* This project is, and should be compatible with Python 2.7 and Python 3.5+, to keep the same Python compatiblity that `skyfield` has. + +**WARNING!**: This project is not compatible with Python 2.6. ## Copyright From 2ad6911362c2185dd22dc65e97b5ebae4fa24744 Mon Sep 17 00:00:00 2001 From: Bruno Bord Date: Tue, 5 May 2020 16:24:53 +0200 Subject: [PATCH 4/4] Added Python 3.8 compatibility closes #1 --- .travis.yml | 1 + CHANGELOG.md | 1 + README.md | 2 +- setup.cfg | 1 + tox.ini | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index db19e7c..a86a6cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,5 +8,6 @@ python: - 3.5 - 3.6 - 3.7 +- 3.8 matrix: fast_finish: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 699292d..b5bf38d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Revamped/Simplified Travis configuration. * Removed tox.ini reference to Python 3.3 builds. * Warn users that this project is not compatible with Python 2.6. +* Add Python 3.8 compatibility (#1). ## 1.0.0 (2020-05-05) diff --git a/README.md b/README.md index 0eac836..e21d07b 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ In order to be able to run the `download.py` script, we recommend to run it **fr make install-dev ``` -*Note:* This project is, and should be compatible with Python 2.7 and Python 3.5+, to keep the same Python compatiblity that `skyfield` has. +*Note:* This project is, and should be compatible with Python 2.7 and Python 3.5+ up to 3.8, to keep the same Python compatiblity that `skyfield` has. **WARNING!**: This project is not compatible with Python 2.6. diff --git a/setup.cfg b/setup.cfg index 1d90fa0..2f19f36 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,6 +21,7 @@ classifiers = Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 [options] zip_safe = false diff --git a/tox.ini b/tox.ini index 671e596..f73ad7d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,py35,py36,py37 +envlist = py27,py35,py36,py37,py38 [testenv]