Skip to content

Commit

Permalink
Add "check-manifest" to linting and remove unused scripts from root
Browse files Browse the repository at this point in the history
Fix #1
  • Loading branch information
nicoddemus committed Nov 9, 2016
1 parent fc304b8 commit 84d7068
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 46 deletions.
11 changes: 4 additions & 7 deletions CONTRIBUTING.rst
Expand Up @@ -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
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
and also perform "lint" coding-style checks. ``runtox.py`` is
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.
and also perform "lint" coding-style checks.

#. You can now edit your local working copy.

Expand All @@ -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
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::

$ 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)::

Expand Down
9 changes: 3 additions & 6 deletions MANIFEST.in
Expand Up @@ -11,22 +11,19 @@ include setup.py

include .coveragerc

include plugin-test.sh
include requirements-docs.txt
include runtox.py

recursive-include bench *.py
recursive-include extra *.py

graft testing
graft doc
prune doc/en/_build

exclude _pytest/impl

graft _pytest/vendored_packages

recursive-exclude * *.pyc *.pyo

exclude appveyor/install.ps1
exclude appveyor.yml
exclude appveyor
exclude .travis.yml
prune .github
20 changes: 0 additions & 20 deletions plugin-test.sh

This file was deleted.

3 changes: 0 additions & 3 deletions requirements-docs.txt

This file was deleted.

8 changes: 0 additions & 8 deletions runtox.py

This file was deleted.

8 changes: 6 additions & 2 deletions tox.ini
Expand Up @@ -47,9 +47,13 @@ commands= pytest --genscript=pytest1

[testenv:linting]
basepython = python2.7
deps = flake8
deps =
flake8
restructuredtext_lint
commands = flake8 pytest.py _pytest testing
check-manifest
commands =
check-manifest
flake8 pytest.py _pytest testing
rst-lint CHANGELOG.rst HOWTORELEASE.rst

[testenv:py27-xdist]
Expand Down

0 comments on commit 84d7068

Please sign in to comment.