1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
.PHONY: test docs pep8
default: test
test:
tox
coverage:
-rm test/.coverage
# can we exclude just the flake8 environment?
tox -e py27-tw154,pypy-tw154,py34-tw154,py34-asyncio,py27-asyncio,pypy-asyncio,py27-tw132
cd test && coverage combine
cd test && coverage html
cd test && coverage report --show-missing
install:
pip install --upgrade -e .[all,dev]
docs:
cd docs && make html
spelling:
cd docs && sphinx-build -b spelling . _spelling
pep8:
pep8 test/*.py txaio/*.py
# This will run pep8, pyflakes and can skip lines that end with # noqa
flake8:
flake8 --max-line-length=119 test/*.py txaio/*.py
# cleanup everything
clean:
rm -rf ./txaio.egg-info
rm -rf ./build
rm -rf ./dist
rm -rf ./temp
rm -rf ./_trial_temp
rm -rf ./.tox
rm -rf ./.eggs
rm -rf ./.cache
rm -rf ./test/.coverage.*.*
rm -rf ./docs/_build
rm -rf ./docs/_spelling
find . -name "*.tar.gz" -type f -exec rm -f {} \;
find . -name "*.egg" -type f -exec rm -f {} \;
find . -name "*.pyc" -type f -exec rm -f {} \;
find . -name "*__pycache__" -type d -exec rm -rf {} \;
# publish to PyPI
publish: clean
python setup.py sdist bdist_wheel
twine upload dist/*
|