Skip to content
Myr

unbreak the Jenkins build (again/hopefully)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Pyflakes is unavailable in the Jenkins Python 3 / PyPy environments

authored by Shivaram Lingamneni · committed by Shivaram Lingamneni · parent 6fd03d5 · Browse files · 1 file+11 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−1 removed

  • other:+11 added−1 removed

1 file+11 added−1 removed

modified:Makefile+11 added-1 removed
4 unmodified lines
5PYFLAKES_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")19
12 unmodified lines
3233pyflakes:34 pyflakes ${PYFLAKES_WHITELIST}3536cipyflakes:37 ${PYFLAKES_IF_AVAILABLE} ${PYFLAKES_WHITELIST}3839citests:40 nosetests ${CI_TESTS} --with-xunit --xunit-file=junit-report.xml4132ci: citests pyflakes42ci: citests cipyflakes4344travis: citests4546server:
22 unmodified lines