From 90779256dbcb60f5196ce2fa818fa1c32d4d6248 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 29 Nov 2021 15:54:16 +0000 Subject: [PATCH] Test on Python 3.9 and 3.10 * Add classifier tags * Add tox test environments * Simplify tox envlist syntax * Move from `python setup.py test` to directly invoking unittest, to avoid this warning from setuptools: ``` WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. ``` --- setup.py | 2 ++ tox.ini | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index ae55452..7c21eb2 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,8 @@ def get_version(module): 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Topic :: Internet :: WWW/HTTP', ] ) diff --git a/tox.ini b/tox.ini index 0afaf95..8e3d9fd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,10 @@ [tox] envlist = - flake8, - py35, - py36, - py37, - py38, + flake8 + py{35,36,37,38,39,310} [testenv] -commands = python setup.py test +commands = python -m unittest -v [testenv:flake8] deps = flake8