Merge pull request #579 from slingamn/pyflakes.release
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Changes for #574
authored by Kenneth Reitz · committed by Kenneth Reitz · parents 38e6695, bcc4125 · Browse files · 5 files·+35 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+35 added−10 removed
- other:+35 added−10 removed
Provenance
- Commit
3d373e2- Tree
c235832- Author
Kenneth Reitz <me@kennethreitz.com>- Committer
Kenneth Reitz <me@kennethreitz.com>- Parent 1
38e6695- Parent 2
bcc4125
5 files changed+35 added−10 removed
modified:requests/auth.py+3 added-1 removed
10 unmodified lines11 import hashlib12 13 from base64 import b64encode14 15-from .compat import urlparse, str, is_py215+from .compat import urlparse, str16 from .utils import randombytes, parse_dict_header17 18 try:19 from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)20 from oauthlib.common import extract_params21+ # hush pyflakes:22+ SIGNATURE_HMAC; SIGNATURE_TYPE_AUTH_HEADER23 except (ImportError, SyntaxError):24 SIGNATURE_HMAC = None25 SIGNATURE_TYPE_AUTH_HEADER = None26 165 unmodified linesmodified:.gitignore+5 added-2 removed
1+.coverage2 MANIFEST3 coverage.xml4 nosetests.xml5+junit-report.xml6 pylint.txt7 toy.py6-junit-report.xml7-requests.egg-info/8+violations.pyflakes.txt9+cover/10 docs/_build11+requests.egg-info/12 *.pyc13 *.swpmodified:.travis.yml+1 added-1 removed
2 unmodified lines34567789102 unmodified lines - 2.6 - 2.7 - 3.2env: HTTPBIN_URL=http://httpbin.org/script: make ciscript: make travisinstall: - pip install nose - pip install . --use-mirrorsmodified:Makefile+24 added-6 removed
1 SHELL := /bin/bash2 3+# these files should pass pyflakes4+PYFLAKES_WHITELIST=$(shell find . -name "*.py" ! -path "./docs/*" ! -path "./tests/*" ! -path "./requests/packages/*" \5+ ! -path "./requests/__init__.py" ! -path "./requests/compat.py")6+7+# test_requests_ext.py depends on external services, and async doesn't work under Python 38+# Travis/Jenkins should be ensuring that all other tests pass on all supported versions9+CI_TESTS=$(shell find tests/ -name "*.py" ! -name "test_requests_ext.py" ! -name "test_requests_async.py")10+11 init:12 python setup.py develop13 pip install -r requirements.txt14 5 unmodified lines20 21 simple:22 nosetests tests/test_requests.py23 16-ci:17- find tests/ -name "*.py" ! -name "test_requests_ext.py" ! -name "test_requests_async.py" | xargs nosetests --with-xunit --xunit-file=junit-report.xml24+pyflakes:25+ pyflakes ${PYFLAKES_WHITELIST}26 27+citests:28+ nosetests ${CI_TESTS} --with-xunit --xunit-file=junit-report.xml29+30+ci: citests pyflakes31+32+travis: citests33+34 server:35 gunicorn httpbin:app --bind=0.0.0.0:7077 &36 22-stats:23- pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt37+# compute statistics of various kinds38+lemonade:39+ -pyflakes requests > violations.pyflakes.txt40+ # HTML output will be available in the default location, ./cover/41+ nosetests --with-coverage --cover-html --cover-package=requests ${CI_TESTS} ./tests/test_requests_async.py42 43 site:44 cd docs; make dirhtml45 28-pyc:29- find . -name "*.pyc" -exec rm '{}' ';'46+clean:47+ git clean -Xfd48 49 deps:50 rm -fr requests/packages/urllib351 git clone https://github.com/shazow/urllib3.git5 unmodified linesmodified:setup.py+2 added
10 unmodified lines11 from requests.compat import is_py312 13 try:14 from setuptools import setup15+ # hush pyflakes16+ setup17 except ImportError:18 from distutils.core import setup19 20 if sys.argv[-1] == 'publish':63 unmodified lines