summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-15 00:36:18 -0500
committerMichael Merickel <michael@merickel.org>2018-10-15 01:15:01 -0500
commit17e3abf320f6d9cd90f7e5a0352280c2fef584af (patch)
tree5b3fe0b39a0fc33d545733d821738845909f638c /tox.ini
parent2e7a9a40c1468e1c56d9083f88830d7e23623308 (diff)
downloadpyramid-17e3abf320f6d9cd90f7e5a0352280c2fef584af.tar.gz
pyramid-17e3abf320f6d9cd90f7e5a0352280c2fef584af.tar.bz2
pyramid-17e3abf320f6d9cd90f7e5a0352280c2fef584af.zip
add a "tox -e build" for building the distribution
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini20
1 files changed, 18 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index aaabcf11e..6daa244ca 100644
--- a/tox.ini
+++ b/tox.ini
@@ -62,7 +62,7 @@ commands =
deps = virtualenv
[testenv:lint]
-skip_install = True
+skip_install = true
basepython = python3.5
commands =
flake8 pyramid/
@@ -112,7 +112,7 @@ extras =
testing
[testenv:coverage]
-skip_install = True
+skip_install = true
basepython = python3.5
commands =
coverage erase
@@ -123,3 +123,19 @@ deps =
coverage
setenv =
COVERAGE_FILE=.coverage
+
+[testenv:build]
+skip_install = true
+basepython = python3.6
+commands =
+ # clean up build/ and dist/ folders
+ python -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
+ python setup.py clean --all
+ # build sdist
+ python setup.py sdist --dist-dir {toxinidir}/dist
+ # build wheel from sdist
+ pip wheel -v --no-deps --no-index --wheel-dir {toxinidir}/dist --find-links {toxinidir}/dist pyramid
+
+deps =
+ setuptools
+ wheel