Files
deb-python-wsgi-intercept/Makefile
Chris Dent 57d6a28b26 Switch to using tox for testing
This allows easier testing of multiple versions of Python in a more
automated fashion. This is needed if we're ever going to make some
of the planned extensive refactorings.

This change:

* adds tox.ini
* updates Makefile and .travis.yml to point to tox
* fixes a doctest typo found while make sure the Makefile targets
  work
* adds a [docs] extras_require so that the deps in tox are managed
  cleanly

The pep8 target is currently commented out because it fails (and
has done for a long time). Will fix asap. This commit is to ensure
that travis is working. Followups will tune it up.
2016-09-22 19:00:13 +01:00

45 lines
980 B
Makefile

.PHONY: test clean reclean tagv pypi release docs
default:
@echo "Pick a target (e.g., clean, test)"
clean:
find wsgi_intercept test -name "*.py[co]" |xargs rm || true
find wsgi_intercept test -type d -name "__pycache__" |xargs rmdir || true
rm -r dist || true
rm -r build || true
rm -r wsgi_intercept.egg-info || true
rm *.bundle || true
rm -r *-bundle* || true
cd docs && make clean
reclean:
find wsgi_intercept test -name "*.py[co]" |xargs rm || true
find wsgi_intercept test -type d -name "__pycache__" |xargs rmdir || true
rm -r dist || true
rm -r build || true
rm -r wsgi_intercept.egg-info || true
rm *.bundle || true
rm -r *-bundle* || true
cd docs && make clean
test:
tox --skip-missing-interpreters
doctest:
cd docs && make doctest
tagv:
git tag -a \
-m v`python setup.py --version` \
v`python setup.py --version`
git push origin master --tags
pypi:
python setup.py sdist upload
docs:
tox -edocs
release: clean test tagv reclean pypi