Skip to content
Myr

Makefile

This file

Path

Makefile

27 lines · 834 bytes

Last changed by

Update Makefile rules (#6996)Abhishek Jhabefore adoptionfec96cd

History of this file

Take it

1.PHONY: docs2init:3	python -m pip install -r requirements-dev.txt4test:5	python -m pytest tests67ci:8	python -m pytest tests --junitxml=report.xml910test-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!"1213coverage:14	python -m pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=src/requests tests1516.publishenv:17	python -m venv .publishenv18	.publishenv/bin/pip install 'twine>=1.5.0' build1920publish: .publishenv21	.publishenv/bin/python -m build22	.publishenv/bin/python -m twine upload --skip-existing dist/*23	rm -fr build dist .egg requests.egg-info2425docs:26	cd docs && make html27	@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"