Skip to content
Myr

Makefile

This file

Path

Makefile

58 lines · 1.6 KiB

Last changed by

Merge pull request #3988 from Lukasa/fix-appveyorKenneth Reitzbefore adoptioneae38b8

History of this file

Take it

1.PHONY: docs23init:4	pip install pipenv5	pipenv lock6	pipenv install --dev7	pipenv run pip install -e .[socks]89test:10	# This runs all of the tests. To run an individual test, run py.test with11	# the -k flag, like "py.test -k test_path_is_not_double_encoded"12	pipenv run py.test tests1314coverage:15	pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests1617certs:18	curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem1920deps: urllib3 chardet idna2122urllib3:23	git clone -b release 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	    rm -fr idna4849publish:50	pip install 'twine>=1.5.0'51	python setup.py sdist52	python setup.py bdist_wheel --universal53	twine upload dist/*54	rm -fr build dist .egg requests.egg-info5556docs:57	cd docs && make html58	@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"