diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-12 19:37:53 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-12 19:37:53 -0500 |
commit | 26d7411464115c6170ed666e72e388d53d4b7fd2 (patch) | |
tree | 40a141e309c856e1af1df3dc2ec7699288d3d384 /tox.ini | |
parent | 342e02e7a4dbedf0e3a04c4d2d213b5340d56010 (diff) | |
parent | 77678abf97b4a8ee5e6e67b14cb21f543cd6bfd9 (diff) | |
download | python-setuptools-git-feature/local-schemes.tar.gz |
Merge branch 'main' into feature/local-schemesfeature/local-schemes
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 54 |
1 files changed, 51 insertions, 3 deletions
@@ -1,8 +1,56 @@ +[tox] +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 = - pytest + # workaround for sphinx-doc/sphinx#9562 + # TODO: remove after Sphinx>4.1.2 is available. + sphinx@git+https://github.com/sphinx-doc/sphinx; python_version>="3.10" commands = pytest {posargs} -setenv = - PYTHONPATH = {toxinidir} +usedevelop = True +extras = testing +passenv = + SETUPTOOLS_USE_DISTUTILS + windir # required for test_pkg_resources + +[testenv:docs] +extras = + docs + testing +changedir = docs +commands = + python -m sphinx -W --keep-going . {toxinidir}/build/html + +[testenv:finalize] +skip_install = True +deps = + towncrier + bump2version +passenv = * +commands = + python tools/finalize.py + +[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 -m bootstrap + 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 |