Skip to content
Myr

Makefile

This file

Path

Makefile

62 lines · 1.6 KiB

Last changed by

Merge pull request #3620 from Lukasa/better-idnaCory Benfieldbefore adoption50486cf

History of this file

Take it

1.PHONY: docs23init:4	pip install -r requirements.txt56test:7	# This runs all of the tests. To run an individual test, run py.test with8	# the -k flag, like "py.test -k test_path_is_not_double_encoded"9	py.test tests1011coverage:12	py.test --verbose --cov-report term --cov=requests tests1314ci: init15	py.test --junitxml=junit.xml1617certs:18	curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem1920deps: urllib3 chardet idna2122urllib3:23	git clone https://github.com/shazow/urllib3.git && \24	    rm -fr requests/packages/urllib3 && \25	    cd urllib3 && \26	    git checkout `git describe --abbrev=0 --tags` && \27	    cd .. && \28	    mv urllib3/urllib3 requests/packages/ \29	    && rm -fr urllib33031chardet:32	git clone https://github.com/chardet/chardet.git && \33	    rm -fr requests/packages/chardet && \34	    cd chardet && \35	    git checkout `git describe --abbrev=0 --tags` && \36	    cd .. && \37	    mv chardet/chardet requests/packages/ && \38	    rm -fr chardet3940idna:41	git clone https://github.com/kjd/idna.git && \42	    rm -fr requests/packages/idna && \43	    cd idna && \44	    git checkout `git describe --abbrev=0 --tags` && \45	    cd .. && \46	    mv idna/idna requests/packages/ && \47	    find requests/packages/idna -type f -exec sed -i "" "s/^from idna/from /" {} \; && \48	    rm -fr idna4950publish:51	python setup.py register52	python setup.py sdist upload53	python setup.py bdist_wheel --universal upload54	rm -fr build dist .egg requests.egg-info555657docs-init:58	pip install -r docs/requirements.txt5960docs:61	cd docs && make html62	@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"