From 2e7a9a40c1468e1c56d9083f88830d7e23623308 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Mon, 15 Oct 2018 00:33:20 -0500 Subject: only check the tests folder for tests --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index fac659258..aaabcf11e 100644 --- a/tox.ini +++ b/tox.ini @@ -95,7 +95,7 @@ extras = # combination of versions of coverage and nosexcover that i can find. [testenv:py2-cover] commands = - coverage run --source=pyramid {envbindir}/nosetests + coverage run {envbindir}/nosetests coverage xml -o coverage-py2.xml setenv = COVERAGE_FILE=.coverage.py2 @@ -104,7 +104,7 @@ extras = [testenv:py3-cover] commands = - coverage run --source=pyramid {envbindir}/nosetests + coverage run {envbindir}/nosetests coverage xml -o coverage-py3.xml setenv = COVERAGE_FILE=.coverage.py3 @@ -118,7 +118,7 @@ commands = coverage erase coverage combine coverage xml - coverage report --show-missing --fail-under=100 + coverage report --fail-under=100 deps = coverage setenv = -- cgit v1.2.3 From 17e3abf320f6d9cd90f7e5a0352280c2fef584af Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Mon, 15 Oct 2018 00:36:18 -0500 Subject: add a "tox -e build" for building the distribution --- tox.ini | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'tox.ini') 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 -- cgit v1.2.3