mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
43 lines
892 B
Makefile
43 lines
892 B
Makefile
.PHONY: docs
|
|
|
|
init:
|
|
pip install -r requirements.txt
|
|
|
|
test:
|
|
py.test
|
|
|
|
coverage:
|
|
py.test --verbose --cov-report term --cov=requests test_requests.py
|
|
|
|
ci: init
|
|
py.test --junitxml=junit.xml
|
|
|
|
certs:
|
|
curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem
|
|
|
|
deps: urllib3 charade
|
|
|
|
urllib3:
|
|
rm -fr requests/packages/urllib3
|
|
git clone https://github.com/shazow/urllib3.git
|
|
mv urllib3/urllib3 requests/packages/
|
|
rm -fr urllib3
|
|
|
|
charade:
|
|
rm -fr requests/packages/charade
|
|
git clone https://github.com/sigmavirus24/charade.git
|
|
mv charade/charade requests/packages/
|
|
rm -fr charade
|
|
|
|
publish:
|
|
python setup.py sdist upload
|
|
python setup.py bdist_wheel upload
|
|
|
|
|
|
docs-init:
|
|
pip install -r docs/requirements.txt
|
|
|
|
docs:
|
|
cd docs && make html
|
|
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
|