diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | debian/.git-dpm | 11 | ||||
-rw-r--r-- | debian/changelog | 388 | ||||
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 116 | ||||
-rw-r--r-- | debian/copyright | 502 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/patches/01_use-system-ca-certificates.patch | 51 | ||||
-rw-r--r-- | debian/patches/02_populate-install_requires.patch | 31 | ||||
-rw-r--r-- | debian/patches/03_export-IncompleteRead.patch | 35 | ||||
-rw-r--r-- | debian/patches/series | 3 | ||||
-rw-r--r-- | debian/python-requests-whl.install | 1 | ||||
-rw-r--r-- | debian/python-requests.pyremove | 2 | ||||
-rw-r--r-- | debian/python3-requests.pyremove | 2 | ||||
-rwxr-xr-x | debian/rules | 30 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 | ||||
-rw-r--r-- | requests.egg-info/PKG-INFO | 1238 | ||||
-rw-r--r-- | requests.egg-info/SOURCES.txt | 96 | ||||
-rw-r--r-- | requests.egg-info/dependency_links.txt | 1 | ||||
-rw-r--r-- | requests.egg-info/not-zip-safe | 1 | ||||
-rw-r--r-- | requests.egg-info/requires.txt | 5 | ||||
-rw-r--r-- | requests.egg-info/top_level.txt | 1 |
24 files changed, 1180 insertions, 1342 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45149aa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.egg-info/* diff --git a/debian/.git-dpm b/debian/.git-dpm new file mode 100644 index 0000000..b247795 --- /dev/null +++ b/debian/.git-dpm @@ -0,0 +1,11 @@ +# see git-dpm(1) from git-dpm package +12a013173d4175a3dcbe728128a63a399358bf6f +12a013173d4175a3dcbe728128a63a399358bf6f +1f19c06843e6d266368e3b570352bdf7d789a0de +1f19c06843e6d266368e3b570352bdf7d789a0de +requests_2.9.1.orig.tar.gz +17f01c47a0d7c676f6291608ef2f43db3fa74095 +484252 +debianTag="debian/%e%v" +patchedTag="patched/%e%v" +upstreamTag="upstream/%e%u" diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8ea167e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,388 @@ +requests (2.9.1-1) UNRELEASED; urgency=medium + + * New upstream release 2.9.1 + + -- Christopher Baines <mail@cbaines.net> Tue, 22 Dec 2015 13:47:07 +0000 + +requests (2.8.1-1) unstable; urgency=medium + + * New upstream release. (Closes: #802760) + * debian/control + - Bump python{,3}-urllib3 to >= 1.12 both in Build-Depends and Depends. + * debian/patches/05_upstream_devendorize.patch + - Remove because included since version 2.8.0. + * debian/patches/02_populate-install_requires.patch + - Populate install_requires for unbundled packages to avoid breakage + updating urllib3 via pip when requests/urllib3 are already installed + via the system packages. + + -- Daniele Tricoli <eriol@mornie.org> Sat, 24 Oct 2015 17:46:58 +0200 + +requests (2.7.0-3) unstable; urgency=medium + + [ Barry Warsaw ] + * debian/patches: + - 02_use-system-chardet-and-urllib3.patch and + 04_make-requests.packages.urllib3-same-as-urllib3.patch: Removed in + favor of upstream's pull request #2567 + - 05_upstream_devendorize.patch: Upstream's pull request to better + support the devendorizing of urllib3 and chardet. + (Closes: #771349, #788383) + + [ Daniele Tricoli ] + * debian/python{,3}-requests.pyremove + - Remove embedded copy of chardet and urllib3. Previously it was done by + 02_use-system-chardet-and-urllib3.patch. + + -- Daniele Tricoli <eriol@mornie.org> Thu, 11 Jun 2015 01:39:13 +0200 + +requests (2.7.0-2) unstable; urgency=medium + + * Upload to unstable. + * debian/control + - Add httpie (<< 0.9.2) to python-requests' Breaks since constants + imported by httpie from requests.compat were removed. + + -- Daniele Tricoli <eriol@mornie.org> Wed, 27 May 2015 17:31:38 +0200 + +requests (2.7.0-1) experimental; urgency=medium + + * New upstream release. (Closes: #784095) + - Embedded copy (not used) of urllib3 does not require SSLv3 anymore. + (Closes: #770172) + * debian/control + - Move python-ndg-httpsclient, python-openssl and python-pyasn1 to Suggests + inside python-requests' stanza since Python 2.7.9 include SNI support + and PEP 476 made it as secure as Python 3. + - Bump python{,3}-urllib3 to 1.10.4. + * debian/copyright + - Update copyright years. + - Update to MPL-2.0 license stanza of requests/cacert.pem (not used but + shipped in orig tarball). + * debian/watch + - Use pypi.debian.net redirector. + * debian/patches/01_use-system-ca-certificates.patch + - Refresh and remove CA certificate bundle from MANIFEST.in. + (Closes: #781610) + * debian/patches/02_use-system-chardet-and-urllib3.patch + - Refresh. + * debian/patches/04_make-requests.packages.urllib3-same-as-urllib3.patch + - Refresh. + * debian/patches/05_do-not-ascribe-cookies-to-the-target-domain.patch + - Remove since fixed upstream. + * debian/python{,3}-requests.links + - Remove links thanks to the import machinery in + 04_make-requests.packages.urllib3-same-as-urllib3.patch + + -- Daniele Tricoli <eriol@mornie.org> Mon, 04 May 2015 21:43:40 +0200 + +requests (2.4.3-6) unstable; urgency=medium + + * debian/patches/05_do-not-ascribe-cookies-to-the-target-domain.patch + - Fix session fixation and cookie stealing: CVE-2015-2296. + (Closes: #780506) + + -- Daniele Tricoli <eriol@mornie.org> Mon, 16 Mar 2015 01:31:10 +0100 + +requests (2.4.3-5) unstable; urgency=medium + + * Team upload. + * d/control: Remove the Build-Depends on python{,3}-pytest since we + aren't actually running the tests at build time. (Closes: #770173) + * d/rules: Update the comment about why the tests are currently disabled + at build time to point to the updated upstream url. + + -- Barry Warsaw <barry@debian.org> Wed, 19 Nov 2014 18:00:46 -0500 + +requests (2.4.3-4) unstable; urgency=medium + + * debian/patches/04_make-requests.packages.urllib3-same-as-urllib3.patch + - Fix requests.packages.urllib3 sub on Python 3. Thanks to Tianon + Gravi for the report. (Closes: #769496) + + -- Daniele Tricoli <eriol@mornie.org> Fri, 14 Nov 2014 04:50:22 +0100 + +requests (2.4.3-3) unstable; urgency=medium + + * debian/patches/04_make-requests.packages.urllib3-same-as-urllib3.patch + - Make Python import system know that requests.packages.urllib3 and + urllib3 are the same thing. Thanks to Jakub Wilk for the patch. + (Closes: #769047) + + -- Daniele Tricoli <eriol@mornie.org> Tue, 11 Nov 2014 03:28:18 +0100 + +requests (2.4.3-2) unstable; urgency=medium + + * debian/patches/03_export-IncompleteRead.patch + - Export IncompleteRead from requests.compat since it's imported by + python-pip. (Closes: #766419) + + -- Daniele Tricoli <eriol@mornie.org> Thu, 23 Oct 2014 02:54:46 +0200 + +requests (2.4.3-1) unstable; urgency=medium + + * New upstream release. + * debian/control + - Fix duplicate-short-description. + - Bump Standards-Version to 3.9.6 (no changes needed). + - Add python-ndg-httpsclient, python-openssl and python-pyasn1 into + python-urllib3's Recomends to ensure that SNI works as expected and to + prevent CRIME attack. (Closes: #755805) + - Add python3-ndg-httpsclient, python3-openssl and python3-pyasn1 into + python3-urllib3's Suggests since Python 3 already support SNI and + and SSL compression can be disabled using OP_NO_COMPRESSION. + - Bump python{,3}-urllib3 to (>=1.9.1). + * debian/patches/01_use-system-ca-certificates.patch + - Refresh. + * debian/patches/02_use-system-chardet-and-urllib3.patch + - Refresh. + - Provide requests.packages package because it will be used to supply + a stub for requests.packages.urllib3. + * debian/python{,3}-requests.links: + - Provide requests.packages.urllib3 as symlink of python{,3}-urllib3 + system package since it is used as import location. (Closes: #753578) + + -- Daniele Tricoli <eriol@mornie.org> Tue, 21 Oct 2014 01:35:59 +0200 + +requests (2.3.0-1) unstable; urgency=medium + + * Team upload. + - Fix CVE-2014-1829 and CVE-2014-1830 (Closes: #733108) + * New upstream release. + * d/control: Added python{,3}-pytest to Build-Depends. + * d/patches/*: Refreshed. + + -- Barry Warsaw <barry@debian.org> Wed, 04 Jun 2014 10:40:46 -0400 + +requests (2.2.1-3) unstable; urgency=medium + + * Team upload. + * d/control: + - Fix python-requests-whl Depends. + - Fix typo in python-requests-whl description. + + -- Barry Warsaw <barry@debian.org> Thu, 22 May 2014 18:33:19 -0400 + +requests (2.2.1-2) unstable; urgency=medium + + * Team upload. + * debian/control + - Add python-requests-whl binary package. + - Build-Depends on python3-wheel, python-setuptools, + and python3-setuptools. + - wrap-and-sort. + * debian/rules: + - Simplify by using PYBUILD_NAME. + - Build the universal wheels. + + -- Barry Warsaw <barry@debian.org> Thu, 15 May 2014 17:09:30 -0400 + +requests (2.2.1-1) unstable; urgency=medium + + * New upstream release + * debian/control + - Bumped Standards-Version to 3.9.5 (no changes needed) + * debian/copyright + - Updated copyright years + * debian/patches/02_use-system-chardet-and-urllib3.patches + - Refreshed + + -- Daniele Tricoli <eriol@mornie.org> Mon, 27 Jan 2014 04:58:17 +0100 + +requests (2.0.0-1) unstable; urgency=low + + * New upstream release (Closes: #725784) + * Switched to pybuild + * debian/clean + - Switched to debian/clean for cleaning instead of using debian/rules + * debian/control + - Bumped python(3)-urllib3 to (>=1.7.1) + * debian/copyright + - Updated copyright year + * debian/patches/02_use-system-chardet-and-urllib3.patches + - Refreshed + * debian/watch + - Switched download URL to https + + -- Daniele Tricoli <eriol@mornie.org> Fri, 18 Oct 2013 19:20:21 +0200 + +requests (1.2.3-1) unstable; urgency=low + + * New upstream release (Closes: #712915) (LP: #1187429) + - Thanks to Scott Moser for the report + * debian/compat + - Bumped debhelper compatibility level to 9 + * debian/control + - Bumped debhelper B-D to (>= 9) + - Temporarily bumped X-Python-Version to >= 2.7 to prevent FTBFS + due to lack of python-urllib3 for Python 2.6 + * debian/patches/02_use-system-chardet-and-urllib3.patches + - Refreshed + + -- Daniele Tricoli <eriol@mornie.org> Fri, 21 Jun 2013 08:52:39 +0200 + +requests (1.2.0-2) unstable; urgency=low + + * Uploading to unstable. + * rm -rf requests.egg-info on clean so the package can be built twice. + + -- Thomas Goirand <zigo@debian.org> Sat, 11 May 2013 05:15:04 +0000 + +requests (1.2.0-1) experimental; urgency=low + + * New upstream version. + * Refreshed both debian-specific patches. + + -- Thomas Goirand <zigo@debian.org> Thu, 25 Apr 2013 22:56:42 +0000 + +requests (1.1.0-1) experimental; urgency=low + + * New upstream release (Closes: #692602) + - Thanks to Barry Warsaw for report + * debian/control + - Added python-chardet, python3-chardet to Build-Depends and moved + them from Recommends to Depends since chardet is now required + - Added python(3)-urllib3 (>= 1.5) to Build-Depends and Depends + since the embedded copy is no more a fork + - Removed python(3)-six since python(3)-urllib3 is not embedded + anymore + - Removed python-gevent and python-oauthlib from Recommends + since upstream is not using them anymore + - Bumped Standards-Version to 3.9.4 (no changes needed) + - Fixed lintian vcs-field-not-canonical + * debian/copyright + - Updated to reflect upstream switch to Apache 2.0 and updated + copyright years + * debian/patches/01_do-not-use-python-certifi.patch + - Removed because no longer necessary + * debian/patches/02_do-not-use-embedded-python-six.patch + - Removed because no longer necessary + * debian/patches/01_use-system-ca-certificates.patch + - Use the bundle provided by ca-certificates instead of + the embedded one + * debian/patches/02_use-system-chardet-and-urllib3.patches + - Use the system python-chardet and python-urllib3 instead of the + embedded copies + + -- Daniele Tricoli <eriol@mornie.org> Sun, 20 Jan 2013 23:03:45 +0100 + +requests (0.12.1-1) unstable; urgency=low + + * New upstream release + * debian/control + - Added python-oauthlib to python-requests' Recommends field + * debian/patches/01_do-not-use-python-certifi.patch + - Refreshed + + -- Daniele Tricoli <eriol@mornie.org> Fri, 04 May 2012 14:34:47 +0200 + +requests (0.11.2-1) unstable; urgency=low + + * New upstream release + * debian/patches/01_do-not-use-python-certifi.patch + - Refreshed + + -- Daniele Tricoli <eriol@mornie.org> Mon, 23 Apr 2012 16:06:33 +0200 + +requests (0.11.1-1) unstable; urgency=low + + * New upstream release + * debian/control + - Added python3-chardet to python3-requests' Recommends field + - Updated Description field + * debian/patches/02_do-not-use-embedded-python-six.patch + - Refreshed + + -- Daniele Tricoli <eriol@mornie.org> Sun, 01 Apr 2012 12:33:42 +0200 + +requests (0.10.8-1) unstable; urgency=low + + [ Piotr Ożarowski ] + * Fix typo in python3-requests' ${python3:Depends} + + [ Daniele Tricoli ] + * New upstream release (Closes: #663561) + * Removed embedded copy of python-six + - Added debian/patches/02_do-not-use-embedded-python-six.patch + - Added override_dh_auto_configure to debian/rules to remove + the embedded copy + - Added python(3)-six to Builds-Depends and Depends + * debian/control + - Bumped Standards-Version to 3.9.3 (no changes needed) + * debian/copyright + - Added forgotten stanzas about packages inside the fork + of python-urllib3 + * debian/patches/01_do-not-use-python-certifi.patch + - Refreshed + * debian/patches/02_fix-python3-except-sintax-error.patch + - Removed as it is applied upstream + + -- Daniele Tricoli <eriol@mornie.org> Mon, 19 Mar 2012 01:20:59 +0100 + +requests (0.10.1-1) unstable; urgency=low + + * New upstream release + - Adds Python 3 support + * Builded python 3 package + * debian/control + - Added python-chardet to Recommends + - Bumped X-Python-Version >= 2.6 + - Added ca-certificates to Depends + - Added python3-all to Build-Depends + * debian/copyright + - Updated Format URI + - Updated copyright years + * debian/patches/01_do-not-use-python-certifi.patch + - To verify SSL certificates for HTTPS requests, use the bundle provided by + ca-certificates instead of python-certifi + * debian/patches/02_fix-python3-except-sintax-error.patches + - Fix SyntaxError on Python3 because "except Error, e" is not supported + anymore + * debian/rules + - Added override_dh_auto_clean to make the package build twice in a row + + -- Daniele Tricoli <eriol@mornie.org> Sun, 05 Feb 2012 04:51:38 +0100 + +requests (0.8.2-1) unstable; urgency=low + + * New upstream release + * debian/watch + - Removed "debian uupdate" options + * debian/{copyright,README.source} + - Updated to reflect upstream changes: switched from poster to + urllib3 + - Added a stanza about the embedded modified copy of the + standard module Cookie + + -- Daniele Tricoli <eriol@mornie.org> Fri, 25 Nov 2011 00:02:28 +0100 + +requests (0.6.4-1) unstable; urgency=low + + * New upstream release + * debian/control + - Dropped python-eventlet from Depends field because it's not used + anymore + - Moved python-gevent from Depends field to Recommends field so + python-requests can be installed also in ia64 and sparc + + -- Daniele Tricoli <eriol@mornie.org> Wed, 19 Oct 2011 20:49:39 +0200 + +requests (0.6.1-1) unstable; urgency=low + + * New upstream release + + -- Daniele Tricoli <eriol@mornie.org> Tue, 23 Aug 2011 02:00:41 +0200 + +requests (0.5.0-1) unstable; urgency=low + + * New upstream release + * debian/control + - Updated description to mention proxy support + + -- Daniele Tricoli <eriol@mornie.org> Sun, 26 Jun 2011 07:12:03 +0200 + +requests (0.4.1-1) unstable; urgency=low + + * Initial release (Closes: #629370) + + -- Daniele Tricoli <eriol@mornie.org> Mon, 06 Jun 2011 02:11:15 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..6b4c10a --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +requests.egg-info/* diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..bf7e16e --- /dev/null +++ b/debian/control @@ -0,0 +1,116 @@ +Source: requests +Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> +Uploaders: Daniele Tricoli <eriol@mornie.org> +Section: python +Priority: optional +Build-Depends: + debhelper (>= 9), + dh-python, + python-all (>= 2.6.6-3), + python-chardet, + python-setuptools, + python-urllib3 (>= 1.12), + python3-all, + python3-chardet, + python3-setuptools, + python3-urllib3 (>= 1.12), + python3-wheel +Standards-Version: 3.9.6 +X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.0 +Homepage: http://python-requests.org +Vcs-Git: git://anonscm.debian.org/python-modules/packages/requests.git +Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/requests.git + +Package: python-requests +Architecture: all +Depends: + ${misc:Depends}, + ${python:Depends}, + ca-certificates, + python-chardet, + python-urllib3 (>= 1.12) +Suggests: + python-ndg-httpsclient, + python-openssl, + python-pyasn1 +Breaks: httpie (<< 0.9.2) +Description: elegant and simple HTTP library for Python2, built for human beings + Requests allow you to send HTTP/1.1 requests. You can add headers, form data, + multipart files, and parameters with simple Python dictionaries, and access + the response data in the same way. It's powered by httplib and urllib3, but + it does all the hard work and crazy hacks for you. + . + Features + . + - International Domains and URLs + - Keep-Alive & Connection Pooling + - Sessions with Cookie Persistence + - Browser-style SSL Verification + - Basic/Digest Authentication + - Elegant Key/Value Cookies + - Automatic Decompression + - Unicode Response Bodies + - Multipart File Uploads + - Connection Timeouts + +Package: python3-requests +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, + ca-certificates, + python3-chardet, + python3-urllib3 (>= 1.12) +Suggests: + python3-ndg-httpsclient, + python3-openssl, + python3-pyasn1 +Description: elegant and simple HTTP library for Python3, built for human beings + Requests allow you to send HTTP/1.1 requests. You can add headers, form data, + multipart files, and parameters with simple Python dictionaries, and access + the response data in the same way. It's powered by httplib and urllib3, but + it does all the hard work and crazy hacks for you. + . + Features + . + - International Domains and URLs + - Keep-Alive & Connection Pooling + - Sessions with Cookie Persistence + - Browser-style SSL Verification + - Basic/Digest Authentication + - Elegant Key/Value Cookies + - Automatic Decompression + - Unicode Response Bodies + - Multipart File Uploads + - Connection Timeouts + . + This package contains the Python 3 version of the library. + +Package: python-requests-whl +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, + ca-certificates, + python-urllib3-whl +Description: elegant and simple HTTP library for Python, built for human beings + Requests allow you to send HTTP/1.1 requests. You can add headers, form data, + multipart files, and parameters with simple Python dictionaries, and access + the response data in the same way. It's powered by httplib and urllib3, but + it does all the hard work and crazy hacks for you. + . + Features + . + - International Domains and URLs + - Keep-Alive & Connection Pooling + - Sessions with Cookie Persistence + - Browser-style SSL Verification + - Basic/Digest Authentication + - Elegant Key/Value Cookies + - Automatic Decompression + - Unicode Response Bodies + - Multipart File Uploads + - Connection Timeouts + . + This package provides the universal wheel. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4629601 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,502 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: requests +Upstream-Contact: Kenneth Reitz <me@kennethreitz.com> +Source: http://pypi.python.org/pypi/requests + +Files: * +Copyright: 2015, Kenneth Reitz +License: Apache + +Files: requests/packages/urllib3/* +Copyright: 2008-2013, Andrey Petrov +License: Expat + +Files: requests/packages/urllib3/packages/ordered_dict.py +Copyright: 2009, Raymond Hettinger +License: Expat + +Files: requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +Copyright: 2011, Python Software Foundation +License: PSF-2 + +Files: requests/packages/urllib3/packages/six.py +Copyright: 2010-2011, Benjamin Peterson +License: Expat + +Files: requests/packages/chardet/* +Copyright: 2006-2008, Mark Pilgrim + 2012-2013, Ian Cordasco +License: LGPL-2.1+ + +Files: requests/cacert.pem +Copyright: 2013, Mozilla +License: MPL-2.0 + +Files: debian/* +Copyright: 2011-2015, Daniele Tricoli <eriol@mornie.org> +License: Apache + +License: Apache + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this software except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the full text of the Apache License, Version 2.0 can be + found in the file `/usr/share/common-licenses/Apache-2.0'. + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +License: PSF-2 + 1. This LICENSE AGREEMENT is between the Python Software Foundation + ("PSF"), and the Individual or Organization ("Licensee") accessing + and otherwise using this software ("Python") in source or binary form + and its associated documentation. + . + 2. Subject to the terms and conditions of this License Agreement, PSF + hereby grants Licensee a nonexclusive, royalty-free, world-wide + license to reproduce, analyze, test, perform and/or display publicly, + prepare derivative works, distribute, and otherwise use Python alone + or in any derivative version, provided, however, that PSF's License + Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, + 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights + Reserved" are retained in Python alone or in any derivative version + prepared by Licensee. + . + 3. In the event Licensee prepares a derivative work that is based on + or incorporates Python or any part thereof, and wants to make the + derivative work available to others as provided herein, then Licensee + hereby agrees to include in any such work a brief summary of the + changes made to Python. + . + 4. PSF is making Python available to Licensee on an "AS IS" + basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR + IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND + DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR + FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT + INFRINGE ANY THIRD PARTY RIGHTS. + . + 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON + FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A + RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY + DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + . + 6. This License Agreement will automatically terminate upon a + material breach of its terms and conditions. + . + 7. Nothing in this License Agreement shall be deemed to create any + relationship of agency, partnership, or joint venture between PSF and + Licensee. This License Agreement does not grant permission to use PSF + trademarks or trade name in a trademark sense to endorse or promote + products or services of Licensee, or any third party. + . + 8. By copying, installing or otherwise using Python, Licensee agrees + to be bound by the terms and conditions of this License Agreement. + +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2.1 of the + License, or (at your option) any later version. + . + See /usr/share/common-licenses/LGPL-2.1 for the full license text. + +License: MPL-2.0 + Mozilla Public License Version 2.0 + ================================== + . + 1. Definitions + -------------- + . + 1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + . + 1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + . + 1.3. "Contribution" + means Covered Software of a particular Contributor. + . + 1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + . + 1.5. "Incompatible With Secondary Licenses" + means + . + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + . + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + . + 1.6. "Executable Form" + means any form of the work other than Source Code Form. + . + 1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + . + 1.8. "License" + means this document. + . + 1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + . + 1.10. "Modifications" + means any of the following: + . + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + . + (b) any new file in Source Code Form that contains any Covered + Software. + . + 1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + . + 1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + . + 1.13. "Source Code Form" + means the form of the work preferred for making modifications. + . + 1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + . + 2. License Grants and Conditions + -------------------------------- + . + 2.1. Grants + . + Each Contributor hereby grants You a world-wide, royalty-free, + non-exclusive license: + . + (a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + . + (b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + . + 2.2. Effective Date + . + The licenses granted in Section 2.1 with respect to any Contribution + become effective for each Contribution on the date the Contributor first + distributes such Contribution. + . + 2.3. Limitations on Grant Scope + . + The licenses granted in this Section 2 are the only rights granted under + this License. No additional rights or licenses will be implied from the + distribution or licensing of Covered Software under this License. + Notwithstanding Section 2.1(b) above, no patent license is granted by a + Contributor: + . + (a) for any code that a Contributor has removed from Covered Software; + or + . + (b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + . + (c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + . + This License does not grant any rights in the trademarks, service marks, + or logos of any Contributor (except as may be necessary to comply with + the notice requirements in Section 3.4). + . + 2.4. Subsequent Licenses + . + No Contributor makes additional grants as a result of Your choice to + distribute the Covered Software under a subsequent version of this + License (see Section 10.2) or under the terms of a Secondary License (if + permitted under the terms of Section 3.3). + . + 2.5. Representation + . + Each Contributor represents that the Contributor believes its + Contributions are its original creation(s) or it has sufficient rights + to grant the rights to its Contributions conveyed by this License. + . + 2.6. Fair Use + . + This License is not intended to limit any rights You have under + applicable copyright doctrines of fair use, fair dealing, or other + equivalents. + . + 2.7. Conditions + . + Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted + in Section 2.1. + . + 3. Responsibilities + ------------------- + . + 3.1. Distribution of Source Form + . + All distribution of Covered Software in Source Code Form, including any + Modifications that You create or to which You contribute, must be under + the terms of this License. You must inform recipients that the Source + Code Form of the Covered Software is governed by the terms of this + License, and how they can obtain a copy of this License. You may not + attempt to alter or restrict the recipients' rights in the Source Code + Form. + . + 3.2. Distribution of Executable Form + . + If You distribute Covered Software in Executable Form then: + . + (a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + . + (b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + . + 3.3. Distribution of a Larger Work + . + You may create and distribute a Larger Work under terms of Your choice, + provided that You also comply with the requirements of this License for + the Covered Software. If the Larger Work is a combination of Covered + Software with a work governed by one or more Secondary Licenses, and the + Covered Software is not Incompatible With Secondary Licenses, this + License permits You to additionally distribute such Covered Software + under the terms of such Secondary License(s), so that the recipient of + the Larger Work may, at their option, further distribute the Covered + Software under the terms of either this License or such Secondary + License(s). + . + 3.4. Notices + . + You may not remove or alter the substance of any license notices + (including copyright notices, patent notices, disclaimers of warranty, + or limitations of liability) contained within the Source Code Form of + the Covered Software, except that You may alter any license notices to + the extent required to remedy known factual inaccuracies. + . + 3.5. Application of Additional Terms + . + You may choose to offer, and to charge a fee for, warranty, support, + indemnity or liability obligations to one or more recipients of Covered + Software. However, You may do so only on Your own behalf, and not on + behalf of any Contributor. You must make it absolutely clear that any + such warranty, support, indemnity, or liability obligation is offered by + You alone, and You hereby agree to indemnify every Contributor for any + liability incurred by such Contributor as a result of warranty, support, + indemnity or liability terms You offer. You may include additional + disclaimers of warranty and limitations of liability specific to any + jurisdiction. + . + 4. Inability to Comply Due to Statute or Regulation + --------------------------------------------------- + . + If it is impossible for You to comply with any of the terms of this + License with respect to some or all of the Covered Software due to + statute, judicial order, or regulation then You must: (a) comply with + the terms of this License to the maximum extent possible; and (b) + describe the limitations and the code they affect. Such description must + be placed in a text file included with all distributions of the Covered + Software under this License. Except to the extent prohibited by statute + or regulation, such description must be sufficiently detailed for a + recipient of ordinary skill to be able to understand it. + . + 5. Termination + -------------- + . + 5.1. The rights granted under this License will terminate automatically + if You fail to comply with any of its terms. However, if You become + compliant, then the rights granted under this License from a particular + Contributor are reinstated (a) provisionally, unless and until such + Contributor explicitly and finally terminates Your grants, and (b) on an + ongoing basis, if such Contributor fails to notify You of the + non-compliance by some reasonable means prior to 60 days after You have + come back into compliance. Moreover, Your grants from a particular + Contributor are reinstated on an ongoing basis if such Contributor + notifies You of the non-compliance by some reasonable means, this is the + first time You have received notice of non-compliance with this License + from such Contributor, and You become compliant prior to 30 days after + Your receipt of the notice. + . + 5.2. If You initiate litigation against any entity by asserting a patent + infringement claim (excluding declaratory judgment actions, + counter-claims, and cross-claims) alleging that a Contributor Version + directly or indirectly infringes any patent, then the rights granted to + You by any and all Contributors for the Covered Software under Section + 2.1 of this License shall terminate. + . + 5.3. In the event of termination under Sections 5.1 or 5.2 above, all + end user license agreements (excluding distributors and resellers) which + have been validly granted by You or Your distributors under this License + prior to termination shall survive termination. + . + ************************************************************************ + * * + * 6. Disclaimer of Warranty * + * ------------------------- * + * * + * Covered Software is provided under this License on an "as is" * + * basis, without warranty of any kind, either expressed, implied, or * + * statutory, including, without limitation, warranties that the * + * Covered Software is free of defects, merchantable, fit for a * + * particular purpose or non-infringing. The entire risk as to the * + * quality and performance of the Covered Software is with You. * + * Should any Covered Software prove defective in any respect, You * + * (not any Contributor) assume the cost of any necessary servicing, * + * repair, or correction. This disclaimer of warranty constitutes an * + * essential part of this License. No use of any Covered Software is * + * authorized under this License except under this disclaimer. * + * * + ************************************************************************ + . + ************************************************************************ + * * + * 7. Limitation of Liability * + * -------------------------- * + * * + * Under no circumstances and under no legal theory, whether tort * + * (including negligence), contract, or otherwise, shall any * + * Contributor, or anyone who distributes Covered Software as * + * permitted above, be liable to You for any direct, indirect, * + * special, incidental, or consequential damages of any character * + * including, without limitation, damages for lost profits, loss of * + * goodwill, work stoppage, computer failure or malfunction, or any * + * and all other commercial damages or losses, even if such party * + * shall have been informed of the possibility of such damages. This * + * limitation of liability shall not apply to liability for death or * + * personal injury resulting from such party's negligence to the * + * extent applicable law prohibits such limitation. Some * + * jurisdictions do not allow the exclusion or limitation of * + * incidental or consequential damages, so this exclusion and * + * limitation may not apply to You. * + * * + ************************************************************************ + . + 8. Litigation + ------------- + . + Any litigation relating to this License may be brought only in the + courts of a jurisdiction where the defendant maintains its principal + place of business and such litigation shall be governed by laws of that + jurisdiction, without reference to its conflict-of-law provisions. + Nothing in this Section shall prevent a party's ability to bring + cross-claims or counter-claims. + . + 9. Miscellaneous + ---------------- + . + This License represents the complete agreement concerning the subject + matter hereof. If any provision of this License is held to be + unenforceable, such provision shall be reformed only to the extent + necessary to make it enforceable. Any law or regulation which provides + that the language of a contract shall be construed against the drafter + shall not be used to construe this License against a Contributor. + . + 10. Versions of the License + --------------------------- + . + 10.1. New Versions + . + Mozilla Foundation is the license steward. Except as provided in Section + 10.3, no one other than the license steward has the right to modify or + publish new versions of this License. Each version will be given a + distinguishing version number. + . + 10.2. Effect of New Versions + . + You may distribute the Covered Software under the terms of the version + of the License under which You originally received the Covered Software, + or under the terms of any subsequent version published by the license + steward. + . + 10.3. Modified Versions + . + If you create software not governed by this License, and you want to + create a new license for such software, you may create and use a + modified version of this License if you rename the license and remove + any references to the name of the license steward (except to note that + such modified license differs from this License). + . + 10.4. Distributing Source Code Form that is Incompatible With Secondary + Licenses + . + If You choose to distribute Source Code Form that is Incompatible With + Secondary Licenses under the terms of this version of the License, the + notice described in Exhibit B of this License must be attached. + . + Exhibit A - Source Code Form License Notice + ------------------------------------------- + . + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + . + If it is not possible or desirable to put the notice in a particular + file, then You may include the notice in a location (such as a LICENSE + file in a relevant directory) where a recipient would be likely to look + for such a notice. + . + You may add additional accurate notices of copyright ownership. + . + Exhibit B - "Incompatible With Secondary Licenses" Notice + --------------------------------------------------------- + . + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/patches/01_use-system-ca-certificates.patch b/debian/patches/01_use-system-ca-certificates.patch new file mode 100644 index 0000000..47e2b80 --- /dev/null +++ b/debian/patches/01_use-system-ca-certificates.patch @@ -0,0 +1,51 @@ +From f295a4caa458daf5cfb57793af6183192851a90c Mon Sep 17 00:00:00 2001 +From: Daniele Tricoli <eriol@mornie.org> +Date: Thu, 8 Oct 2015 13:41:42 -0700 +Subject: Use the bundle provided by ca-certificates instead of + + the embedded one. +Forwarded: not-needed +Last-Update: 2014-10-08 + +Patch-Name: 01_use-system-ca-certificates.patch +--- + MANIFEST.in | 2 +- + requests/certs.py | 4 ++-- + setup.py | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/MANIFEST.in b/MANIFEST.in +index 439de49..7888aee 100644 +--- a/MANIFEST.in ++++ b/MANIFEST.in +@@ -1 +1 @@ +-include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt requests/cacert.pem ++include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt +diff --git a/requests/certs.py b/requests/certs.py +index 07e6475..e61ee5d 100644 +--- a/requests/certs.py ++++ b/requests/certs.py +@@ -18,8 +18,8 @@ try: + except ImportError: + def where(): + """Return the preferred certificate bundle.""" +- # vendored bundle inside Requests +- return os.path.join(os.path.dirname(__file__), 'cacert.pem') ++ # On Debian systems use ca-certificates ++ return '/etc/ssl/certs/ca-certificates.crt' + + if __name__ == '__main__': + print(where()) +diff --git a/setup.py b/setup.py +index b7ed12b..c483535 100755 +--- a/setup.py ++++ b/setup.py +@@ -50,7 +50,7 @@ setup( + author_email='me@kennethreitz.com', + url='http://python-requests.org', + packages=packages, +- package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']}, ++ package_data={'': ['LICENSE', 'NOTICE'],}, + package_dir={'requests': 'requests'}, + include_package_data=True, + install_requires=requires, diff --git a/debian/patches/02_populate-install_requires.patch b/debian/patches/02_populate-install_requires.patch new file mode 100644 index 0000000..962c790 --- /dev/null +++ b/debian/patches/02_populate-install_requires.patch @@ -0,0 +1,31 @@ +From 12a013173d4175a3dcbe728128a63a399358bf6f Mon Sep 17 00:00:00 2001 +From: Daniele Tricoli <eriol@mornie.org> +Date: Fri, 23 Oct 2015 16:03:52 +0200 +Subject: Populate install_requires for unbundled packages + +This will avoid breakage updating urllib3 via pip when requests/urllib3 +are already installed via the system packages. + +Forwarded: not-needed +Bug-OpenStack: https://review.openstack.org/#/c/213310/0 +Bug-Upstream: https://github.com/kennethreitz/requests/issues/2816 +Patch-Name: 02_populate-install_requires.patch +--- + setup.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index c483535..2648a3a 100755 +--- a/setup.py ++++ b/setup.py +@@ -26,7 +26,9 @@ packages = [ + 'requests.packages.urllib3.packages.ssl_match_hostname', + ] + +-requires = [] ++requires = [ ++ 'urllib3==1.13.1', ++] + + version = '' + with open('requests/__init__.py', 'r') as fd: diff --git a/debian/patches/03_export-IncompleteRead.patch b/debian/patches/03_export-IncompleteRead.patch new file mode 100644 index 0000000..98abf71 --- /dev/null +++ b/debian/patches/03_export-IncompleteRead.patch @@ -0,0 +1,35 @@ +From cddad0f16e1525b6eca41b88a8df50a9e31613f5 Mon Sep 17 00:00:00 2001 +From: Daniele Tricoli <eriol@mornie.org> +Date: Thu, 8 Oct 2015 13:41:43 -0700 +Subject: Export IncompleteRead from requests.compat since it's + + imported by python-pip. +Forwarded: not-needed +Bug-Debian: https://bugs.debian.org/766419 +Last-Update: 2014-10-23 + +Patch-Name: 03_export-IncompleteRead.patch +--- + requests/compat.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/requests/compat.py b/requests/compat.py +index 70edff7..a338846 100644 +--- a/requests/compat.py ++++ b/requests/compat.py +@@ -40,6 +40,7 @@ if is_py2: + from Cookie import Morsel + from StringIO import StringIO + from .packages.urllib3.packages.ordered_dict import OrderedDict ++ from httplib import IncompleteRead + + builtin_str = str + bytes = str +@@ -54,6 +55,7 @@ elif is_py3: + from http.cookies import Morsel + from io import StringIO + from collections import OrderedDict ++ from http.client import IncompleteRead + + builtin_str = str + str = str diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..b57f725 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +01_use-system-ca-certificates.patch +03_export-IncompleteRead.patch +02_populate-install_requires.patch diff --git a/debian/python-requests-whl.install b/debian/python-requests-whl.install new file mode 100644 index 0000000..fd3f06f --- /dev/null +++ b/debian/python-requests-whl.install @@ -0,0 +1 @@ +usr/share/python-wheels diff --git a/debian/python-requests.pyremove b/debian/python-requests.pyremove new file mode 100644 index 0000000..2acf4c3 --- /dev/null +++ b/debian/python-requests.pyremove @@ -0,0 +1,2 @@ +requests/packages/chardet +requests/packages/urllib3 diff --git a/debian/python3-requests.pyremove b/debian/python3-requests.pyremove new file mode 100644 index 0000000..2acf4c3 --- /dev/null +++ b/debian/python3-requests.pyremove @@ -0,0 +1,2 @@ +requests/packages/chardet +requests/packages/urllib3 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e06fbba --- /dev/null +++ b/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=requests + +%: + dh $@ --with python2,python3 --buildsystem=pybuild + +# The test suite currently requires external network access, so we +# can't enable it. Once this issue is fixed, it will be easy to +# re-enable. +# +# https://github.com/kennethreitz/requests/issues/2184 +# +# barry@debian.org 2014-11-19 +#override_dh_auto_test: +# PYBUILD_SYSTEM=custom \ +# PYBUILD_TEST_ARGS="{interpreter} test_requests.py" \ +# http_proxy= https_proxy= \ +# dh_auto_test + +override_dh_auto_test: + +override_dh_installchangelogs: + dh_installchangelogs HISTORY.rst + +override_dh_auto_install: + dh_auto_install + python3 setup.py bdist_wheel \ + --universal \ + -d $(CURDIR)/debian/tmp/usr/share/python-wheels diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9234b78 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +http://pypi.debian.net/requests/requests-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) diff --git a/requests.egg-info/PKG-INFO b/requests.egg-info/PKG-INFO deleted file mode 100644 index d75ebac..0000000 --- a/requests.egg-info/PKG-INFO +++ /dev/null @@ -1,1238 +0,0 @@ -Metadata-Version: 1.1 -Name: requests -Version: 2.9.1 -Summary: Python HTTP for Humans. -Home-page: http://python-requests.org -Author: Kenneth Reitz -Author-email: me@kennethreitz.com -License: Apache 2.0 -Description: Requests: HTTP for Humans - ========================= - - .. image:: https://img.shields.io/pypi/v/requests.svg - :target: https://pypi.python.org/pypi/requests - - .. image:: https://img.shields.io/pypi/dm/requests.svg - :target: https://pypi.python.org/pypi/requests - - - - - Requests is an Apache2 Licensed HTTP library, written in Python, for human - beings. - - Most existing Python modules for sending HTTP requests are extremely - verbose and cumbersome. Python's builtin urllib2 module provides most of - the HTTP capabilities you should need, but the api is thoroughly broken. - It requires an enormous amount of work (even method overrides) to - perform the simplest of tasks. - - Things shouldn't be this way. Not in Python. - - .. code-block:: python - - >>> r = requests.get('https://api.github.com', auth=('user', 'pass')) - >>> r.status_code - 204 - >>> r.headers['content-type'] - 'application/json' - >>> r.text - ... - - See `the same code, without Requests <https://gist.github.com/973705>`_. - - Requests allow you to send HTTP/1.1 requests. You can add headers, form data, - multipart files, and parameters with simple Python dictionaries, and access the - response data in the same way. It's powered by httplib and `urllib3 - <https://github.com/shazow/urllib3>`_, but it does all the hard work and crazy - hacks for you. - - - Features - -------- - - - International Domains and URLs - - Keep-Alive & Connection Pooling - - Sessions with Cookie Persistence - - Browser-style SSL Verification - - Basic/Digest Authentication - - Elegant Key/Value Cookies - - Automatic Decompression - - Unicode Response Bodies - - Multipart File Uploads - - Connection Timeouts - - Thread-safety - - HTTP(S) proxy support - - - Installation - ------------ - - To install Requests, simply: - - .. code-block:: bash - - $ pip install requests - - - Documentation - ------------- - - Documentation is available at http://docs.python-requests.org/. - - - Contribute - ---------- - - #. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a `Contributor Friendly`_ tag for issues that should be ideal for people who are not very familiar with the codebase yet. - #. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it). - #. Write a test which shows that the bug was fixed or that the feature works as expected. - #. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_. - - .. _`the repository`: http://github.com/kennethreitz/requests - .. _AUTHORS: https://github.com/kennethreitz/requests/blob/master/AUTHORS.rst - .. _Contributor Friendly: https://github.com/kennethreitz/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open - - - .. :changelog: - - Release History - --------------- - - 2.9.1 (2015-12-21) - ++++++++++++++++++ - - **Bugfixes** - - - Resolve regression introduced in 2.9.0 that made it impossible to send binary - strings as bodies in Python 3. - - Fixed errors when calculating cookie expiration dates in certain locales. - - **Miscellaneous** - - - Updated bundled urllib3 to 1.13.1. - - 2.9.0 (2015-12-15) - ++++++++++++++++++ - - **Minor Improvements** (Backwards compatible) - - - The ``verify`` keyword argument now supports being passed a path to a - directory of CA certificates, not just a single-file bundle. - - Warnings are now emitted when sending files opened in text mode. - - Added the 511 Network Authentication Required status code to the status code - registry. - - **Bugfixes** - - - For file-like objects that are not seeked to the very beginning, we now - send the content length for the number of bytes we will actually read, rather - than the total size of the file, allowing partial file uploads. - - When uploading file-like objects, if they are empty or have no obvious - content length we set ``Transfer-Encoding: chunked`` rather than - ``Content-Length: 0``. - - We correctly receive the response in buffered mode when uploading chunked - bodies. - - We now handle being passed a query string as a bytestring on Python 3, by - decoding it as UTF-8. - - Sessions are now closed in all cases (exceptional and not) when using the - functional API rather than leaking and waiting for the garbage collector to - clean them up. - - Correctly handle digest auth headers with a malformed ``qop`` directive that - contains no token, by treating it the same as if no ``qop`` directive was - provided at all. - - Minor performance improvements when removing specific cookies by name. - - **Miscellaneous** - - - Updated urllib3 to 1.13. - - 2.8.1 (2015-10-13) - ++++++++++++++++++ - - **Bugfixes** - - - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate - bundle. - - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of - ``ConnectionError`` - - When using the PreparedRequest flow, requests will now correctly respect the - ``json`` parameter. Broken in 2.8.0. - - When using the PreparedRequest flow, requests will now correctly handle a - Unicode-string method name on Python 2. Broken in 2.8.0. - - 2.8.0 (2015-10-05) - ++++++++++++++++++ - - **Minor Improvements** (Backwards Compatible) - - - Requests now supports per-host proxies. This allows the ``proxies`` - dictionary to have entries of the form - ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used - in preference to the previously-supported scheme-specific ones, but the - previous syntax will continue to work. - - ``Response.raise_for_status`` now prints the URL that failed as part of the - exception message. - - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg, - defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause - exceptions to be thrown. - - Change to bundled projects import logic to make it easier to unbundle - requests downstream. - - Changed the default User-Agent string to avoid leaking data on Linux: now - contains only the requests version. - - **Bugfixes** - - - The ``json`` parameter to ``post()`` and friends will now only be used if - neither ``data`` nor ``files`` are present, consistent with the - documentation. - - We now ignore empty fields in the ``NO_PROXY`` environment variable. - - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining - ``stream=True`` with ``contextlib.closing``. - - Prevented bugs where we would attempt to return the same connection back to - the connection pool twice when sending a Chunked body. - - Miscellaneous minor internal changes. - - Digest Auth support is now thread safe. - - **Updates** - - - Updated urllib3 to 1.12. - - 2.7.0 (2015-05-03) - ++++++++++++++++++ - - This is the first release that follows our new release process. For more, see - `our documentation - <http://docs.python-requests.org/en/latest/community/release-process/>`_. - - **Bugfixes** - - - Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer - encoding and response framing. - - 2.6.2 (2015-04-23) - ++++++++++++++++++ - - **Bugfixes** - - - Fix regression where compressed data that was sent as chunked data was not - properly decompressed. (#2561) - - 2.6.1 (2015-04-22) - ++++++++++++++++++ - - **Bugfixes** - - - Remove VendorAlias import machinery introduced in v2.5.2. - - - Simplify the PreparedRequest.prepare API: We no longer require the user to - pass an empty list to the hooks keyword argument. (c.f. #2552) - - - Resolve redirects now receives and forwards all of the original arguments to - the adapter. (#2503) - - - Handle UnicodeDecodeErrors when trying to deal with a unicode URL that - cannot be encoded in ASCII. (#2540) - - - Populate the parsed path of the URI field when performing Digest - Authentication. (#2426) - - - Copy a PreparedRequest's CookieJar more reliably when it is not an instance - of RequestsCookieJar. (#2527) - - 2.6.0 (2015-03-14) - ++++++++++++++++++ - - **Bugfixes** - - - CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie - without a host value set would use the hostname for the redirected URL - exposing requests users to session fixation attacks and potentially cookie - stealing. This was disclosed privately by Matthew Daley of - `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from - v2.1.0 to v2.5.3 (inclusive on both ends). - - - Fix error when requests is an ``install_requires`` dependency and ``python - setup.py test`` is run. (#2462) - - - Fix error when urllib3 is unbundled and requests continues to use the - vendored import location. - - - Include fixes to ``urllib3``'s header handling. - - - Requests' handling of unvendored dependencies is now more restrictive. - - **Features and Improvements** - - - Support bytearrays when passed as parameters in the ``files`` argument. - (#2468) - - - Avoid data duplication when creating a request with ``str``, ``bytes``, or - ``bytearray`` input to the ``files`` argument. - - 2.5.3 (2015-02-24) - ++++++++++++++++++ - - **Bugfixes** - - - Revert changes to our vendored certificate bundle. For more context see - (#2455, #2456, and http://bugs.python.org/issue23476) - - 2.5.2 (2015-02-23) - ++++++++++++++++++ - - **Features and Improvements** - - - Add sha256 fingerprint support. (`shazow/urllib3#540`_) - - - Improve the performance of headers. (`shazow/urllib3#544`_) - - **Bugfixes** - - - Copy pip's import machinery. When downstream redistributors remove - requests.packages.urllib3 the import machinery will continue to let those - same symbols work. Example usage in requests' documentation and 3rd-party - libraries relying on the vendored copies of urllib3 will work without having - to fallback to the system urllib3. - - - Attempt to quote parts of the URL on redirect if unquoting and then quoting - fails. (#2356) - - - Fix filename type check for multipart form-data uploads. (#2411) - - - Properly handle the case where a server issuing digest authentication - challenges provides both auth and auth-int qop-values. (#2408) - - - Fix a socket leak. (`shazow/urllib3#549`_) - - - Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_) - - - Disable the built-in hostname verification. (`shazow/urllib3#526`_) - - - Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_) - - **Security** - - - Pulled in an updated ``cacert.pem``. - - - Drop RC4 from the default cipher list. (`shazow/urllib3#551`_) - - .. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551 - .. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549 - .. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544 - .. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540 - .. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535 - .. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534 - .. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526 - - 2.5.1 (2014-12-23) - ++++++++++++++++++ - - **Behavioural Changes** - - - Only catch HTTPErrors in raise_for_status (#2382) - - **Bugfixes** - - - Handle LocationParseError from urllib3 (#2344) - - Handle file-like object filenames that are not strings (#2379) - - Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389) - - 2.5.0 (2014-12-01) - ++++++++++++++++++ - - **Improvements** - - - Allow usage of urllib3's Retry object with HTTPAdapters (#2216) - - The ``iter_lines`` method on a response now accepts a delimiter with which - to split the content (#2295) - - **Behavioural Changes** - - - Add deprecation warnings to functions in requests.utils that will be removed - in 3.0 (#2309) - - Sessions used by the functional API are always closed (#2326) - - Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323) - - **Bugfixes** - - - Only parse the URL once (#2353) - - Allow Content-Length header to always be overridden (#2332) - - Properly handle files in HTTPDigestAuth (#2333) - - Cap redirect_cache size to prevent memory abuse (#2299) - - Fix HTTPDigestAuth handling of redirects after authenticating successfully - (#2253) - - Fix crash with custom method parameter to Session.request (#2317) - - Fix how Link headers are parsed using the regular expression library (#2271) - - **Documentation** - - - Add more references for interlinking (#2348) - - Update CSS for theme (#2290) - - Update width of buttons and sidebar (#2289) - - Replace references of Gittip with Gratipay (#2282) - - Add link to changelog in sidebar (#2273) - - 2.4.3 (2014-10-06) - ++++++++++++++++++ - - **Bugfixes** - - - Unicode URL improvements for Python 2. - - Re-order JSON param for backwards compat. - - Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/kennethreitz/requests/issues/2249>`_) - - - 2.4.2 (2014-10-05) - ++++++++++++++++++ - - **Improvements** - - - FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/kennethreitz/requests/pull/2258>`_) - - Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/kennethreitz/requests/pull/2238>`_) - - **Bugfixes** - - - Avoid getting stuck in a loop (`#2244 <https://github.com/kennethreitz/requests/pull/2244>`_) - - Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/kennethreitz/requests/issues/2240>`_, `#2241 <https://github.com/kennethreitz/requests/issues/2241>`_) - - **Documentation** - - - Correct redirection introduction (`#2245 <https://github.com/kennethreitz/requests/pull/2245/>`_) - - Added example of how to send multiple files in one request. (`#2227 <https://github.com/kennethreitz/requests/pull/2227/>`_) - - Clarify how to pass a custom set of CAs (`#2248 <https://github.com/kennethreitz/requests/pull/2248/>`_) - - - - 2.4.1 (2014-09-09) - ++++++++++++++++++ - - - Now has a "security" package extras set, ``$ pip install requests[security]`` - - Requests will now use Certifi if it is available. - - Capture and re-raise urllib3 ProtocolError - - Bugfix for responses that attempt to redirect to themselves forever (wtf?). - - - 2.4.0 (2014-08-29) - ++++++++++++++++++ - - **Behavioral Changes** - - - ``Connection: keep-alive`` header is now sent automatically. - - **Improvements** - - - Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts. - - Allow copying of PreparedRequests without headers/cookies. - - Updated bundled urllib3 version. - - Refactored settings loading from environment -- new `Session.merge_environment_settings`. - - Handle socket errors in iter_content. - - - 2.3.0 (2014-05-16) - ++++++++++++++++++ - - **API Changes** - - - New ``Response`` property ``is_redirect``, which is true when the - library could have processed this response as a redirection (whether - or not it actually did). - - The ``timeout`` parameter now affects requests with both ``stream=True`` and - ``stream=False`` equally. - - The change in v2.0.0 to mandate explicit proxy schemes has been reverted. - Proxy schemes now default to ``http://``. - - The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal - dictionary when references as string or viewed in the interpreter. - - **Bugfixes** - - - No longer expose Authorization or Proxy-Authorization headers on redirect. - Fix CVE-2014-1829 and CVE-2014-1830 respectively. - - Authorization is re-evaluated each redirect. - - On redirect, pass url as native strings. - - Fall-back to autodetected encoding for JSON when Unicode detection fails. - - Headers set to ``None`` on the ``Session`` are now correctly not sent. - - Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same - response. - - Stop advertising ``compress`` as a supported Content-Encoding. - - The ``Response.history`` parameter is now always a list. - - Many, many ``urllib3`` bugfixes. - - 2.2.1 (2014-01-23) - ++++++++++++++++++ - - **Bugfixes** - - - Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character. - - Assorted urllib3 fixes. - - 2.2.0 (2014-01-09) - ++++++++++++++++++ - - **API Changes** - - - New exception: ``ContentDecodingError``. Raised instead of ``urllib3`` - ``DecodeError`` exceptions. - - **Bugfixes** - - - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6. - - Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory. - - Use the correct pool size for pools of connections to proxies. - - Fix iteration of ``CookieJar`` objects. - - Ensure that cookies are persisted over redirect. - - Switch back to using chardet, since it has merged with charade. - - 2.1.0 (2013-12-05) - ++++++++++++++++++ - - - Updated CA Bundle, of course. - - Cookies set on individual Requests through a ``Session`` (e.g. via ``Session.get()``) are no longer persisted to the ``Session``. - - Clean up connections when we hit problems during chunked upload, rather than leaking them. - - Return connections to the pool when a chunked upload is successful, rather than leaking it. - - Match the HTTPbis recommendation for HTTP 301 redirects. - - Prevent hanging when using streaming uploads and Digest Auth when a 401 is received. - - Values of headers set by Requests are now always the native string type. - - Fix previously broken SNI support. - - Fix accessing HTTP proxies using proxy authentication. - - Unencode HTTP Basic usernames and passwords extracted from URLs. - - Support for IP address ranges for no_proxy environment variable - - Parse headers correctly when users override the default ``Host:`` header. - - Avoid munging the URL in case of case-sensitive servers. - - Looser URL handling for non-HTTP/HTTPS urls. - - Accept unicode methods in Python 2.6 and 2.7. - - More resilient cookie handling. - - Make ``Response`` objects pickleable. - - Actually added MD5-sess to Digest Auth instead of pretending to like last time. - - Updated internal urllib3. - - Fixed @Lukasa's lack of taste. - - 2.0.1 (2013-10-24) - ++++++++++++++++++ - - - Updated included CA Bundle with new mistrusts and automated process for the future - - Added MD5-sess to Digest Auth - - Accept per-file headers in multipart file POST messages. - - Fixed: Don't send the full URL on CONNECT messages. - - Fixed: Correctly lowercase a redirect scheme. - - Fixed: Cookies not persisted when set via functional API. - - Fixed: Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError. - - Updated internal urllib3 and chardet. - - 2.0.0 (2013-09-24) - ++++++++++++++++++ - - **API Changes:** - - - Keys in the Headers dictionary are now native strings on all Python versions, - i.e. bytestrings on Python 2, unicode on Python 3. - - Proxy URLs now *must* have an explicit scheme. A ``MissingSchema`` exception - will be raised if they don't. - - Timeouts now apply to read time if ``Stream=False``. - - ``RequestException`` is now a subclass of ``IOError``, not ``RuntimeError``. - - Added new method to ``PreparedRequest`` objects: ``PreparedRequest.copy()``. - - Added new method to ``Session`` objects: ``Session.update_request()``. This - method updates a ``Request`` object with the data (e.g. cookies) stored on - the ``Session``. - - Added new method to ``Session`` objects: ``Session.prepare_request()``. This - method updates and prepares a ``Request`` object, and returns the - corresponding ``PreparedRequest`` object. - - Added new method to ``HTTPAdapter`` objects: ``HTTPAdapter.proxy_headers()``. - This should not be called directly, but improves the subclass interface. - - ``httplib.IncompleteRead`` exceptions caused by incorrect chunked encoding - will now raise a Requests ``ChunkedEncodingError`` instead. - - Invalid percent-escape sequences now cause a Requests ``InvalidURL`` - exception to be raised. - - HTTP 208 no longer uses reason phrase ``"im_used"``. Correctly uses - ``"already_reported"``. - - HTTP 226 reason added (``"im_used"``). - - **Bugfixes:** - - - Vastly improved proxy support, including the CONNECT verb. Special thanks to - the many contributors who worked towards this improvement. - - Cookies are now properly managed when 401 authentication responses are - received. - - Chunked encoding fixes. - - Support for mixed case schemes. - - Better handling of streaming downloads. - - Retrieve environment proxies from more locations. - - Minor cookies fixes. - - Improved redirect behaviour. - - Improved streaming behaviour, particularly for compressed data. - - Miscellaneous small Python 3 text encoding bugs. - - ``.netrc`` no longer overrides explicit auth. - - Cookies set by hooks are now correctly persisted on Sessions. - - Fix problem with cookies that specify port numbers in their host field. - - ``BytesIO`` can be used to perform streaming uploads. - - More generous parsing of the ``no_proxy`` environment variable. - - Non-string objects can be passed in data values alongside files. - - 1.2.3 (2013-05-25) - ++++++++++++++++++ - - - Simple packaging fix - - - 1.2.2 (2013-05-23) - ++++++++++++++++++ - - - Simple packaging fix - - - 1.2.1 (2013-05-20) - ++++++++++++++++++ - - - 301 and 302 redirects now change the verb to GET for all verbs, not just - POST, improving browser compatibility. - - Python 3.3.2 compatibility - - Always percent-encode location headers - - Fix connection adapter matching to be most-specific first - - new argument to the default connection adapter for passing a block argument - - prevent a KeyError when there's no link headers - - 1.2.0 (2013-03-31) - ++++++++++++++++++ - - - Fixed cookies on sessions and on requests - - Significantly change how hooks are dispatched - hooks now receive all the - arguments specified by the user when making a request so hooks can make a - secondary request with the same parameters. This is especially necessary for - authentication handler authors - - certifi support was removed - - Fixed bug where using OAuth 1 with body ``signature_type`` sent no data - - Major proxy work thanks to @Lukasa including parsing of proxy authentication - from the proxy url - - Fix DigestAuth handling too many 401s - - Update vendored urllib3 to include SSL bug fixes - - Allow keyword arguments to be passed to ``json.loads()`` via the - ``Response.json()`` method - - Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD`` - requests - - Add ``elapsed`` attribute to ``Response`` objects to time how long a request - took. - - Fix ``RequestsCookieJar`` - - Sessions and Adapters are now picklable, i.e., can be used with the - multiprocessing library - - Update charade to version 1.0.3 - - The change in how hooks are dispatched will likely cause a great deal of - issues. - - 1.1.0 (2013-01-10) - ++++++++++++++++++ - - - CHUNKED REQUESTS - - Support for iterable response bodies - - Assume servers persist redirect params - - Allow explicit content types to be specified for file data - - Make merge_kwargs case-insensitive when looking up keys - - 1.0.3 (2012-12-18) - ++++++++++++++++++ - - - Fix file upload encoding bug - - Fix cookie behavior - - 1.0.2 (2012-12-17) - ++++++++++++++++++ - - - Proxy fix for HTTPAdapter. - - 1.0.1 (2012-12-17) - ++++++++++++++++++ - - - Cert verification exception bug. - - Proxy fix for HTTPAdapter. - - 1.0.0 (2012-12-17) - ++++++++++++++++++ - - - Massive Refactor and Simplification - - Switch to Apache 2.0 license - - Swappable Connection Adapters - - Mountable Connection Adapters - - Mutable ProcessedRequest chain - - /s/prefetch/stream - - Removal of all configuration - - Standard library logging - - Make Response.json() callable, not property. - - Usage of new charade project, which provides python 2 and 3 simultaneous chardet. - - Removal of all hooks except 'response' - - Removal of all authentication helpers (OAuth, Kerberos) - - This is not a backwards compatible change. - - 0.14.2 (2012-10-27) - +++++++++++++++++++ - - - Improved mime-compatible JSON handling - - Proxy fixes - - Path hack fixes - - Case-Insensitive Content-Encoding headers - - Support for CJK parameters in form posts - - - 0.14.1 (2012-10-01) - +++++++++++++++++++ - - - Python 3.3 Compatibility - - Simply default accept-encoding - - Bugfixes - - - 0.14.0 (2012-09-02) - ++++++++++++++++++++ - - - No more iter_content errors if already downloaded. - - 0.13.9 (2012-08-25) - +++++++++++++++++++ - - - Fix for OAuth + POSTs - - Remove exception eating from dispatch_hook - - General bugfixes - - 0.13.8 (2012-08-21) - +++++++++++++++++++ - - - Incredible Link header support :) - - 0.13.7 (2012-08-19) - +++++++++++++++++++ - - - Support for (key, value) lists everywhere. - - Digest Authentication improvements. - - Ensure proxy exclusions work properly. - - Clearer UnicodeError exceptions. - - Automatic casting of URLs to strings (fURL and such) - - Bugfixes. - - 0.13.6 (2012-08-06) - +++++++++++++++++++ - - - Long awaited fix for hanging connections! - - 0.13.5 (2012-07-27) - +++++++++++++++++++ - - - Packaging fix - - 0.13.4 (2012-07-27) - +++++++++++++++++++ - - - GSSAPI/Kerberos authentication! - - App Engine 2.7 Fixes! - - Fix leaking connections (from urllib3 update) - - OAuthlib path hack fix - - OAuthlib URL parameters fix. - - 0.13.3 (2012-07-12) - +++++++++++++++++++ - - - Use simplejson if available. - - Do not hide SSLErrors behind Timeouts. - - Fixed param handling with urls containing fragments. - - Significantly improved information in User Agent. - - client certificates are ignored when verify=False - - 0.13.2 (2012-06-28) - +++++++++++++++++++ - - - Zero dependencies (once again)! - - New: Response.reason - - Sign querystring parameters in OAuth 1.0 - - Client certificates no longer ignored when verify=False - - Add openSUSE certificate support - - 0.13.1 (2012-06-07) - +++++++++++++++++++ - - - Allow passing a file or file-like object as data. - - Allow hooks to return responses that indicate errors. - - Fix Response.text and Response.json for body-less responses. - - 0.13.0 (2012-05-29) - +++++++++++++++++++ - - - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_ - - Allow disabling of cookie persistence. - - New implementation of safe_mode - - cookies.get now supports default argument - - Session cookies not saved when Session.request is called with return_response=False - - Env: no_proxy support. - - RequestsCookieJar improvements. - - Various bug fixes. - - 0.12.1 (2012-05-08) - +++++++++++++++++++ - - - New ``Response.json`` property. - - Ability to add string file uploads. - - Fix out-of-range issue with iter_lines. - - Fix iter_content default size. - - Fix POST redirects containing files. - - 0.12.0 (2012-05-02) - +++++++++++++++++++ - - - EXPERIMENTAL OAUTH SUPPORT! - - Proper CookieJar-backed cookies interface with awesome dict-like interface. - - Speed fix for non-iterated content chunks. - - Move ``pre_request`` to a more usable place. - - New ``pre_send`` hook. - - Lazily encode data, params, files. - - Load system Certificate Bundle if ``certify`` isn't available. - - Cleanups, fixes. - - 0.11.2 (2012-04-22) - +++++++++++++++++++ - - - Attempt to use the OS's certificate bundle if ``certifi`` isn't available. - - Infinite digest auth redirect fix. - - Multi-part file upload improvements. - - Fix decoding of invalid %encodings in URLs. - - If there is no content in a response don't throw an error the second time that content is attempted to be read. - - Upload data on redirects. - - 0.11.1 (2012-03-30) - +++++++++++++++++++ - - * POST redirects now break RFC to do what browsers do: Follow up with a GET. - * New ``strict_mode`` configuration to disable new redirect behavior. - - - 0.11.0 (2012-03-14) - +++++++++++++++++++ - - * Private SSL Certificate support - * Remove select.poll from Gevent monkeypatching - * Remove redundant generator for chunked transfer encoding - * Fix: Response.ok raises Timeout Exception in safe_mode - - 0.10.8 (2012-03-09) - +++++++++++++++++++ - - * Generate chunked ValueError fix - * Proxy configuration by environment variables - * Simplification of iter_lines. - * New `trust_env` configuration for disabling system/environment hints. - * Suppress cookie errors. - - 0.10.7 (2012-03-07) - +++++++++++++++++++ - - * `encode_uri` = False - - 0.10.6 (2012-02-25) - +++++++++++++++++++ - - * Allow '=' in cookies. - - 0.10.5 (2012-02-25) - +++++++++++++++++++ - - * Response body with 0 content-length fix. - * New async.imap. - * Don't fail on netrc. - - - 0.10.4 (2012-02-20) - +++++++++++++++++++ - - * Honor netrc. - - 0.10.3 (2012-02-20) - +++++++++++++++++++ - - * HEAD requests don't follow redirects anymore. - * raise_for_status() doesn't raise for 3xx anymore. - * Make Session objects picklable. - * ValueError for invalid schema URLs. - - 0.10.2 (2012-01-15) - +++++++++++++++++++ - - * Vastly improved URL quoting. - * Additional allowed cookie key values. - * Attempted fix for "Too many open files" Error - * Replace unicode errors on first pass, no need for second pass. - * Append '/' to bare-domain urls before query insertion. - * Exceptions now inherit from RuntimeError. - * Binary uploads + auth fix. - * Bugfixes. - - - 0.10.1 (2012-01-23) - +++++++++++++++++++ - - * PYTHON 3 SUPPORT! - * Dropped 2.5 Support. (*Backwards Incompatible*) - - 0.10.0 (2012-01-21) - +++++++++++++++++++ - - * ``Response.content`` is now bytes-only. (*Backwards Incompatible*) - * New ``Response.text`` is unicode-only. - * If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding. - * Default to ISO-8859-1 (Western) encoding for "text" subtypes. - * Removal of `decode_unicode`. (*Backwards Incompatible*) - * New multiple-hooks system. - * New ``Response.register_hook`` for registering hooks within the pipeline. - * ``Response.url`` is now Unicode. - - 0.9.3 (2012-01-18) - ++++++++++++++++++ - - * SSL verify=False bugfix (apparent on windows machines). - - 0.9.2 (2012-01-18) - ++++++++++++++++++ - - * Asynchronous async.send method. - * Support for proper chunk streams with boundaries. - * session argument for Session classes. - * Print entire hook tracebacks, not just exception instance. - * Fix response.iter_lines from pending next line. - * Fix but in HTTP-digest auth w/ URI having query strings. - * Fix in Event Hooks section. - * Urllib3 update. - - - 0.9.1 (2012-01-06) - ++++++++++++++++++ - - * danger_mode for automatic Response.raise_for_status() - * Response.iter_lines refactor - - 0.9.0 (2011-12-28) - ++++++++++++++++++ - - * verify ssl is default. - - - 0.8.9 (2011-12-28) - ++++++++++++++++++ - - * Packaging fix. - - - 0.8.8 (2011-12-28) - ++++++++++++++++++ - - * SSL CERT VERIFICATION! - * Release of Cerifi: Mozilla's cert list. - * New 'verify' argument for SSL requests. - * Urllib3 update. - - 0.8.7 (2011-12-24) - ++++++++++++++++++ - - * iter_lines last-line truncation fix - * Force safe_mode for async requests - * Handle safe_mode exceptions more consistently - * Fix iteration on null responses in safe_mode - - 0.8.6 (2011-12-18) - ++++++++++++++++++ - - * Socket timeout fixes. - * Proxy Authorization support. - - 0.8.5 (2011-12-14) - ++++++++++++++++++ - - * Response.iter_lines! - - 0.8.4 (2011-12-11) - ++++++++++++++++++ - - * Prefetch bugfix. - * Added license to installed version. - - 0.8.3 (2011-11-27) - ++++++++++++++++++ - - * Converted auth system to use simpler callable objects. - * New session parameter to API methods. - * Display full URL while logging. - - 0.8.2 (2011-11-19) - ++++++++++++++++++ - - * New Unicode decoding system, based on over-ridable `Response.encoding`. - * Proper URL slash-quote handling. - * Cookies with ``[``, ``]``, and ``_`` allowed. - - 0.8.1 (2011-11-15) - ++++++++++++++++++ - - * URL Request path fix - * Proxy fix. - * Timeouts fix. - - 0.8.0 (2011-11-13) - ++++++++++++++++++ - - * Keep-alive support! - * Complete removal of Urllib2 - * Complete removal of Poster - * Complete removal of CookieJars - * New ConnectionError raising - * Safe_mode for error catching - * prefetch parameter for request methods - * OPTION method - * Async pool size throttling - * File uploads send real names - * Vendored in urllib3 - - 0.7.6 (2011-11-07) - ++++++++++++++++++ - - * Digest authentication bugfix (attach query data to path) - - 0.7.5 (2011-11-04) - ++++++++++++++++++ - - * Response.content = None if there was an invalid response. - * Redirection auth handling. - - 0.7.4 (2011-10-26) - ++++++++++++++++++ - - * Session Hooks fix. - - 0.7.3 (2011-10-23) - ++++++++++++++++++ - - * Digest Auth fix. - - - 0.7.2 (2011-10-23) - ++++++++++++++++++ - - * PATCH Fix. - - - 0.7.1 (2011-10-23) - ++++++++++++++++++ - - * Move away from urllib2 authentication handling. - * Fully Remove AuthManager, AuthObject, &c. - * New tuple-based auth system with handler callbacks. - - - 0.7.0 (2011-10-22) - ++++++++++++++++++ - - * Sessions are now the primary interface. - * Deprecated InvalidMethodException. - * PATCH fix. - * New config system (no more global settings). - - - 0.6.6 (2011-10-19) - ++++++++++++++++++ - - * Session parameter bugfix (params merging). - - - 0.6.5 (2011-10-18) - ++++++++++++++++++ - - * Offline (fast) test suite. - * Session dictionary argument merging. - - - 0.6.4 (2011-10-13) - ++++++++++++++++++ - - * Automatic decoding of unicode, based on HTTP Headers. - * New ``decode_unicode`` setting. - * Removal of ``r.read/close`` methods. - * New ``r.faw`` interface for advanced response usage.* - * Automatic expansion of parameterized headers. - - - 0.6.3 (2011-10-13) - ++++++++++++++++++ - - * Beautiful ``requests.async`` module, for making async requests w/ gevent. - - - 0.6.2 (2011-10-09) - ++++++++++++++++++ - - * GET/HEAD obeys allow_redirects=False. - - - 0.6.1 (2011-08-20) - ++++++++++++++++++ - - * Enhanced status codes experience ``\o/`` - * Set a maximum number of redirects (``settings.max_redirects``) - * Full Unicode URL support - * Support for protocol-less redirects. - * Allow for arbitrary request types. - * Bugfixes - - - 0.6.0 (2011-08-17) - ++++++++++++++++++ - - * New callback hook system - * New persistent sessions object and context manager - * Transparent Dict-cookie handling - * Status code reference object - * Removed Response.cached - * Added Response.request - * All args are kwargs - * Relative redirect support - * HTTPError handling improvements - * Improved https testing - * Bugfixes - - - 0.5.1 (2011-07-23) - ++++++++++++++++++ - - * International Domain Name Support! - * Access headers without fetching entire body (``read()``) - * Use lists as dicts for parameters - * Add Forced Basic Authentication - * Forced Basic is default authentication type - * ``python-requests.org`` default User-Agent header - * CaseInsensitiveDict lower-case caching - * Response.history bugfix - - - 0.5.0 (2011-06-21) - ++++++++++++++++++ - - * PATCH Support - * Support for Proxies - * HTTPBin Test Suite - * Redirect Fixes - * settings.verbose stream writing - * Querystrings for all methods - * URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised - ``r.requests.get('hwe://blah'); r.raise_for_status()`` - - - 0.4.1 (2011-05-22) - ++++++++++++++++++ - - * Improved Redirection Handling - * New 'allow_redirects' param for following non-GET/HEAD Redirects - * Settings module refactoring - - - 0.4.0 (2011-05-15) - ++++++++++++++++++ - - * Response.history: list of redirected responses - * Case-Insensitive Header Dictionaries! - * Unicode URLs - - - 0.3.4 (2011-05-14) - ++++++++++++++++++ - - * Urllib2 HTTPAuthentication Recursion fix (Basic/Digest) - * Internal Refactor - * Bytes data upload Bugfix - - - - 0.3.3 (2011-05-12) - ++++++++++++++++++ - - * Request timeouts - * Unicode url-encoded data - * Settings context manager and module - - - 0.3.2 (2011-04-15) - ++++++++++++++++++ - - * Automatic Decompression of GZip Encoded Content - * AutoAuth Support for Tupled HTTP Auth - - - 0.3.1 (2011-04-01) - ++++++++++++++++++ - - * Cookie Changes - * Response.read() - * Poster fix - - - 0.3.0 (2011-02-25) - ++++++++++++++++++ - - * Automatic Authentication API Change - * Smarter Query URL Parameterization - * Allow file uploads and POST data together - * New Authentication Manager System - - Simpler Basic HTTP System - - Supports all build-in urllib2 Auths - - Allows for custom Auth Handlers - - - 0.2.4 (2011-02-19) - ++++++++++++++++++ - - * Python 2.5 Support - * PyPy-c v1.4 Support - * Auto-Authentication tests - * Improved Request object constructor - - 0.2.3 (2011-02-15) - ++++++++++++++++++ - - * New HTTPHandling Methods - - Response.__nonzero__ (false if bad HTTP Status) - - Response.ok (True if expected HTTP Status) - - Response.error (Logged HTTPError if bad HTTP Status) - - Response.raise_for_status() (Raises stored HTTPError) - - - 0.2.2 (2011-02-14) - ++++++++++++++++++ - - * Still handles request in the event of an HTTPError. (Issue #2) - * Eventlet and Gevent Monkeypatch support. - * Cookie Support (Issue #1) - - - 0.2.1 (2011-02-14) - ++++++++++++++++++ - - * Added file attribute to POST and PUT requests for multipart-encode file uploads. - * Added Request.url attribute for context and redirects - - - 0.2.0 (2011-02-14) - ++++++++++++++++++ - - * Birth! - - - 0.0.1 (2011-02-13) - ++++++++++++++++++ - - * Frustration - * Conception - - -Platform: UNKNOWN -Classifier: Development Status :: 5 - Production/Stable -Classifier: Intended Audience :: Developers -Classifier: Natural Language :: English -Classifier: License :: OSI Approved :: Apache Software License -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2.7 -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 -Classifier: Programming Language :: Python :: 3.5 diff --git a/requests.egg-info/SOURCES.txt b/requests.egg-info/SOURCES.txt deleted file mode 100644 index f769d3b..0000000 --- a/requests.egg-info/SOURCES.txt +++ /dev/null @@ -1,96 +0,0 @@ -HISTORY.rst -LICENSE -MANIFEST.in -NOTICE -README.rst -requirements.txt -setup.cfg -setup.py -test_requests.py -requests/__init__.py -requests/adapters.py -requests/api.py -requests/auth.py -requests/cacert.pem -requests/certs.py -requests/compat.py -requests/cookies.py -requests/exceptions.py -requests/hooks.py -requests/models.py -requests/sessions.py -requests/status_codes.py -requests/structures.py -requests/utils.py -requests.egg-info/PKG-INFO -requests.egg-info/SOURCES.txt -requests.egg-info/dependency_links.txt -requests.egg-info/not-zip-safe -requests.egg-info/requires.txt -requests.egg-info/top_level.txt -requests/packages/__init__.py -requests/packages/chardet/__init__.py -requests/packages/chardet/big5freq.py -requests/packages/chardet/big5prober.py -requests/packages/chardet/chardetect.py -requests/packages/chardet/chardistribution.py -requests/packages/chardet/charsetgroupprober.py -requests/packages/chardet/charsetprober.py -requests/packages/chardet/codingstatemachine.py -requests/packages/chardet/compat.py -requests/packages/chardet/constants.py -requests/packages/chardet/cp949prober.py -requests/packages/chardet/escprober.py -requests/packages/chardet/escsm.py -requests/packages/chardet/eucjpprober.py -requests/packages/chardet/euckrfreq.py -requests/packages/chardet/euckrprober.py -requests/packages/chardet/euctwfreq.py -requests/packages/chardet/euctwprober.py -requests/packages/chardet/gb2312freq.py -requests/packages/chardet/gb2312prober.py -requests/packages/chardet/hebrewprober.py -requests/packages/chardet/jisfreq.py -requests/packages/chardet/jpcntx.py -requests/packages/chardet/langbulgarianmodel.py -requests/packages/chardet/langcyrillicmodel.py -requests/packages/chardet/langgreekmodel.py -requests/packages/chardet/langhebrewmodel.py -requests/packages/chardet/langhungarianmodel.py -requests/packages/chardet/langthaimodel.py -requests/packages/chardet/latin1prober.py -requests/packages/chardet/mbcharsetprober.py -requests/packages/chardet/mbcsgroupprober.py -requests/packages/chardet/mbcssm.py -requests/packages/chardet/sbcharsetprober.py -requests/packages/chardet/sbcsgroupprober.py -requests/packages/chardet/sjisprober.py -requests/packages/chardet/universaldetector.py -requests/packages/chardet/utf8prober.py -requests/packages/urllib3/__init__.py -requests/packages/urllib3/_collections.py -requests/packages/urllib3/connection.py -requests/packages/urllib3/connectionpool.py -requests/packages/urllib3/exceptions.py -requests/packages/urllib3/fields.py -requests/packages/urllib3/filepost.py -requests/packages/urllib3/poolmanager.py -requests/packages/urllib3/request.py -requests/packages/urllib3/response.py -requests/packages/urllib3/contrib/__init__.py -requests/packages/urllib3/contrib/appengine.py -requests/packages/urllib3/contrib/ntlmpool.py -requests/packages/urllib3/contrib/pyopenssl.py -requests/packages/urllib3/packages/__init__.py -requests/packages/urllib3/packages/ordered_dict.py -requests/packages/urllib3/packages/six.py -requests/packages/urllib3/packages/ssl_match_hostname/__init__.py -requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py -requests/packages/urllib3/util/__init__.py -requests/packages/urllib3/util/connection.py -requests/packages/urllib3/util/request.py -requests/packages/urllib3/util/response.py -requests/packages/urllib3/util/retry.py -requests/packages/urllib3/util/ssl_.py -requests/packages/urllib3/util/timeout.py -requests/packages/urllib3/util/url.py
\ No newline at end of file diff --git a/requests.egg-info/dependency_links.txt b/requests.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/requests.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/requests.egg-info/not-zip-safe b/requests.egg-info/not-zip-safe deleted file mode 100644 index 8b13789..0000000 --- a/requests.egg-info/not-zip-safe +++ /dev/null @@ -1 +0,0 @@ - diff --git a/requests.egg-info/requires.txt b/requests.egg-info/requires.txt deleted file mode 100644 index 34ddab5..0000000 --- a/requests.egg-info/requires.txt +++ /dev/null @@ -1,5 +0,0 @@ - -[security] -pyOpenSSL>=0.13 -ndg-httpsclient -pyasn1 diff --git a/requests.egg-info/top_level.txt b/requests.egg-info/top_level.txt deleted file mode 100644 index f229360..0000000 --- a/requests.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -requests |