| 1 |
.PHONY: docs |
| 2 |
init: |
| 3 |
python -m pip install -r requirements-dev.txt |
| 4 |
test: |
| 5 |
python -m pytest tests |
| 6 |
|
| 7 |
ci: |
| 8 |
python -m pytest tests --junitxml=report.xml |
| 9 |
|
| 10 |
test-readme: |
| 11 |
python setup.py check --restructuredtext --strict && ([ $$? -eq 0 ] && echo "README.rst and HISTORY.rst ok") || echo "Invalid markup in README.rst or HISTORY.rst!" |
| 12 |
|
| 13 |
coverage: |
| 14 |
python -m pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=src/requests tests |
| 15 |
|
| 16 |
.publishenv: |
| 17 |
python -m venv .publishenv |
| 18 |
.publishenv/bin/pip install 'twine>=1.5.0' build |
| 19 |
|
| 20 |
publish: .publishenv |
| 21 |
.publishenv/bin/python -m build |
| 22 |
.publishenv/bin/python -m twine upload --skip-existing dist/* |
| 23 |
rm -fr build dist .egg requests.egg-info |
| 24 |
|
| 25 |
docs: |
| 26 |
cd docs && make html |
| 27 |
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m" |