11SHELL := /bin/bash
22
3- # these files should pass pyflakes
4- # exclude ./env/, which may contain virtualenv packages
5- PYFLAKES_WHITELIST =$(shell find . -name "* .py" ! -path "./docs/* " ! -path "./tests/* " \
6- ! -path "./requests/packages/* " ! -path "./env/* " \
7- ! -path "./requests/__init__.py" ! -path "./requests/compat.py")
8-
9- # hack: if pyflakes is available, set this to the location of pyflakes
10- # if it's not, e.g., in the Python 3 or PyPy Jenkins environments, set it to
11- # the location of the no-op `true` command.
12- PYFLAKES_IF_AVAILABLE =$(shell if which pyflakes > /dev/null ; \
13- then which pyflakes; \
14- else which true; fi )
15-
163# test_requests_ext.py depends on external services, and async doesn't work under Python 3
174# Travis/Jenkins should be ensuring that all other tests pass on all supported versions
185CI_TESTS =$(shell find tests/ -name "* .py" ! -name "test_requests_ext.py" ! -name "test_requests_async.py")
3017simple :
3118 nosetests tests/test_requests.py
3219
33- pyflakes :
34- pyflakes ${PYFLAKES_WHITELIST}
35-
36- cipyflakes :
37- ${PYFLAKES_IF_AVAILABLE} ${PYFLAKES_WHITELIST}
38-
3920citests :
4021 nosetests ${CI_TESTS} --with-xunit --xunit-file=junit-report.xml
4122
@@ -46,18 +27,6 @@ travis: citests
4627server :
4728 gunicorn httpbin:app --bind=0.0.0.0:7077 &
4829
49- # compute statistics of various kinds
50- lemonade :
51- -pyflakes requests > violations.pyflakes.txt
52- # 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.py
54-
55- site :
56- cd docs; make dirhtml
57-
58- clean :
59- git clean -Xfd
60-
6130deps : urllib3 certs charade
6231
6332urllib3 :
0 commit comments