diff options
author | Dan Willemsen <dwillemsen@google.com> | 2022-03-25 17:22:05 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2022-03-25 17:27:50 -0700 |
commit | adad21eb0615bb68c47628dcd4d638137c3d1a01 (patch) | |
tree | 690b5fb2994f47324dd4298e676335d4555ee267 /tox.ini | |
parent | 38928912f8393727122418ebb7b2b8b19f710b36 (diff) | |
download | setuptools-adad21eb0615bb68c47628dcd4d638137c3d1a01.tar.gz |
Upgrade to setuptools 61.1.0
This fixes Python 3.10 compat, but does remove Python2 compat.
Test: treehugger
Change-Id: I8e19ad8dec6b34482bfbe996413d3f793ada276c
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 112 |
1 files changed, 78 insertions, 34 deletions
@@ -1,41 +1,85 @@ -# Note: Run "python bootstrap.py" before running Tox, to generate metadata. -# -# To run Tox against all supported Python interpreters, you can set: -# -# export TOXENV='py27,py3{3,4,5,6},pypy,pypy3' - [tox] -envlist=python +envlist = python +minversion = 3.2 +# https://github.com/jaraco/skeleton/issues/6 +tox_pip_extensions_ext_venv_update = true +toxworkdir={env:TOX_WORK_DIR:.tox} [testenv] -deps=-rtests/requirements.txt -setenv=COVERAGE_FILE={toxworkdir}/.coverage.{envname} -# TODO: The passed environment variables came from copying other tox.ini files -# These should probably be individually annotated to explain what needs them. -passenv=APPDATA HOMEDRIVE HOMEPATH windir APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_* -commands=pytest --cov-config={toxinidir}/tox.ini --cov-report= {posargs} -usedevelop=True +deps = + # Ideally all the dependencies should be set as "extras" +commands = + pytest {posargs} +usedevelop = True +extras = testing +passenv = + SETUPTOOLS_USE_DISTUTILS + PRE_BUILT_SETUPTOOLS_WHEEL + PRE_BUILT_SETUPTOOLS_SDIST + TIMEOUT_BACKEND_TEST # timeout (in seconds) for test_build_meta + windir # required for test_pkg_resources + # honor git config in pytest-perf + HOME + # workaround for tox-dev/tox#2382 + PROGRAMDATA + PROGRAMFILES + PROGRAMFILES(x86) + +[testenv:integration] +deps = {[testenv]deps} +extras = testing-integration +passenv = + {[testenv]passenv} + DOWNLOAD_PATH + # workaround for tox-dev/tox#2382 + PROGRAMDATA + PROGRAMFILES + PROGRAMFILES(x86) +setenv = + PROJECT_ROOT = {toxinidir} +commands = + pytest --integration {posargs:-vv --durations=10 setuptools/tests/integration} + # use verbose mode by default to facilitate debugging from CI logs +[testenv:docs] +extras = + docs + testing +changedir = docs +commands = + python -m sphinx -W --keep-going . {toxinidir}/build/html -[testenv:coverage] -description=Combine coverage data and create report -deps=coverage -skip_install=True -changedir={toxworkdir} -setenv=COVERAGE_FILE=.coverage -commands=coverage erase - coverage combine - coverage {posargs:xml} +[testenv:finalize] +skip_install = True +deps = + towncrier + bump2version +passenv = * +commands = + python tools/finalize.py -[testenv:codecov] -description=[Only run on CI]: Upload coverage data to codecov -deps=codecov -skip_install=True -commands=codecov --file {toxworkdir}/coverage.xml +[testenv:vendor] +skip_install = True +deps = + path +commands = + python -m tools.vendored -[coverage:run] -source= - pkg_resources - setuptools -omit= - */_vendor/* +[testenv:release] +skip_install = True +deps = + build + twine>=3 + jaraco.develop>=7.1 +passenv = + TWINE_PASSWORD + GITHUB_TOKEN +setenv = + TWINE_USERNAME = {env:TWINE_USERNAME:__token__} +commands = + python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)" + # unset tag_build and tag_date pypa/setuptools#2500 + python setup.py egg_info -Db "" saveopts + python -m build + python -m twine upload dist/* + python -m jaraco.develop.create-github-release |