From a2da58f5b396605c8f0ba3e793551d7541e8a7b7 Mon Sep 17 00:00:00 2001 From: chen-jan Date: Tue, 11 Jan 2022 14:32:37 +0800 Subject: [PATCH 1/2] Add Python 3.9 --- setup.py | 10 +++++++--- tox.ini | 35 ++++++++++++++--------------------- 2 files changed, 21 insertions(+), 24 deletions(-) diff --git a/setup.py b/setup.py index 1caf74c..c2bd9d1 100644 --- a/setup.py +++ b/setup.py @@ -13,14 +13,17 @@ install_requires = [ ] tests_require = [ - 'nose<1.3.0', 'coverage', 'mock', - 'PasteDeploy', 'WSGIProxy2', 'pyquery' + 'coverage', + 'PasteDeploy', + 'pyquery', + 'pytest', + 'WSGIProxy2', ] docs_extras = [ - 'Sphinx >= 1.8.1', 'docutils', 'pylons-sphinx-themes >= 1.0.8', + 'Sphinx >= 1.8.1', ] setup(name='WebTest', @@ -41,6 +44,7 @@ setup(name='WebTest', "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ], keywords='wsgi test unit tests web', author='Ian Bicking', diff --git a/tox.ini b/tox.ini index d33bfb0..4bfa137 100644 --- a/tox.ini +++ b/tox.ini @@ -1,43 +1,36 @@ [tox] skip_missing_interpreters=true -envlist=py27,py35,py36,py37,py38,coverage,docs +envlist=py27,py35,py36,py37,py38,py39,coverage,docs [testenv] -skip_install=true setenv = - LC_ALL=C - LANG=C - COVERAGE_FILE=.coverage.{envname} -deps = - pytest - -e .[tests,docs] - lxml - pyquery - BeautifulSoup4 - PasteDeploy - WSGIProxy2 - coverage + LC_ALL=C + LANG=C + COVERAGE_FILE=.coverage.{envname} +extras = + tests commands = - python --version - pip freeze - coverage run {envbindir}/pytest -xv [] - coverage report --show-missing + python --version + pip freeze + coverage run {envbindir}/pytest -xv [] + coverage report --show-missing [testenv:coverage] skip_install=false skipsdist=true +depends = py36,py37,py38,py39 deps = coverage setenv = - COVERAGE_FILE=.coverage + COVERAGE_FILE=.coverage commands = {envbindir}/coverage erase {envbindir}/coverage combine {envbindir}/coverage xml - {envbindir}/coverage report --show-missing + {envbindir}/coverage report --show-missing --fail-under=100 [testenv:docs] -basepython = python3.6 +basepython = python3.9 whitelist_externals = make commands = make -C docs html BUILDDIR={envdir} "SPHINXOPTS=-W -E" -- 2.30.0