Accepting request 206124 from devel:languages:python
- update to 2.0.1 - changes in 2.0.1: - 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. - changes in 2.0.0: - 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. (forwarded request 206076 from Nijel) OBS-URL: https://build.opensuse.org/request/show/206124 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=16
This commit is contained in:
commit
05ff0ea5b7
@ -1,8 +1,6 @@
|
|||||||
Index: requests-1.2.3/requests/adapters.py
|
--- a/requests/adapters.py
|
||||||
===================================================================
|
+++ b/requests/adapters.py
|
||||||
--- requests-1.2.3.orig/requests/adapters.py
|
@@ -132,9 +132,6 @@
|
||||||
+++ requests-1.2.3/requests/adapters.py
|
|
||||||
@@ -129,9 +129,6 @@ class HTTPAdapter(BaseAdapter):
|
|
||||||
if not cert_loc:
|
if not cert_loc:
|
||||||
cert_loc = DEFAULT_CA_BUNDLE_PATH
|
cert_loc = DEFAULT_CA_BUNDLE_PATH
|
||||||
|
|
||||||
@ -12,11 +10,9 @@ Index: requests-1.2.3/requests/adapters.py
|
|||||||
conn.cert_reqs = 'CERT_REQUIRED'
|
conn.cert_reqs = 'CERT_REQUIRED'
|
||||||
conn.ca_certs = cert_loc
|
conn.ca_certs = cert_loc
|
||||||
else:
|
else:
|
||||||
Index: requests-1.2.3/requests/certs.py
|
--- a/requests/certs.py
|
||||||
===================================================================
|
+++ b/requests/certs.py
|
||||||
--- requests-1.2.3.orig/requests/certs.py
|
@@ -18,7 +18,7 @@
|
||||||
+++ requests-1.2.3/requests/certs.py
|
|
||||||
@@ -18,7 +18,7 @@ import os.path
|
|
||||||
def where():
|
def where():
|
||||||
"""Return the preferred certificate bundle."""
|
"""Return the preferred certificate bundle."""
|
||||||
# vendored bundle inside Requests
|
# vendored bundle inside Requests
|
||||||
@ -25,18 +21,14 @@ Index: requests-1.2.3/requests/certs.py
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print(where())
|
print(where())
|
||||||
Index: requests-1.2.3/MANIFEST.in
|
--- a/MANIFEST.in
|
||||||
===================================================================
|
+++ b/MANIFEST.in
|
||||||
--- requests-1.2.3.orig/MANIFEST.in
|
|
||||||
+++ requests-1.2.3/MANIFEST.in
|
|
||||||
@@ -1 +1 @@
|
@@ -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 requests/cacert.pem
|
||||||
+include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt
|
+include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt
|
||||||
Index: requests-1.2.3/requests.egg-info/SOURCES.txt
|
--- a/requests.egg-info/SOURCES.txt
|
||||||
===================================================================
|
+++ b/requests.egg-info/SOURCES.txt
|
||||||
--- requests-1.2.3.orig/requests.egg-info/SOURCES.txt
|
@@ -10,7 +10,6 @@
|
||||||
+++ requests-1.2.3/requests.egg-info/SOURCES.txt
|
|
||||||
@@ -10,7 +10,6 @@ requests/__init__.py
|
|
||||||
requests/adapters.py
|
requests/adapters.py
|
||||||
requests/api.py
|
requests/api.py
|
||||||
requests/auth.py
|
requests/auth.py
|
||||||
@ -44,7 +36,7 @@ Index: requests-1.2.3/requests.egg-info/SOURCES.txt
|
|||||||
requests/certs.py
|
requests/certs.py
|
||||||
requests/compat.py
|
requests/compat.py
|
||||||
requests/cookies.py
|
requests/cookies.py
|
||||||
@@ -79,4 +78,4 @@ requests/packages/urllib3/contrib/pyopen
|
@@ -82,4 +81,4 @@
|
||||||
requests/packages/urllib3/packages/__init__.py
|
requests/packages/urllib3/packages/__init__.py
|
||||||
requests/packages/urllib3/packages/ordered_dict.py
|
requests/packages/urllib3/packages/ordered_dict.py
|
||||||
requests/packages/urllib3/packages/six.py
|
requests/packages/urllib3/packages/six.py
|
||||||
|
@ -1,3 +1,48 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 7 10:07:58 UTC 2013 - mcihar@suse.cz
|
||||||
|
|
||||||
|
- update to 2.0.1
|
||||||
|
- changes in 2.0.1:
|
||||||
|
- 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.
|
||||||
|
- changes in 2.0.0:
|
||||||
|
- 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"``).
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 24 11:13:26 UTC 2013 - speilicke@suse.com
|
Thu Oct 24 11:13:26 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-requests
|
Name: python-requests
|
||||||
Version: 1.2.3
|
Version: 2.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://python-requests.org
|
Url: http://python-requests.org
|
||||||
Summary: Awesome Python HTTP Library That's Actually Usable
|
Summary: Awesome Python HTTP Library That's Actually Usable
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1
|
|
||||||
size 348854
|
|
3
requests-2.0.1.tar.gz
Normal file
3
requests-2.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8cfddb97667c2a9edaf28b506d2479f1b8dc0631cbdcd0ea8c8864def59c698b
|
||||||
|
size 412648
|
Loading…
Reference in New Issue
Block a user