Skip to content
Myr

Makefile

This file

Path

Makefile

27 lines · 815 bytes

Last changed by

Move to src directory (#6506)Nate Prewittbefore adoptiond63e94f

History of this file

Take it

1.PHONY: docs2init:3	python -m pip install -r requirements-dev.txt4test:5	# This runs all of the tests on all supported Python versions.6	tox -p7ci: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!"1213flake8:14	python -m flake8 src/requests1516coverage:17	python -m pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=src/requests tests1819publish:20	python -m pip install 'twine>=1.5.0'21	python setup.py sdist bdist_wheel22	twine upload 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"