commit
8e0f7d3793
|
@ -199,13 +199,10 @@ but here is a simple overview:
|
||||||
You need to have Python 2.7 and 3.5 available in your system. Now
|
You need to have Python 2.7 and 3.5 available in your system. Now
|
||||||
running tests is as simple as issuing this command::
|
running tests is as simple as issuing this command::
|
||||||
|
|
||||||
$ python3 runtox.py -e linting,py27,py35
|
$ tox -e linting,py27,py35
|
||||||
|
|
||||||
This command will run tests via the "tox" tool against Python 2.7 and 3.5
|
This command will run tests via the "tox" tool against Python 2.7 and 3.5
|
||||||
and also perform "lint" coding-style checks. ``runtox.py`` is
|
and also perform "lint" coding-style checks.
|
||||||
a thin wrapper around ``tox`` which installs from a development package
|
|
||||||
index where newer (not yet released to PyPI) versions of dependencies
|
|
||||||
(especially ``py``) might be present.
|
|
||||||
|
|
||||||
#. You can now edit your local working copy.
|
#. You can now edit your local working copy.
|
||||||
|
|
||||||
|
@ -214,11 +211,11 @@ but here is a simple overview:
|
||||||
To run tests on Python 2.7 and pass options to pytest (e.g. enter pdb on
|
To run tests on Python 2.7 and pass options to pytest (e.g. enter pdb on
|
||||||
failure) to pytest you can do::
|
failure) to pytest you can do::
|
||||||
|
|
||||||
$ python3 runtox.py -e py27 -- --pdb
|
$ tox -e py27 -- --pdb
|
||||||
|
|
||||||
Or to only run tests in a particular test module on Python 3.5::
|
Or to only run tests in a particular test module on Python 3.5::
|
||||||
|
|
||||||
$ python3 runtox.py -e py35 -- testing/test_config.py
|
$ tox -e py35 -- testing/test_config.py
|
||||||
|
|
||||||
#. Commit and push once your tests pass and you are happy with your change(s)::
|
#. Commit and push once your tests pass and you are happy with your change(s)::
|
||||||
|
|
||||||
|
|
13
MANIFEST.in
13
MANIFEST.in
|
@ -11,22 +11,23 @@ include setup.py
|
||||||
|
|
||||||
include .coveragerc
|
include .coveragerc
|
||||||
|
|
||||||
include plugin-test.sh
|
|
||||||
include requirements-docs.txt
|
|
||||||
include runtox.py
|
|
||||||
|
|
||||||
recursive-include bench *.py
|
recursive-include bench *.py
|
||||||
recursive-include extra *.py
|
recursive-include extra *.py
|
||||||
|
|
||||||
graft testing
|
graft testing
|
||||||
graft doc
|
graft doc
|
||||||
|
prune doc/en/_build
|
||||||
|
|
||||||
exclude _pytest/impl
|
exclude _pytest/impl
|
||||||
|
|
||||||
graft _pytest/vendored_packages
|
graft _pytest/vendored_packages
|
||||||
|
|
||||||
recursive-exclude * *.pyc *.pyo
|
recursive-exclude * *.pyc *.pyo
|
||||||
|
recursive-exclude testing/.hypothesis *
|
||||||
|
recursive-exclude testing/freeze/~ *
|
||||||
|
recursive-exclude testing/freeze/build *
|
||||||
|
recursive-exclude testing/freeze/dist *
|
||||||
|
|
||||||
exclude appveyor/install.ps1
|
|
||||||
exclude appveyor.yml
|
exclude appveyor.yml
|
||||||
exclude appveyor
|
exclude .travis.yml
|
||||||
|
prune .github
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# this assumes plugins are installed as sister directories
|
|
||||||
|
|
||||||
set -e
|
|
||||||
cd ../pytest-pep8
|
|
||||||
pytest
|
|
||||||
cd ../pytest-instafail
|
|
||||||
pytest
|
|
||||||
cd ../pytest-cache
|
|
||||||
pytest
|
|
||||||
cd ../pytest-xprocess
|
|
||||||
pytest
|
|
||||||
#cd ../pytest-cov
|
|
||||||
#pytest
|
|
||||||
cd ../pytest-capturelog
|
|
||||||
pytest
|
|
||||||
cd ../pytest-xdist
|
|
||||||
pytest
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
sphinx==1.2.3
|
|
||||||
regendoc
|
|
||||||
pyyaml
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
subprocess.call([sys.executable, "-m", "tox",
|
|
||||||
"-i", "ALL=https://devpi.net/hpk/dev/",
|
|
||||||
"--develop"] + sys.argv[1:])
|
|
1
setup.py
1
setup.py
|
@ -72,6 +72,7 @@ def main():
|
||||||
entry_points={'console_scripts':
|
entry_points={'console_scripts':
|
||||||
['pytest=pytest:main', 'py.test=pytest:main']},
|
['pytest=pytest:main', 'py.test=pytest:main']},
|
||||||
classifiers=classifiers,
|
classifiers=classifiers,
|
||||||
|
keywords="test unittest",
|
||||||
cmdclass={'test': PyTest},
|
cmdclass={'test': PyTest},
|
||||||
# the following should be enabled for release
|
# the following should be enabled for release
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -47,9 +47,13 @@ commands= pytest --genscript=pytest1
|
||||||
|
|
||||||
[testenv:linting]
|
[testenv:linting]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
deps = flake8
|
deps =
|
||||||
|
flake8
|
||||||
restructuredtext_lint
|
restructuredtext_lint
|
||||||
commands = flake8 pytest.py _pytest testing
|
check-manifest
|
||||||
|
commands =
|
||||||
|
check-manifest
|
||||||
|
flake8 pytest.py _pytest testing
|
||||||
rst-lint CHANGELOG.rst HOWTORELEASE.rst
|
rst-lint CHANGELOG.rst HOWTORELEASE.rst
|
||||||
|
|
||||||
[testenv:py27-xdist]
|
[testenv:py27-xdist]
|
||||||
|
|
Loading…
Reference in New Issue