From 4f86740ddd506dd5dfeceb0f57ac855c43c46fb5 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 14 Oct 2020 20:27:30 +0300 Subject: [PATCH 1/4] Add support for Python 3.9 --- .github/workflows/main.yml | 2 +- AUTHORS | 1 + docs/contributing.rst | 6 +++--- tox.ini | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 548321db..6de0e7ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: test: strategy: matrix: - python: [3.6, 3.7, 3.8] + python: [3.6, 3.7, 3.8, 3.9] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/AUTHORS b/AUTHORS index 22228c3f..1c12eb8c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -31,3 +31,4 @@ Devesh Kumar Singh Yesha Maggi Cyril de Catheu (https://catheu.tech/) Thomas Miedema +Hugo van Kemenade (https://github.com/hugovk) diff --git a/docs/contributing.rst b/docs/contributing.rst index 041b501e..6b1e569c 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -107,9 +107,9 @@ To pass options to ``pytest``, e.g. the name of a test, run: tox -e py -- tests/test_upload.py::test_exception_for_http_status -Twine is continuously tested against Python 3.6, 3.7, and 3.8 using `GitHub -Actions`_. To run the tests against a specific version, e.g. Python 3.6, you -will need it installed on your machine. Then, run: +Twine is continuously tested against Python 3.6, 3.7, 3.8, and 3.9 using +`GitHub Actions`_. To run the tests against a specific version, e.g. Python +3.6, you will need it installed on your machine. Then, run: .. code-block:: console diff --git a/tox.ini b/tox.ini index 769264ea..8de21d14 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.4 -envlist = lint,types,py{36,37,38},integration,docs +envlist = lint,types,py{36,37,38,39},integration,docs [testenv] deps = From bcca676cb217a8de8bd1ee807a8408213ded6a5d Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 14 Oct 2020 22:10:04 +0300 Subject: [PATCH 2/4] Add Trove classifier --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index c5290fe4..d01eef8d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,6 +25,7 @@ classifiers = 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 [options] From 589927b0241065164f6e9a63e482e3fa62f3808b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 14 Oct 2020 22:19:23 +0300 Subject: [PATCH 3/4] Add TODO for 3.9 when lxml wheels are available --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6de0e7ae..fac60d67 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,8 @@ jobs: - name: Run linting run: python -m tox -e lint + # TODO: Add 3.9 when lxml wheels are available: + # https://bugs.launchpad.net/lxml/+bug/1899830 types: strategy: matrix: From c1944175c356133ab046c9ad5d7457cca12210c9 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 17 Oct 2020 16:40:00 +0300 Subject: [PATCH 4/4] Add 3.9 now lxml wheels are available --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fac60d67..5c52b1dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,12 +20,10 @@ jobs: - name: Run linting run: python -m tox -e lint - # TODO: Add 3.9 when lxml wheels are available: - # https://bugs.launchpad.net/lxml/+bug/1899830 types: strategy: matrix: - python: [3.6, 3.7, 3.8] + python: [3.6, 3.7, 3.8, 3.9] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2