| 1 | .PHONY: all install-dev test coverage cov test-all tox release-minor release-patch upload-minor upload-patch clean-pyc |
| 2 | |
| 3 | all: test |
| 4 | |
| 5 | install-dev: |
| 6 | pip install -q -e .[dev] |
| 7 | |
| 8 | test: clean-pyc install-dev |
| 9 | pytest tests/ |
| 10 | |
| 11 | coverage: clean-pyc install-dev |
| 12 | pytest --cov-report term-missing --cov-report html --cov=deprecated tests/ |
| 13 | |
| 14 | cov: coverage |
| 15 | |
| 16 | test-all: install-dev |
| 17 | tox |
| 18 | |
| 19 | tox: test-all |
| 20 | |
| 21 | release-minor: |
| 22 | bumpversion minor |
| 23 | python setup.py release |
| 24 | |
| 25 | release-patch: |
| 26 | bumpversion patch |
| 27 | python setup.py release |
| 28 | |
| 29 | upload-minor: release-minor |
| 30 | python setup.py upload |
| 31 | git push origin --tags |
| 32 | |
| 33 | upload-patch: release-patch |
| 34 | python setup.py upload |
| 35 | git push origin --tags |
| 36 | |
| 37 | clean-pyc: |
| 38 | find . -name '*.pyc' -exec rm -f {} + |
| 39 | find . -name '*.pyo' -exec rm -f {} + |
| 40 | find . -name '*~' -exec rm -f {} + |