Skip to content
Myr

Makefile

This file

Path

Makefile

59 lines · 1.6 KiB

Last changed by

Merge pull request #4041 from jdufresne/bdist_wheelCory Benfieldbefore adoptionba63e50

History of this file

Take it

1.PHONY: docs23init:4	pip install pipenv5	pipenv install --dev6	pipenv run pip install -e .[socks]78test:9	# This runs all of the tests. To run an individual test, run py.test with10	# the -k flag, like "py.test -k test_path_is_not_double_encoded"11	pipenv run py.test tests1213test-readme:14	pipenv run python setup.py check -r -s1516coverage:17	pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests1819certs:20	curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem2122deps: urllib3 chardet idna2324urllib3:25	git clone -b release https://github.com/shazow/urllib3.git && \26	    rm -fr requests/packages/urllib3 && \27	    cd urllib3 && \28	    git checkout `git describe --abbrev=0 --tags` && \29	    cd .. && \30	    mv urllib3/urllib3 requests/packages/ \31	    && rm -fr urllib33233chardet:34	git clone https://github.com/chardet/chardet.git && \35	    rm -fr requests/packages/chardet && \36	    cd chardet && \37	    git checkout `git describe --abbrev=0 --tags` && \38	    cd .. && \39	    mv chardet/chardet requests/packages/ && \40	    rm -fr chardet4142idna:43	git clone https://github.com/kjd/idna.git && \44	    rm -fr requests/packages/idna && \45	    cd idna && \46	    git checkout `git describe --abbrev=0 --tags` && \47	    cd .. && \48	    mv idna/idna requests/packages/ && \49	    rm -fr idna5051publish:52	pip install 'twine>=1.5.0'53	python setup.py sdist bdist_wheel54	twine upload dist/*55	rm -fr build dist .egg requests.egg-info5657docs:58	cd docs && make html59	@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"