summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-12-12 13:58:00 -0500
committerJason R. Coombs <jaraco@jaraco.com>2020-12-12 15:36:50 -0500
commitd448f10805dcd564d597f0c63157bb7913d26193 (patch)
tree363be9ac426b407666eff13f2fe9a9bfd21e8e6e /tox.ini
parentb6bbe236ed0689f50b5148f1172510b975687e62 (diff)
parentc681f6748acaea1bf0b706528c36327cc94a6eed (diff)
downloadpython-setuptools-git-d448f10805dcd564d597f0c63157bb7913d26193.tar.gz
Merge https://github.com/jaraco/skeleton into feature/skeleton
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini55
1 files changed, 18 insertions, 37 deletions
diff --git a/tox.ini b/tox.ini
index 828d2c02..8b628f65 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,31 +1,20 @@
-# To run Tox against all supported Python interpreters, you can set:
-#
-# export TOXENV='py3{5,6,7,8},pypy,pypy3'
-
[tox]
-envlist=python
+envlist = python
minversion = 3.2
-requires =
- tox-pip-version >= 0.0.6
-
-[helpers]
-# Custom pip behavior
-pip = python {toxinidir}/tools/tox_pip.py
+# https://github.com/jaraco/skeleton/issues/6
+tox_pip_extensions_ext_venv_update = true
+toxworkdir={env:TOX_WORK_DIR:.tox}
[testenv]
-pip_version = pip
+deps =
+commands =
+ pytest {posargs}
+usedevelop = True
+extras = testing
install_command = {[helpers]pip} install {opts} {packages}
list_dependencies_command = {[helpers]pip} freeze --all
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 Program* CommonProgram* VS* APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_* NETWORK_REQUIRED
-commands = pytest {posargs}
-usedevelop=True
-extras =
- tests
-
[testenv:coverage]
description=Combine coverage data and create report
@@ -45,20 +34,11 @@ commands=codecov -X gcov --file {toxworkdir}/coverage.xml
[testenv:docs]
extras =
- docs
- testing
+ docs
+ testing
changedir = docs
commands =
- {envpython} -m sphinx \
- -j auto \
- -b html \
- --color \
- -a \
- -n \
- -W \
- -d "{temp_dir}/.doctrees" \
- . \
- "{toxinidir}/build/html"
+ python -m sphinx . {toxinidir}/build/html
[testenv:finalize]
skip_install = True
@@ -72,21 +52,22 @@ commands =
[testenv:release]
skip_install = True
deps =
- wheel
+ pep517>=0.5
twine[keyring]>=1.13
path
jaraco.develop>=7.1
- jaraco.tidelift
passenv =
TWINE_PASSWORD
GITHUB_TOKEN
- TIDELIFT_TOKEN
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -m bootstrap
python -c "import path; path.Path('dist').rmtree_p()"
- python setup.py release
+ python -m pep517.build .
python -m twine upload dist/*
python -m jaraco.develop.create-github-release
- python -m jaraco.tidelift.publish-release-notes
+
+[helpers]
+# Custom pip behavior
+pip = python {toxinidir}/tools/tox_pip.py