Skip to content
Myr

Makefile

This file

Path

Makefile

80 lines · 2.2 KiB

Last changed by

oauthlibKenneth Reitzbefore adoption9576518

History of this file

Take it

1SHELL := /bin/bash23# these files should pass pyflakes4# exclude ./env/, which may contain virtualenv packages5PYFLAKES_WHITELIST=$(shell find . -name "*.py" ! -path "./docs/*" ! -path "./tests/*" \6	! -path "./requests/packages/*" ! -path "./env/*" \7	! -path "./requests/__init__.py" ! -path "./requests/compat.py")89# hack: if pyflakes is available, set this to the location of pyflakes10# if it's not, e.g., in the Python 3 or PyPy Jenkins environments, set it to11# the location of the no-op `true` command.12PYFLAKES_IF_AVAILABLE=$(shell if which pyflakes > /dev/null ; \13	then which pyflakes; \14	else which true; fi )1516# test_requests_ext.py depends on external services, and async doesn't work under Python 317# Travis/Jenkins should be ensuring that all other tests pass on all supported versions18CI_TESTS=$(shell find tests/ -name "*.py" ! -name "test_requests_ext.py" ! -name "test_requests_async.py")1920init:21	python setup.py develop22	pip install -r requirements.txt2324test:25	nosetests ./tests/*2627lazy:28	nosetests --with-color tests/test_requests.py2930simple:31	nosetests tests/test_requests.py3233pyflakes:34	pyflakes ${PYFLAKES_WHITELIST}3536cipyflakes:37	${PYFLAKES_IF_AVAILABLE} ${PYFLAKES_WHITELIST}3839citests:40	nosetests ${CI_TESTS} --with-xunit --xunit-file=junit-report.xml4142ci: citests cipyflakes4344travis: citests4546server:47	gunicorn httpbin:app --bind=0.0.0.0:7077 &4849# compute statistics of various kinds50lemonade:51	-pyflakes requests > violations.pyflakes.txt52	# HTML output will be available in the default location, ./cover/53	nosetests --with-coverage --cover-html --cover-package=requests ${CI_TESTS} ./tests/test_requests_async.py5455site:56	cd docs; make dirhtml5758clean:59	git clean -Xfd6061deps: urllib3 certs6263urllib3:64	rm -fr requests/packages/urllib365	git clone https://github.com/shazow/urllib3.git66	cd urllib3 && git checkout master && cd ..67	mv urllib3/urllib3 requests/packages/68	rm -fr urllib36970oauthlib:71	rm -fr requests/packages/oauthlib72	git clone https://github.com/idan/oauthlib.git73	cd oauthlib && git checkout master && cd ..74	mv oauthlib/oauthlib requests/packages/75	rm -fr oauthlib7677certs:78	cd requests && curl -O https://raw.github.com/kennethreitz/certifi/master/certifi/cacert.pem7980docs: site