From 09ef7cfd9027a053126aa9ceb97378a2cc9369110761cb57a42012dc52b10b0b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 16 Mar 2012 12:23:31 +0000 Subject: [PATCH 01/30] Accepting request 108727 from devel:languages:python Useful Python lib OBS-URL: https://build.opensuse.org/request/show/108727 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=1 --- no-default-cacert.patch | 48 --- python-requests.changes | 671 ------------------------------ python-requests.spec | 95 ++--- requests-0.10.8.tar.gz | 3 + requests-2.10.0.tar.gz | 3 - urllib3-ssl-default-context.patch | 13 - 6 files changed, 36 insertions(+), 797 deletions(-) delete mode 100644 no-default-cacert.patch create mode 100644 requests-0.10.8.tar.gz delete mode 100644 requests-2.10.0.tar.gz delete mode 100644 urllib3-ssl-default-context.patch diff --git a/no-default-cacert.patch b/no-default-cacert.patch deleted file mode 100644 index 9991f33..0000000 --- a/no-default-cacert.patch +++ /dev/null @@ -1,48 +0,0 @@ -Index: requests-2.9.1/MANIFEST.in -=================================================================== ---- requests-2.9.1.orig/MANIFEST.in -+++ requests-2.9.1/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 -Index: requests-2.9.1/requests/adapters.py -=================================================================== ---- requests-2.9.1.orig/requests/adapters.py -+++ requests-2.9.1/requests/adapters.py -@@ -179,15 +179,13 @@ class HTTPAdapter(BaseAdapter): - if verify is not True: - cert_loc = verify - -- if not cert_loc: -- cert_loc = DEFAULT_CA_BUNDLE_PATH -- -- if not cert_loc: -- raise Exception("Could not find a suitable SSL CA certificate bundle.") -- - conn.cert_reqs = 'CERT_REQUIRED' - -- if not os.path.isdir(cert_loc): -+ if cert_loc is None: -+ # use default context -+ conn.ca_certs = None -+ conn.ca_cert_dir = None -+ elif not os.path.isdir(cert_loc): - conn.ca_certs = cert_loc - else: - conn.ca_cert_dir = cert_loc -Index: requests-2.9.1/requests/certs.py -=================================================================== ---- requests-2.9.1.orig/requests/certs.py -+++ requests-2.9.1/requests/certs.py -@@ -18,8 +18,9 @@ try: - except ImportError: - def where(): - """Return the preferred certificate bundle.""" -- # vendored bundle inside Requests -- return os.path.join(os.path.dirname(__file__), 'cacert.pem') -+ # in openSUSE we rely on ca-certificates instead of -+ # having an another bundle -+ return '/etc/ssl/ca-bundle.pem' - - if __name__ == '__main__': - print(where()) diff --git a/python-requests.changes b/python-requests.changes index 1dbc82a..068b04e 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,674 +1,3 @@ -------------------------------------------------------------------- -Wed May 18 08:04:41 UTC 2016 - dmueller@suse.com - -- update to 2.10.1: - * SOCKS Proxy Support! (requires PySocks; $ pip install requests[socks]) - * Updated bundled urllib3 to 1.15.1. - * Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict - as its underlying datastore. - * Don't use redirect_cache if allow_redirects=False - * When passed objects that throw exceptions from ``tell()``, send them via - chunked transfer encoding instead of failing. - * Raise a ProxyError for proxy related connection issues. - -------------------------------------------------------------------- -Tue Mar 1 17:44:11 UTC 2016 - jmatejek@suse.com - -- update no-default-cacert.patch to simply pass empty CA path -- urllib3-ssl-default-context.patch: patch bundled urllib3 to behave - correctly with regard to empty CA path passed -- change urllib3 fallback requirements to Recommends -- use ca-certificates in SLE as well -- recommend ca-certificates-mozilla to have a basic certificate set - -------------------------------------------------------------------- -Wed Feb 17 14:47:12 UTC 2016 - sor.alexei@meowr.ru - -- Update to 2.9.1 (changes since 2.8.1): - * 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. - * 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. - * Fix errors when calculating cookie expiration dates in certain - locales. - * Update bundled urllib3 to 1.13.1. -- Rebase no-default-cacert.patch. -- Modify no-default-cacert.patch: output /etc/ssl/ca-bundle.pem - instead of neither NULL nor /etc/ssl/certs/ as a path to cacerts - bundle (boo#967128). -- Don't apply no-default-cacert.patch on SLE. -- Require ca-certificates package (but not on SLE). -- Tests are being improperly started and actual ones require - network connection, so fix and comment out. - -------------------------------------------------------------------- -Thu Dec 17 13:45:59 UTC 2015 - rjschwei@suse.com - -- Modify no-default-cacert - + The call to set_default_verify_paths() is not necessary. The openSUSE - and SLES Python has been patched to always use the system certs. - Additionally this call breaks the use of python-requests on older systems, - openSUSE_13.2 and original release of SLES 12 which fall back to - the built in implementation of ssl which doe not implement - this method - -------------------------------------------------------------------- -Wed Oct 21 21:08:29 UTC 2015 - dmueller@suse.com - -- update to 2.8.1: - - 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. - -------------------------------------------------------------------- -Wed Oct 21 20:49:30 UTC 2015 - dmueller@suse.com - -- remove requests-do-not-use-bundle.patch (bsc#947357) - -------------------------------------------------------------------- -Wed Oct 21 08:00:52 UTC 2015 - dmueller@suse.com - -- fix requires - -------------------------------------------------------------------- -Wed Oct 14 19:24:43 UTC 2015 - sor.alexei@meowr.ru - -- Add python3-chardet to build requirements for tests. -- Remove no-default-cacert-sles.patch as no-default-cacert.patch - does basically the same. - -------------------------------------------------------------------- -Fri Oct 9 19:11:09 UTC 2015 - sor.alexei@meowr.ru - -- Update to 2.8.0: - * Requests now supports per-host proxies. This allows the proxies - dictionary to have entries of the form {'://': - ''}. 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. - * Change the default User-Agent string to avoid leaking data on - Linux: now contains only the requests version. - * 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 enviroment variable. - * Fix problem where httplib.BadStatusLine would get raised if - combining stream=True with contextlib.closing. - * Prevent 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. -- Apply no-default-cacert-sles.patch on SLE 12. -- Apply Arun Persaud's changes to requests-do-not-use-bundle.patch - (update to 2.8.0). -- Enable tests. -- Small spec cleanup. - -------------------------------------------------------------------- -Tue Oct 6 17:48:20 UTC 2015 - aloisio@gmx.com - -- Fixed requests-do-not-use-bundle.patch - -------------------------------------------------------------------- -Mon Oct 5 17:18:43 UTC 2015 - p.drouand@gmail.com - -- Unbundle python-chardet and python-urllib3 (boo#947357) - requests-do-not-use-bundle.patch - -------------------------------------------------------------------- -Mon Sep 14 07:48:30 UTC 2015 - tbechtold@suse.com - -- Disable testsuite. Tests were never executed (bsc#945455) but - enabling the testsuite doesn't work because the suite needs - network access. - -------------------------------------------------------------------- -Fri Jul 24 14:45:44 UTC 2015 - seife+obs@b1-systems.com - -- fix version condition to allow RHEL/CentOS 7 builds - -------------------------------------------------------------------- -Fri Jul 24 08:52:50 UTC 2015 - hvogel@suse.com - -- Update to 2.7.0 - - resolving several bugs involving chunked transfer - encoding and response framing. - - Remove VendorAlias import - - Simplify the PreparedRequest.prepare API - - Handle UnicodeDecodeErrors - - Copy a PreparedRequest's CookieJar more reliably - -------------------------------------------------------------------- -Tue Jun 30 08:39:24 UTC 2015 - lnussel@suse.de - -- update no-default-cacert.patch to not hardcode a ca cert location - -------------------------------------------------------------------- -Mon Apr 20 12:25:21 UTC 2015 - mcihar@suse.cz - -- Update to 2.6.0 (bsc#922448, 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 `_. - An CVE identifier has not yet been assigned for this. 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. - - 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. - - Revert changes to our vendored certificate bundle. For more context see - (#2455, #2456, and http://bugs.python.org/issue23476) - -------------------------------------------------------------------- -Tue Feb 24 13:04:17 UTC 2015 - tbechtold@suse.com - -- update to 2.5.2 (bsc#929736): - * Update HISTORY and version for v2.5.2 - * Update urllib3 to 29aa09bde9c42cc9a8d79aac47ee3d362b438cca - * document combination of repeated response headers - * Update README to use Shields badges - * Upgrade urllib3 to 490d3a227fadb626cd54a240b9d0922f849914b4 - * Update certificate bundle. - * Update to use readthedocs.org instead of rtfd.org - * add a timeout value to connection_error_invalid_port test to accelerate - failure - * split test_connection_error into two distinct tests, and changed - "unknown url" test URL since fooobarbangbazbing.httpbin.org currently gives - a valid response. - * quickstart: using a list as a value in query params - * HISTORY: replace n-dash to workaround pip bug - * Check that a filename is a basestring instance - * Move noncebit to the only place it is used - * Remove entirely unnecessary and unused bits from requests.compat - * Attempt to quote anyway if unquoting fails - * Update urllib3 to a27758625e4169330fcf965652b1093faf5aaaa2 - * drawn towards it rather than pushed away - * certifi - * simpler button - * cleanups - * Requests Pro - * javascripts - * Changing year in all copyright information - * Enhance documentation for clarity. - * Clean up cookie docs and display them. - * Bump version to 2.5.1 - * Add release notes for 2.5.1 - * Fix bug in renegotiating a nonce with the server - * Fix error handling on Python 3 - * catch exception more specifically in Response.ok - * Uncommented test in test_requests.py - * Fix a typo in a comment - * Give proper attribution to pip - * utils.guess_filename fails if the given parameter looks like a file object - but has a non-string name attribute - * Copy pip's import machinery wholesale - * Updated the broken link to twitter streaming API documentation - * Enable GitHub syntax highlighting on README - * Bump version to 2.5.0 - * Add updates for 2.5.0 - * Update tests to work offline - * updatee chardet, urllib3 - * url was already parsed, don't urlparse twice - * Properly serialize RecentlyUsedContainers for cache - * Changed ConnectionError to InvalidURL - * Docs: Add more section labels for referencing - * Partially addresses Issue #1572 - * Update HTTPAdapter docstring - * Add last few changes and add a quick test - * Update urllib3 to df4ec5cce1 - * Update how we handle retries to be consistent with documentation - * Fix HTTPDigestAuth not to treat non-file as a file - * Fixed. - * Added test for overriding Content-Length. - * Close sessions created in the functional API - * Pass strict to urllib3. - * Use to_native_string instead of builtin_str - * Update documentation about max_retries to reflect code - * Cap the redirect_cache size to prevent memory abuse - * Add DeprecationWarnings to inform users of plans - * Note about read timeout errors and max_retries - * fix failing test "test_prepare_unicode_url" \(take 3\) - * Revert "fix failing test "test_prepare_unicode_url"" - * fix failing test "test_prepare_unicode_url" - * Revert "fix failing test "test_prepare_unicode_url"" - * update AUTHORS - * fix failing test "test_prepare_unicode_url" - * Changing parameter name `newline` ==> `delimiter`. - * Clean up handle_redirect. - * Adding a custom line delimiter to iter_lines() - * Fix #2279. Update layout css - * Fix #2288. Change urllib3 and chardet workflow - * Update sidebarintro.html - * Made more better - * Add Release History to the sidebar - * Fixed #2250 - * Update utils.py - * Clean up, support all redirects, fix potential endless 401 loop. - * v2.4.3 - * Re-order params for backwards compat - * allow unicode URLs on Python 2 - * requests v2.4.2 - * fix documentation for utils.get_unicode_from_response() :) - * v2.4.2 changelog - * Remove timeout from __attrs__ - * Fix a couple of issues I noticed - * Support bytestring URLs on Python 3.x - * A fix for #1979 repeat HTTP digest authentication after redirect. - * remove unused import - * fix #2247 - * docs: Clarify how to pass a custom set of CAs - * Correct redirection introduction - * Avoid getting stuck in a loop - * make StreamConsumedError doubly inherit - * using the `StreamConsumedError` - * add-in StreamConsumedError - * rm `else` after `if` then `raise` block - * raise RuntimeError when a single streamed request calls *iter methods - than once - * Remove invoke from requirements.txt, docs - * Fixup the remaining references to timeline.json. - * Moved multiple files upload example to advanced section. - * Added example of how to send multiple files in one request. - * Document skipping in PreparedRequest; followup to #2222 - * Add more tests to `test_invalid_url` - * lawl - * mils - * Fixes typo in test - * Changes check on base and json. Fails on tests. - * Adds review changes - * Adds json parameter for POST requests - -------------------------------------------------------------------- -Mon Dec 1 12:05:19 UTC 2014 - dmueller@suse.com - -- fix license (Apache-2.0 only) - -------------------------------------------------------------------- -Thu Sep 11 12:34:42 UTC 2014 - toddrme2178@gmail.com - -- Update to 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?). -- Update to 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. - -------------------------------------------------------------------- -Sat Jun 14 10:56:52 UTC 2014 - tchvatal@suse.com - -- Update tarball to the one upstream is publishing. - -------------------------------------------------------------------- -Thu Jun 5 19:40:21 UTC 2014 - rschweikert@suse.com - -- Update to version 2.3.0 - + 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 viewd in the interpreter. - + 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.- Fixes incorrect parsing of proxy - credentials that contain a literal or encoded '#' character. - + Assorted urllib3 fixes. - + New exception: ``ContentDecodingError``. Raised instead of ``urllib3`` - ``DecodeError`` exceptions. - + 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. - + 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. - -------------------------------------------------------------------- -Mon Dec 9 15:27:58 UTC 2013 - vuntz@suse.com - -- Add no-default-cacert-sles.patch: use this patch when building - for SLES, since python in SLES and openSUSE behave differently - when it comes to SSL, and no-default-cacert.patch is wrong for - SLES. - -------------------------------------------------------------------- -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 - -- Require python-setuptools instead of distribute (upstreams merged) - -------------------------------------------------------------------- -Thu Jul 25 11:40:02 UTC 2013 - vuntz@suse.com - -- Add no-default-cacert.patch: completely ignore the internal CA - bundle and point to /etc/ssl/certs/. This works because we - patched python to do the right thing when a directory is used - there instead of a file. -- Manually remove requests/cacert.pem (better than doing that in - the patch, since it's big) too. - -------------------------------------------------------------------- -Mon May 27 10:36:36 UTC 2013 - dmueller@suse.com - -- update to 1.2.3: - * 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 - -------------------------------------------------------------------- -Mon May 13 08:57:09 UTC 2013 - dmueller@suse.com - -- update to 1.2.0: - * 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 - mutiprocessing library - Update charade to version 1.0.3 - -------------------------------------------------------------------- -Fri Jan 18 08:31:22 UTC 2013 - saschpe@suse.de - -- Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to - https://github.com/kennethreitz/requests/issues/1111, the base - license is Apache-2.0 but requests ships two libraries (bnc#799119): - + charade: LGPL-2.1+ - + urllib3: MIT - -------------------------------------------------------------------- -Tue Jan 15 19:37:18 UTC 2013 - p.drouand@gmail.com - -- Initial python3 support - -------------------------------------------------------------------- -Tue Jan 15 19:34:53 UTC 2013 - p.drouand@gmail.com - -- Update to version 1.1.0: - * 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 - -------------------------------------------------------------------- -Tue Nov 13 22:04:33 UTC 2012 - jfunk@funktronics.ca - -- Update to 0.14.2: - * Improved mime-compatible JSON handling - * Proxy fixes - * Path hack fixes - * Case-Insensistive Content-Encoding headers - * Support for CJK parameters in form posts - -------------------------------------------------------------------- -Tue Oct 16 18:55:20 UTC 2012 - jfunk@funktronics.ca - -- Update to 0.14.1: - * 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 tsrings (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 -- Removed certificate patch since it's now upstream -- Removed dependencies that are no longer needed - -------------------------------------------------------------------- -Wed May 30 09:11:50 UTC 2012 - saschpe@suse.de - -- Update to 0.13.1: - + Removal of Requests.async in favor of grequests - + Allow disabling of cookie persistiance. - + New implimentation 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. -- Rebased patches - -------------------------------------------------------------------- -Wed May 23 12:09:35 UTC 2012 - saschpe@suse.de - -- Use a slightly different approach for bnc#761500, try to use /etc/ssl/certs - but use /etc/ssl/ca-bundle.pem as a fallback. The previous fix didn't work - for me as (my) Python ssl module doesn't support cert directories... -- No need to check SUSE versions for python-certifi, it only is/was - part of openSUSE:Factory for a brief period of time - -------------------------------------------------------------------- -Sun May 20 17:44:57 UTC 2012 - jfunk@funktronics.ca - -- Load directory-based cert store in openSUSE >= 12.2 - -------------------------------------------------------------------- -Fri May 18 00:41:52 UTC 2012 - jfunk@funktronics.ca - -- Update to 0.12.1 - * 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. -- Add python-chardet and python-oauthlib requirements -- Run test suite (added python-distribute build requirement to enable) - -------------------------------------------------------------------- -Fri Apr 27 22:57:43 UTC 2012 - jfunk@funktronics.ca - -- Update to 0.11.2 - * 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. - -------------------------------------------------------------------- -Fri Apr 6 19:08:40 UTC 2012 - jfunk@funktronics.ca - -- Update to 0.11.1: - * 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 - ------------------------------------------------------------------- Sat Mar 10 14:11:23 UTC 2012 - saschpe@gmx.de diff --git a/python-requests.spec b/python-requests.spec index 086eefc..47c2fa0 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,96 +11,67 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. - +# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%if 0%{?suse_version} < 1120 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%endif + Name: python-requests -Version: 2.10.0 +Version: 0.10.8 Release: 0 +Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable -License: Apache-2.0 +License: ISC Group: Development/Languages/Python -Url: http://python-requests.org/ -Source: https://pypi.io/packages/source/r/requests/requests-%{version}.tar.gz -# PATCH-FIX-OPENSUSE no-default-cacert.patch -- Completely ignore the internal CA bundle. -Patch0: no-default-cacert.patch -# PATCH-FIX-UPSTREAM update urllib3 to do the proper passthrough to set_default_verify_paths -Patch1: urllib3-ssl-default-context.patch +Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python BuildRequires: python-devel -BuildRequires: python-py -BuildRequires: python-setuptools Requires: python -# requirements for pyopenssl fallback of bundled urllib3 -Recommends: python-ndg-httpsclient -Recommends: python-pyOpenSSL -Recommends: python-pyasn1 -%if 0%{?suse_version} <= 1200 -BuildRequires: openssl-certs -Requires: openssl-certs +Requires: python-certifi +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else -BuildRequires: ca-certificates -Requires: ca-certificates -%endif -# for good measure, at least recommend an actual set of certificates -Recommends: ca-certificates-mozilla -%if 0%{?suse_version} >= 1120 BuildArch: noarch -%else -BuildRoot: %{_tmppath}/%{name}-%{version}-build %endif %description -Requests is an ISC Licensed HTTP library, written in Python, for -human beings. +Requests is an ISC 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. +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. Features: - - Extremely simple GET, HEAD, POST, PUT, DELETE Requests: - + Simple HTTP Header Request Attachment. - + Simple Data/Params Request Attachment. - + Simple Multipart File Uploads. - + CookieJar Support. - + Redirection History. - + Redirection Recursion Urllib Fix. - + Auto Decompression of GZipped Content. - + Unicode URL Support. - - Simple Authentication: - + Simple URL + HTTP Auth Registry. + +- Extremely simple GET, HEAD, POST, PUT, DELETE Requests + + Simple HTTP Header Request Attachment + + Simple Data/Params Request Attachment + + Simple Multipart File Uploads + + CookieJar Support + + Redirection History + + Redirection Recursion Urllib Fix + + Auto Decompression of GZipped Content + + Unicode URL Support +- Simple Authentication + + Simple URL + HTTP Auth Registry %prep %setup -q -n requests-%{version} -%patch0 -p1 -pushd requests/packages -%patch1 -p1 -popd -rm -f requests/cacert.pem %build python setup.py build %install -python setup.py install \ - --root=%{buildroot} --prefix=%{_prefix} - -# Tests require network access. -# %check -# python test_requests.py +python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root) -%doc HISTORY.rst LICENSE NOTICE README.rst -%{python_sitelib}/requests/ -%{python_sitelib}/requests-* +%doc README.rst HISTORY.rst LICENSE NOTICE +%{python_sitelib}/* %changelog diff --git a/requests-0.10.8.tar.gz b/requests-0.10.8.tar.gz new file mode 100644 index 0000000..a9df4a6 --- /dev/null +++ b/requests-0.10.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bec280d924a8be87b3377ee78a976334a6e7c944a8fe09bbd9447e669b984dae +size 62201 diff --git a/requests-2.10.0.tar.gz b/requests-2.10.0.tar.gz deleted file mode 100644 index 5d176b0..0000000 --- a/requests-2.10.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63f1815788157130cee16a933b2ee184038e975f0017306d723ac326b5525b54 -size 477617 diff --git a/urllib3-ssl-default-context.patch b/urllib3-ssl-default-context.patch deleted file mode 100644 index 5745aa9..0000000 --- a/urllib3-ssl-default-context.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: b/urllib3/util/ssl_.py -=================================================================== ---- a/urllib3/util/ssl_.py -+++ b/urllib3/util/ssl_.py -@@ -299,6 +299,8 @@ def ssl_wrap_socket(sock, keyfile=None, - if e.errno == errno.ENOENT: - raise SSLError(e) - raise -+ elif cert_reqs != ssl.CERT_NONE and hasattr(context, 'set_default_verify_paths'): -+ context.set_default_verify_paths() - - if certfile: - context.load_cert_chain(certfile, keyfile) From 22cd0c01de86fa814dbedba6044a1486b2768c7cec3a1379278f2a17779a07ff Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 9 May 2012 16:20:29 +0000 Subject: [PATCH 02/30] Accepting request 116919 from devel:languages:python Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/116919 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=2 --- python-requests.changes | 24 ++++++++++++++++++++++++ python-requests.spec | 6 +++--- requests-0.10.8.tar.gz | 3 --- requests-0.11.2.tar.gz | 3 +++ 4 files changed, 30 insertions(+), 6 deletions(-) delete mode 100644 requests-0.10.8.tar.gz create mode 100644 requests-0.11.2.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 068b04e..c28b936 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Apr 27 22:57:43 UTC 2012 - jfunk@funktronics.ca + +- Update to 0.11.2 + * 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. + +------------------------------------------------------------------- +Fri Apr 6 19:08:40 UTC 2012 - jfunk@funktronics.ca + +- Update to 0.11.1: + * 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 + ------------------------------------------------------------------- Sat Mar 10 14:11:23 UTC 2012 - saschpe@gmx.de diff --git a/python-requests.spec b/python-requests.spec index 47c2fa0..0a5ffc7 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,14 +11,14 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-requests -Version: 0.10.8 +Version: 0.11.2 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-0.10.8.tar.gz b/requests-0.10.8.tar.gz deleted file mode 100644 index a9df4a6..0000000 --- a/requests-0.10.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bec280d924a8be87b3377ee78a976334a6e7c944a8fe09bbd9447e669b984dae -size 62201 diff --git a/requests-0.11.2.tar.gz b/requests-0.11.2.tar.gz new file mode 100644 index 0000000..419def4 --- /dev/null +++ b/requests-0.11.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:547bf78a774a6018271d6e5c40613ec554642ba4d6cdf45813e7894145293c57 +size 71080 From 7ddb8c6e31ad6327dea9be4f460067f759eab0f726c97c527858da1405d8f6ff Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 12 Jun 2012 05:10:01 +0000 Subject: [PATCH 03/30] Accepting request 121921 from devel:languages:python - Use a slightly different approach for bnc#761500, try to use /etc/ssl/certs but use /etc/ssl/ca-bundle.pem as a fallback. The previous fix didn't work for me as (my) Python ssl module doesn't support cert directories... - No need to check SUSE versions for python-certifi, it only is/was part of openSUSE:Factory for a brief period of time - Load directory-based cert store in openSUSE >= 12.2 - Update to 0.12.1 * 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. - Add python-chardet and python-oauthlib requirements - Run test suite (added python-distribute build requirement to enable) OBS-URL: https://build.opensuse.org/request/show/121921 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=3 --- python-requests.changes | 35 ++++++++++++++++++++++ python-requests.spec | 15 ++++++++-- requests-0.11.2.tar.gz | 3 -- requests-0.12.1.tar.gz | 3 ++ requests-suse_cert_paths.patch | 54 ++++++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+), 6 deletions(-) delete mode 100644 requests-0.11.2.tar.gz create mode 100644 requests-0.12.1.tar.gz create mode 100644 requests-suse_cert_paths.patch diff --git a/python-requests.changes b/python-requests.changes index c28b936..1f5b2ba 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Wed May 23 12:09:35 UTC 2012 - saschpe@suse.de + +- Use a slightly different approach for bnc#761500, try to use /etc/ssl/certs + but use /etc/ssl/ca-bundle.pem as a fallback. The previous fix didn't work + for me as (my) Python ssl module doesn't support cert directories... +- No need to check SUSE versions for python-certifi, it only is/was + part of openSUSE:Factory for a brief period of time + +------------------------------------------------------------------- +Sun May 20 17:44:57 UTC 2012 - jfunk@funktronics.ca + +- Load directory-based cert store in openSUSE >= 12.2 + +------------------------------------------------------------------- +Fri May 18 00:41:52 UTC 2012 - jfunk@funktronics.ca + +- Update to 0.12.1 + * 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. +- Add python-chardet and python-oauthlib requirements +- Run test suite (added python-distribute build requirement to enable) + ------------------------------------------------------------------- Fri Apr 27 22:57:43 UTC 2012 - jfunk@funktronics.ca diff --git a/python-requests.spec b/python-requests.spec index 0a5ffc7..7b4769e 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -16,20 +16,25 @@ # - Name: python-requests -Version: 0.11.2 +Version: 0.12.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable License: ISC Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz +# PATCH-FIX-UPSREAM requests-suse_cert_paths.patch [bnc#761501] -- Load directory-based cert store in /etc/ssl/certs. Depends on Python patched to allow it, fall back to /etc/ssl/ca-bundle.pem otherwise +Patch0: requests-suse_cert_paths.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python +BuildRequires: python-chardet BuildRequires: python-devel +BuildRequires: python-distribute +BuildRequires: python-oauthlib Requires: python -Requires: python-certifi +Requires: python-chardet +Requires: python-oauthlib %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -62,10 +67,14 @@ Features: %prep %setup -q -n requests-%{version} +%patch0 -p1 %build python setup.py build +%check +python setup.py test + %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} diff --git a/requests-0.11.2.tar.gz b/requests-0.11.2.tar.gz deleted file mode 100644 index 419def4..0000000 --- a/requests-0.11.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:547bf78a774a6018271d6e5c40613ec554642ba4d6cdf45813e7894145293c57 -size 71080 diff --git a/requests-0.12.1.tar.gz b/requests-0.12.1.tar.gz new file mode 100644 index 0000000..1fb918c --- /dev/null +++ b/requests-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ce56b87180c06728d96ca734055675abf8f5cc3136e0d7712a6260430685589 +size 78245 diff --git a/requests-suse_cert_paths.patch b/requests-suse_cert_paths.patch new file mode 100644 index 0000000..0959726 --- /dev/null +++ b/requests-suse_cert_paths.patch @@ -0,0 +1,54 @@ +diff -ru a/requests/utils.py b/requests/utils.py +--- a/requests/utils.py 2012-05-08 06:56:28.000000000 +0200 ++++ b/requests/utils.py 2012-05-23 14:06:43.728477504 +0200 +@@ -14,6 +14,9 @@ + import os + import random + import re ++import socket ++import ssl ++import _ssl + import zlib + from netrc import netrc, NetrcParseError + +@@ -42,13 +45,26 @@ + '/etc/ssl/certs/ca-certificates.crt', + # FreeBSD (provided by the ca_root_nss package): + '/usr/local/share/certs/ca-root-nss.crt', ++ # openSUSE (provided by the ca-certificates package), the 'certs' directory is the ++ # preferred way but may not be supported by the SSL module, thus it has 'ca-bundle.pem' ++ # as a fallback (which is generated from pem files in the 'certs' directory): ++ '/etc/ssl/certs', ++ '/etc/ssl/ca-bundle.pem', + ] + + def get_os_ca_bundle_path(): + """Try to pick an available CA certificate bundle provided by the OS.""" + for path in POSSIBLE_CA_BUNDLE_PATHS: + if os.path.exists(path): +- return path ++ if os.path.isdir(path): ++ try: ++ # Current candidate is a directory, check if SSL module supports that ++ _ssl.sslwrap(socket.socket()._sock, False, None, None, ssl.CERT_REQUIRED, ssl.PROTOCOL_SSLv23, path, None) ++ return path ++ except: ++ pass # No support, let's check the next candidate ++ else: ++ return path + return None + + # if certifi is installed, use its CA bundle; +Only in b/requests: .utils.py.swp +diff -ru a/setup.py b/setup.py +--- a/setup.py 2012-05-08 06:56:28.000000000 +0200 ++++ b/setup.py 2012-05-23 14:07:30.303478614 +0200 +@@ -34,7 +34,7 @@ + # On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can + # use the system CA bundle instead; see `requests.utils` for details. + # If your platform is supported, set `requires` to [] instead: +-requires = ['certifi>=0.0.7'] ++requires = [] + + # chardet is used to optimally guess the encodings of pages that don't declare one. + # At this time, chardet is not a required dependency. However, it's sufficiently From 431215126cf1f1301cfd49fd380f52a484c6f668eb64f8ac350b308047b113e0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 26 Jun 2012 15:57:49 +0000 Subject: [PATCH 04/30] Accepting request 126137 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/126137 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=5 --- python-requests.changes | 14 ++++++++++++++ python-requests.spec | 3 ++- requests-0.12.1.tar.gz | 3 --- requests-0.13.1.tar.gz | 3 +++ requests-suse_cert_paths.patch | 15 +++++++-------- 5 files changed, 26 insertions(+), 12 deletions(-) delete mode 100644 requests-0.12.1.tar.gz create mode 100644 requests-0.13.1.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 1f5b2ba..6bb11ad 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Wed May 30 09:11:50 UTC 2012 - saschpe@suse.de + +- Update to 0.13.1: + + Removal of Requests.async in favor of grequests + + Allow disabling of cookie persistiance. + + New implimentation 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. +- Rebased patches + ------------------------------------------------------------------- Wed May 23 12:09:35 UTC 2012 - saschpe@suse.de diff --git a/python-requests.spec b/python-requests.spec index 7b4769e..2f4fb77 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 0.12.1 +Version: 0.13.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable @@ -34,6 +34,7 @@ BuildRequires: python-distribute BuildRequires: python-oauthlib Requires: python Requires: python-chardet +Requires: python-grequests Requires: python-oauthlib %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} diff --git a/requests-0.12.1.tar.gz b/requests-0.12.1.tar.gz deleted file mode 100644 index 1fb918c..0000000 --- a/requests-0.12.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ce56b87180c06728d96ca734055675abf8f5cc3136e0d7712a6260430685589 -size 78245 diff --git a/requests-0.13.1.tar.gz b/requests-0.13.1.tar.gz new file mode 100644 index 0000000..399d035 --- /dev/null +++ b/requests-0.13.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31f3ae96787fe74a78c7dd9626bf997fd4eabacc040b7b33fbd8632d2c2a97f6 +size 68474 diff --git a/requests-suse_cert_paths.patch b/requests-suse_cert_paths.patch index 0959726..0103f8b 100644 --- a/requests-suse_cert_paths.patch +++ b/requests-suse_cert_paths.patch @@ -1,9 +1,9 @@ diff -ru a/requests/utils.py b/requests/utils.py ---- a/requests/utils.py 2012-05-08 06:56:28.000000000 +0200 -+++ b/requests/utils.py 2012-05-23 14:06:43.728477504 +0200 -@@ -14,6 +14,9 @@ +--- a/requests/utils.py 2012-05-30 01:54:25.000000000 +0200 ++++ b/requests/utils.py 2012-05-30 11:16:23.939251965 +0200 +@@ -13,6 +13,9 @@ + import codecs import os - import random import re +import socket +import ssl @@ -11,7 +11,7 @@ diff -ru a/requests/utils.py b/requests/utils.py import zlib from netrc import netrc, NetrcParseError -@@ -42,13 +45,26 @@ +@@ -40,13 +43,26 @@ '/etc/ssl/certs/ca-certificates.crt', # FreeBSD (provided by the ca_root_nss package): '/usr/local/share/certs/ca-root-nss.crt', @@ -39,10 +39,9 @@ diff -ru a/requests/utils.py b/requests/utils.py return None # if certifi is installed, use its CA bundle; -Only in b/requests: .utils.py.swp diff -ru a/setup.py b/setup.py ---- a/setup.py 2012-05-08 06:56:28.000000000 +0200 -+++ b/setup.py 2012-05-23 14:07:30.303478614 +0200 +--- a/setup.py 2012-05-11 00:09:45.000000000 +0200 ++++ b/setup.py 2012-05-30 11:16:32.235252151 +0200 @@ -34,7 +34,7 @@ # On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can # use the system CA bundle instead; see `requests.utils` for details. From b3585815f4be365bcbf97c881db71f446b8eb106b406d7a1f5b1f698c837b29f Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 25 Oct 2012 19:26:42 +0000 Subject: [PATCH 05/30] Accepting request 139141 from devel:languages:python Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/139141 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=6 --- python-requests.changes | 47 ++++++++++++++++++++++++++++++ python-requests.spec | 10 +------ requests-0.13.1.tar.gz | 3 -- requests-0.14.1.tar.gz | 3 ++ requests-suse_cert_paths.patch | 53 ---------------------------------- 5 files changed, 51 insertions(+), 65 deletions(-) delete mode 100644 requests-0.13.1.tar.gz create mode 100644 requests-0.14.1.tar.gz delete mode 100644 requests-suse_cert_paths.patch diff --git a/python-requests.changes b/python-requests.changes index 6bb11ad..0f6c80c 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Tue Oct 16 18:55:20 UTC 2012 - jfunk@funktronics.ca + +- Update to 0.14.1: + * 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 tsrings (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 +- Removed certificate patch since it's now upstream +- Removed dependencies that are no longer needed + ------------------------------------------------------------------- Wed May 30 09:11:50 UTC 2012 - saschpe@suse.de diff --git a/python-requests.spec b/python-requests.spec index 2f4fb77..9706bd0 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,25 +17,18 @@ Name: python-requests -Version: 0.13.1 +Version: 0.14.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable License: ISC Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz -# PATCH-FIX-UPSREAM requests-suse_cert_paths.patch [bnc#761501] -- Load directory-based cert store in /etc/ssl/certs. Depends on Python patched to allow it, fall back to /etc/ssl/ca-bundle.pem otherwise -Patch0: requests-suse_cert_paths.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python -BuildRequires: python-chardet BuildRequires: python-devel BuildRequires: python-distribute -BuildRequires: python-oauthlib Requires: python -Requires: python-chardet -Requires: python-grequests -Requires: python-oauthlib %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -68,7 +61,6 @@ Features: %prep %setup -q -n requests-%{version} -%patch0 -p1 %build python setup.py build diff --git a/requests-0.13.1.tar.gz b/requests-0.13.1.tar.gz deleted file mode 100644 index 399d035..0000000 --- a/requests-0.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:31f3ae96787fe74a78c7dd9626bf997fd4eabacc040b7b33fbd8632d2c2a97f6 -size 68474 diff --git a/requests-0.14.1.tar.gz b/requests-0.14.1.tar.gz new file mode 100644 index 0000000..ba15c27 --- /dev/null +++ b/requests-0.14.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f563b907782b2c95dd2cbaf882a96133e567d46290a0e7aafa0c6f3efad19ba +size 523254 diff --git a/requests-suse_cert_paths.patch b/requests-suse_cert_paths.patch deleted file mode 100644 index 0103f8b..0000000 --- a/requests-suse_cert_paths.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -ru a/requests/utils.py b/requests/utils.py ---- a/requests/utils.py 2012-05-30 01:54:25.000000000 +0200 -+++ b/requests/utils.py 2012-05-30 11:16:23.939251965 +0200 -@@ -13,6 +13,9 @@ - import codecs - import os - import re -+import socket -+import ssl -+import _ssl - import zlib - from netrc import netrc, NetrcParseError - -@@ -40,13 +43,26 @@ - '/etc/ssl/certs/ca-certificates.crt', - # FreeBSD (provided by the ca_root_nss package): - '/usr/local/share/certs/ca-root-nss.crt', -+ # openSUSE (provided by the ca-certificates package), the 'certs' directory is the -+ # preferred way but may not be supported by the SSL module, thus it has 'ca-bundle.pem' -+ # as a fallback (which is generated from pem files in the 'certs' directory): -+ '/etc/ssl/certs', -+ '/etc/ssl/ca-bundle.pem', - ] - - def get_os_ca_bundle_path(): - """Try to pick an available CA certificate bundle provided by the OS.""" - for path in POSSIBLE_CA_BUNDLE_PATHS: - if os.path.exists(path): -- return path -+ if os.path.isdir(path): -+ try: -+ # Current candidate is a directory, check if SSL module supports that -+ _ssl.sslwrap(socket.socket()._sock, False, None, None, ssl.CERT_REQUIRED, ssl.PROTOCOL_SSLv23, path, None) -+ return path -+ except: -+ pass # No support, let's check the next candidate -+ else: -+ return path - return None - - # if certifi is installed, use its CA bundle; -diff -ru a/setup.py b/setup.py ---- a/setup.py 2012-05-11 00:09:45.000000000 +0200 -+++ b/setup.py 2012-05-30 11:16:32.235252151 +0200 -@@ -34,7 +34,7 @@ - # On certain supported platforms (e.g., Red Hat / Debian / FreeBSD), Requests can - # use the system CA bundle instead; see `requests.utils` for details. - # If your platform is supported, set `requires` to [] instead: --requires = ['certifi>=0.0.7'] -+requires = [] - - # chardet is used to optimally guess the encodings of pages that don't declare one. - # At this time, chardet is not a required dependency. However, it's sufficiently From 1da100dc4b497ff0d55e5c7c30c0aed943db6daa07ec0c5fed80edd41be86d61 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 21 Nov 2012 16:07:46 +0000 Subject: [PATCH 06/30] Accepting request 142225 from devel:languages:python Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/142225 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=7 --- python-requests.changes | 10 ++++++++++ python-requests.spec | 2 +- requests-0.14.1.tar.gz | 3 --- requests-0.14.2.tar.gz | 3 +++ 4 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 requests-0.14.1.tar.gz create mode 100644 requests-0.14.2.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 0f6c80c..ee754ea 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Nov 13 22:04:33 UTC 2012 - jfunk@funktronics.ca + +- Update to 0.14.2: + * Improved mime-compatible JSON handling + * Proxy fixes + * Path hack fixes + * Case-Insensistive Content-Encoding headers + * Support for CJK parameters in form posts + ------------------------------------------------------------------- Tue Oct 16 18:55:20 UTC 2012 - jfunk@funktronics.ca diff --git a/python-requests.spec b/python-requests.spec index 9706bd0..a39d6d4 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 0.14.1 +Version: 0.14.2 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-0.14.1.tar.gz b/requests-0.14.1.tar.gz deleted file mode 100644 index ba15c27..0000000 --- a/requests-0.14.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f563b907782b2c95dd2cbaf882a96133e567d46290a0e7aafa0c6f3efad19ba -size 523254 diff --git a/requests-0.14.2.tar.gz b/requests-0.14.2.tar.gz new file mode 100644 index 0000000..2cdb876 --- /dev/null +++ b/requests-0.14.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e3345a8ac0d712bf17bd9d3276415050c5f972265ab62993cd4540a3a1aaaef +size 361488 From 68a1315d8ff5241c01c52d51611d224bf2ae0e2fe672183f71ab1524aed0a697 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 20 Jan 2013 13:43:32 +0000 Subject: [PATCH 07/30] Accepting request 148913 from devel:languages:python - Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to https://github.com/kennethreitz/requests/issues/1111, the base license is Apache-2.0 but requests ships two libraries (bnc#799119): + charade: LGPL-2.1+ + urllib3: MIT - Initial python3 support - Update to version 1.1.0: * 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 - Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to https://github.com/kennethreitz/requests/issues/1111, the base license is Apache-2.0 but requests ships two libraries (bnc#799119): + charade: LGPL-2.1+ + urllib3: MIT - Initial python3 support OBS-URL: https://build.opensuse.org/request/show/148913 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=8 --- python-requests.changes | 24 +++++++++++++ python-requests.spec | 9 +++-- python3-requests.changes | 14 ++++++++ python3-requests.spec | 77 ++++++++++++++++++++++++++++++++++++++++ requests-0.14.2.tar.gz | 3 -- requests-1.1.0.tar.gz | 3 ++ 6 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 python3-requests.changes create mode 100644 python3-requests.spec delete mode 100644 requests-0.14.2.tar.gz create mode 100644 requests-1.1.0.tar.gz diff --git a/python-requests.changes b/python-requests.changes index ee754ea..21d7596 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Jan 18 08:31:22 UTC 2013 - saschpe@suse.de + +- Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to + https://github.com/kennethreitz/requests/issues/1111, the base + license is Apache-2.0 but requests ships two libraries (bnc#799119): + + charade: LGPL-2.1+ + + urllib3: MIT + +------------------------------------------------------------------- +Tue Jan 15 19:37:18 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Tue Jan 15 19:34:53 UTC 2013 - p.drouand@gmail.com + +- Update to version 1.1.0: + * 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 + ------------------------------------------------------------------- Tue Nov 13 22:04:33 UTC 2012 - jfunk@funktronics.ca diff --git a/python-requests.spec b/python-requests.spec index a39d6d4..14e23b8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,13 @@ Name: python-requests -Version: 0.14.2 +Version: 1.1.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable -License: ISC +License: Apache-2.0 and LGPL-2.1+ and MIT Group: Development/Languages/Python +#TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify: Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python @@ -61,6 +62,8 @@ Features: %prep %setup -q -n requests-%{version} +# For rpmlint warning: remove shebang from python library: +sed -i '/^#!/d' ./requests/certs.py %build python setup.py build diff --git a/python3-requests.changes b/python3-requests.changes new file mode 100644 index 0000000..46cffad --- /dev/null +++ b/python3-requests.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Fri Jan 18 08:33:19 UTC 2013 - saschpe@suse.de + +- Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to + https://github.com/kennethreitz/requests/issues/1111, the base + license is Apache-2.0 but requests ships two libraries (bnc#799119): + + charade: LGPL-2.1+ + + urllib3: MIT + +------------------------------------------------------------------- +Tue Jan 15 19:37:31 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + diff --git a/python3-requests.spec b/python3-requests.spec new file mode 100644 index 0000000..bca4729 --- /dev/null +++ b/python3-requests.spec @@ -0,0 +1,77 @@ +# +# spec file for package python3-requests +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-requests +Version: 1.1.0 +Release: 0 +Url: http://python-requests.org +Summary: Awesome Python HTTP Library That's Actually Usable +License: Apache-2.0 and LGPL-2.1+ and MIT +Group: Development/Languages/Python +#TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify: +Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildArch: noarch + +%description +Requests is an ISC 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. + +Features: + +- Extremely simple GET, HEAD, POST, PUT, DELETE Requests + + Simple HTTP Header Request Attachment + + Simple Data/Params Request Attachment + + Simple Multipart File Uploads + + CookieJar Support + + Redirection History + + Redirection Recursion Urllib Fix + + Auto Decompression of GZipped Content + + Unicode URL Support +- Simple Authentication + + Simple URL + HTTP Auth Registry + +%prep +%setup -q -n requests-%{version} +# For rpmlint warning: remove shebang from python library: +sed -i '/^#!/d' ./requests/certs.py + +%build +python3 setup.py build + +%check +python3 setup.py test + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root) +%doc README.rst HISTORY.rst LICENSE NOTICE +%{python3_sitelib}/* + +%changelog diff --git a/requests-0.14.2.tar.gz b/requests-0.14.2.tar.gz deleted file mode 100644 index 2cdb876..0000000 --- a/requests-0.14.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e3345a8ac0d712bf17bd9d3276415050c5f972265ab62993cd4540a3a1aaaef -size 361488 diff --git a/requests-1.1.0.tar.gz b/requests-1.1.0.tar.gz new file mode 100644 index 0000000..f58cf28 --- /dev/null +++ b/requests-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21a81ddf1a3c2f956524538966ae19c38cae251f5629821588cdc8246a1335f7 +size 337229 From 7e28e4929beddbe28309dcad0d4cf3ff2bc024d4a7b850baf9a622559ad0d094 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 May 2013 09:27:12 +0000 Subject: [PATCH 08/30] Accepting request 175242 from devel:languages:python - update to 1.2.0: * 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 mutiprocessing library Update charade to version 1.0.3 - update to 1.2.0: * 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 (forwarded request 175233 from dirkmueller) OBS-URL: https://build.opensuse.org/request/show/175242 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=10 --- python-requests.changes | 26 ++++++++++++++++++++++++++ python-requests.spec | 2 +- python3-requests.changes | 26 ++++++++++++++++++++++++++ python3-requests.spec | 2 +- requests-1.1.0.tar.gz | 3 --- requests-1.2.0.tar.gz | 3 +++ 6 files changed, 57 insertions(+), 5 deletions(-) delete mode 100644 requests-1.1.0.tar.gz create mode 100644 requests-1.2.0.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 21d7596..7c602ef 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon May 13 08:57:09 UTC 2013 - dmueller@suse.com + +- update to 1.2.0: + * 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 + mutiprocessing library + Update charade to version 1.0.3 + ------------------------------------------------------------------- Fri Jan 18 08:31:22 UTC 2013 - saschpe@suse.de diff --git a/python-requests.spec b/python-requests.spec index 14e23b8..b3ed90e 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 1.1.0 +Version: 1.2.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/python3-requests.changes b/python3-requests.changes index 46cffad..89ae696 100644 --- a/python3-requests.changes +++ b/python3-requests.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon May 13 08:57:09 UTC 2013 - dmueller@suse.com + +- update to 1.2.0: + * 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 + mutiprocessing library + Update charade to version 1.0.3 + ------------------------------------------------------------------- Fri Jan 18 08:33:19 UTC 2013 - saschpe@suse.de diff --git a/python3-requests.spec b/python3-requests.spec index bca4729..4937992 100644 --- a/python3-requests.spec +++ b/python3-requests.spec @@ -17,7 +17,7 @@ Name: python3-requests -Version: 1.1.0 +Version: 1.2.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-1.1.0.tar.gz b/requests-1.1.0.tar.gz deleted file mode 100644 index f58cf28..0000000 --- a/requests-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21a81ddf1a3c2f956524538966ae19c38cae251f5629821588cdc8246a1335f7 -size 337229 diff --git a/requests-1.2.0.tar.gz b/requests-1.2.0.tar.gz new file mode 100644 index 0000000..e82bc81 --- /dev/null +++ b/requests-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cfa615644ae38efe8423ce9edb23470a4615a9147fa3cea5026afb47c9bb3913 +size 341511 From 88b8771c5f7fba36ef2b9730296c89ceb890efffb70cee7d7405945ffc995414 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 5 Jun 2013 11:35:59 +0000 Subject: [PATCH 09/30] Accepting request 176813 from devel:languages:python - update to 1.2.3: * 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 (forwarded request 176685 from dirkmueller) OBS-URL: https://build.opensuse.org/request/show/176813 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=11 --- python-requests.changes | 10 ++++++++++ python-requests.spec | 2 +- python3-requests.spec | 2 +- requests-1.2.0.tar.gz | 3 --- requests-1.2.3.tar.gz | 3 +++ 5 files changed, 15 insertions(+), 5 deletions(-) delete mode 100644 requests-1.2.0.tar.gz create mode 100644 requests-1.2.3.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 7c602ef..9348bf8 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon May 27 10:36:36 UTC 2013 - dmueller@suse.com + +- update to 1.2.3: + * 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 + ------------------------------------------------------------------- Mon May 13 08:57:09 UTC 2013 - dmueller@suse.com diff --git a/python-requests.spec b/python-requests.spec index b3ed90e..60ed283 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 1.2.0 +Version: 1.2.3 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/python3-requests.spec b/python3-requests.spec index 4937992..409b390 100644 --- a/python3-requests.spec +++ b/python3-requests.spec @@ -17,7 +17,7 @@ Name: python3-requests -Version: 1.2.0 +Version: 1.2.3 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-1.2.0.tar.gz b/requests-1.2.0.tar.gz deleted file mode 100644 index e82bc81..0000000 --- a/requests-1.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfa615644ae38efe8423ce9edb23470a4615a9147fa3cea5026afb47c9bb3913 -size 341511 diff --git a/requests-1.2.3.tar.gz b/requests-1.2.3.tar.gz new file mode 100644 index 0000000..f0d2ae8 --- /dev/null +++ b/requests-1.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1 +size 348854 From d405eaba73d514f5d3727ba7268ee2edcc47fb031703b44e73e2fb5dd701432c Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 19 Jun 2013 13:53:46 +0000 Subject: [PATCH 10/30] Accepting request 179993 from devel:languages:python housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory. OBS-URL: https://build.opensuse.org/request/show/179993 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=12 --- python3-requests.changes | 40 --------------------- python3-requests.spec | 77 ---------------------------------------- 2 files changed, 117 deletions(-) delete mode 100644 python3-requests.changes delete mode 100644 python3-requests.spec diff --git a/python3-requests.changes b/python3-requests.changes deleted file mode 100644 index 89ae696..0000000 --- a/python3-requests.changes +++ /dev/null @@ -1,40 +0,0 @@ -------------------------------------------------------------------- -Mon May 13 08:57:09 UTC 2013 - dmueller@suse.com - -- update to 1.2.0: - * 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 - mutiprocessing library - Update charade to version 1.0.3 - -------------------------------------------------------------------- -Fri Jan 18 08:33:19 UTC 2013 - saschpe@suse.de - -- Set license to "Apache-2.0 and LGPL-2.1+ and MIT", according to - https://github.com/kennethreitz/requests/issues/1111, the base - license is Apache-2.0 but requests ships two libraries (bnc#799119): - + charade: LGPL-2.1+ - + urllib3: MIT - -------------------------------------------------------------------- -Tue Jan 15 19:37:31 UTC 2013 - p.drouand@gmail.com - -- Initial python3 support - diff --git a/python3-requests.spec b/python3-requests.spec deleted file mode 100644 index 409b390..0000000 --- a/python3-requests.spec +++ /dev/null @@ -1,77 +0,0 @@ -# -# spec file for package python3-requests -# -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -Name: python3-requests -Version: 1.2.3 -Release: 0 -Url: http://python-requests.org -Summary: Awesome Python HTTP Library That's Actually Usable -License: Apache-2.0 and LGPL-2.1+ and MIT -Group: Development/Languages/Python -#TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify: -Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python3 -BuildRequires: python3-devel -BuildRequires: python3-distribute -BuildArch: noarch - -%description -Requests is an ISC 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. - -Features: - -- Extremely simple GET, HEAD, POST, PUT, DELETE Requests - + Simple HTTP Header Request Attachment - + Simple Data/Params Request Attachment - + Simple Multipart File Uploads - + CookieJar Support - + Redirection History - + Redirection Recursion Urllib Fix - + Auto Decompression of GZipped Content - + Unicode URL Support -- Simple Authentication - + Simple URL + HTTP Auth Registry - -%prep -%setup -q -n requests-%{version} -# For rpmlint warning: remove shebang from python library: -sed -i '/^#!/d' ./requests/certs.py - -%build -python3 setup.py build - -%check -python3 setup.py test - -%install -python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%files -%defattr(-,root,root) -%doc README.rst HISTORY.rst LICENSE NOTICE -%{python3_sitelib}/* - -%changelog From 2f9f75aeddc1e94edd25f298b718d8e4c424285a189379ff1b377a2f02eec122 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 25 Jul 2013 18:31:16 +0000 Subject: [PATCH 11/30] Accepting request 184322 from devel:languages:python - Add no-default-cacert.patch: completely ignore the internal CA bundle and point to /etc/ssl/certs/. This works because we patched python to do the right thing when a directory is used there instead of a file. - Manually remove requests/cacert.pem (better than doing that in the patch, since it's big) too. (forwarded request 184317 from vuntz) OBS-URL: https://build.opensuse.org/request/show/184322 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=13 --- no-default-cacert.patch | 53 +++++++++++++++++++++++++++++++++++++++++ python-requests.changes | 10 ++++++++ python-requests.spec | 4 ++++ 3 files changed, 67 insertions(+) create mode 100644 no-default-cacert.patch diff --git a/no-default-cacert.patch b/no-default-cacert.patch new file mode 100644 index 0000000..df5168c --- /dev/null +++ b/no-default-cacert.patch @@ -0,0 +1,53 @@ +Index: requests-1.2.3/requests/adapters.py +=================================================================== +--- requests-1.2.3.orig/requests/adapters.py ++++ requests-1.2.3/requests/adapters.py +@@ -129,9 +129,6 @@ class HTTPAdapter(BaseAdapter): + if not cert_loc: + cert_loc = DEFAULT_CA_BUNDLE_PATH + +- if not cert_loc: +- raise Exception("Could not find a suitable SSL CA certificate bundle.") +- + conn.cert_reqs = 'CERT_REQUIRED' + conn.ca_certs = cert_loc + else: +Index: requests-1.2.3/requests/certs.py +=================================================================== +--- requests-1.2.3.orig/requests/certs.py ++++ requests-1.2.3/requests/certs.py +@@ -18,7 +18,7 @@ import os.path + def where(): + """Return the preferred certificate bundle.""" + # vendored bundle inside Requests +- return os.path.join(os.path.dirname(__file__), 'cacert.pem') ++ return '/etc/ssl/certs/' + + if __name__ == '__main__': + print(where()) +Index: requests-1.2.3/MANIFEST.in +=================================================================== +--- requests-1.2.3.orig/MANIFEST.in ++++ requests-1.2.3/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 +Index: requests-1.2.3/requests.egg-info/SOURCES.txt +=================================================================== +--- requests-1.2.3.orig/requests.egg-info/SOURCES.txt ++++ requests-1.2.3/requests.egg-info/SOURCES.txt +@@ -10,7 +10,6 @@ requests/__init__.py + requests/adapters.py + requests/api.py + requests/auth.py +-requests/cacert.pem + requests/certs.py + requests/compat.py + requests/cookies.py +@@ -79,4 +78,4 @@ requests/packages/urllib3/contrib/pyopen + 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 +\ No newline at end of file ++requests/packages/urllib3/packages/ssl_match_hostname/__init__.py diff --git a/python-requests.changes b/python-requests.changes index 9348bf8..c7af38b 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Jul 25 11:40:02 UTC 2013 - vuntz@suse.com + +- Add no-default-cacert.patch: completely ignore the internal CA + bundle and point to /etc/ssl/certs/. This works because we + patched python to do the right thing when a directory is used + there instead of a file. +- Manually remove requests/cacert.pem (better than doing that in + the patch, since it's big) too. + ------------------------------------------------------------------- Mon May 27 10:36:36 UTC 2013 - dmueller@suse.com diff --git a/python-requests.spec b/python-requests.spec index 60ed283..a52272c 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -25,6 +25,8 @@ License: Apache-2.0 and LGPL-2.1+ and MIT Group: Development/Languages/Python #TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify: Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz +# PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle +Patch0: no-default-cacert.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python BuildRequires: python-devel @@ -64,6 +66,8 @@ Features: %setup -q -n requests-%{version} # For rpmlint warning: remove shebang from python library: sed -i '/^#!/d' ./requests/certs.py +%patch0 -p1 +rm ./requests/cacert.pem %build python setup.py build From b8e04b9db75a035b6e416c8ad9cb0412b73a710d2422693ebe7fdfcc7941d782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 25 Oct 2013 09:31:02 +0000 Subject: [PATCH 12/30] Accepting request 204649 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/204649 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=15 --- python-requests.changes | 5 +++++ python-requests.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-requests.changes b/python-requests.changes index c7af38b..6f72d27 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 24 11:13:26 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + ------------------------------------------------------------------- Thu Jul 25 11:40:02 UTC 2013 - vuntz@suse.com diff --git a/python-requests.spec b/python-requests.spec index a52272c..56568cd 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -30,7 +30,7 @@ Patch0: no-default-cacert.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python BuildRequires: python-devel -BuildRequires: python-distribute +BuildRequires: python-setuptools Requires: python %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} From f92d834cf404b72ea70a1e63ec8d88dcbaac7f4fefb65b730cd772d8ba3f1383 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 8 Nov 2013 07:39:07 +0000 Subject: [PATCH 13/30] 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 --- no-default-cacert.patch | 32 +++++++++++------------------ python-requests.changes | 45 +++++++++++++++++++++++++++++++++++++++++ python-requests.spec | 2 +- requests-1.2.3.tar.gz | 3 --- requests-2.0.1.tar.gz | 3 +++ 5 files changed, 61 insertions(+), 24 deletions(-) delete mode 100644 requests-1.2.3.tar.gz create mode 100644 requests-2.0.1.tar.gz diff --git a/no-default-cacert.patch b/no-default-cacert.patch index df5168c..11c6e93 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -1,8 +1,6 @@ -Index: requests-1.2.3/requests/adapters.py -=================================================================== ---- requests-1.2.3.orig/requests/adapters.py -+++ requests-1.2.3/requests/adapters.py -@@ -129,9 +129,6 @@ class HTTPAdapter(BaseAdapter): +--- a/requests/adapters.py ++++ b/requests/adapters.py +@@ -132,9 +132,6 @@ if not cert_loc: cert_loc = DEFAULT_CA_BUNDLE_PATH @@ -12,11 +10,9 @@ Index: requests-1.2.3/requests/adapters.py conn.cert_reqs = 'CERT_REQUIRED' conn.ca_certs = cert_loc else: -Index: requests-1.2.3/requests/certs.py -=================================================================== ---- requests-1.2.3.orig/requests/certs.py -+++ requests-1.2.3/requests/certs.py -@@ -18,7 +18,7 @@ import os.path +--- a/requests/certs.py ++++ b/requests/certs.py +@@ -18,7 +18,7 @@ def where(): """Return the preferred certificate bundle.""" # vendored bundle inside Requests @@ -25,18 +21,14 @@ Index: requests-1.2.3/requests/certs.py if __name__ == '__main__': print(where()) -Index: requests-1.2.3/MANIFEST.in -=================================================================== ---- requests-1.2.3.orig/MANIFEST.in -+++ requests-1.2.3/MANIFEST.in +--- 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 -Index: requests-1.2.3/requests.egg-info/SOURCES.txt -=================================================================== ---- requests-1.2.3.orig/requests.egg-info/SOURCES.txt -+++ requests-1.2.3/requests.egg-info/SOURCES.txt -@@ -10,7 +10,6 @@ requests/__init__.py +--- a/requests.egg-info/SOURCES.txt ++++ b/requests.egg-info/SOURCES.txt +@@ -10,7 +10,6 @@ requests/adapters.py requests/api.py requests/auth.py @@ -44,7 +36,7 @@ Index: requests-1.2.3/requests.egg-info/SOURCES.txt requests/certs.py requests/compat.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/ordered_dict.py requests/packages/urllib3/packages/six.py diff --git a/python-requests.changes b/python-requests.changes index 6f72d27..2c6a6d9 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -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 diff --git a/python-requests.spec b/python-requests.spec index 56568cd..04c28f6 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 1.2.3 +Version: 2.0.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-1.2.3.tar.gz b/requests-1.2.3.tar.gz deleted file mode 100644 index f0d2ae8..0000000 --- a/requests-1.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:156bf3ec27ba9ec7e0cf8fbe02808718099d218de403eb64a714d73ba1a29ab1 -size 348854 diff --git a/requests-2.0.1.tar.gz b/requests-2.0.1.tar.gz new file mode 100644 index 0000000..e9fd7ff --- /dev/null +++ b/requests-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8cfddb97667c2a9edaf28b506d2479f1b8dc0631cbdcd0ea8c8864def59c698b +size 412648 From 7840e5564a75105bedaa25ea1440abbfa05c435c6cf5add7291d5579175c3a5a Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 10 Dec 2013 08:34:52 +0000 Subject: [PATCH 14/30] Accepting request 210031 from devel:languages:python - Add no-default-cacert-sles.patch: use this patch when building for SLES, since python in SLES and openSUSE behave differently when it comes to SSL, and no-default-cacert.patch is wrong for SLES. (forwarded request 210028 from vuntz) OBS-URL: https://build.opensuse.org/request/show/210031 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=17 --- no-default-cacert-sles.patch | 53 ++++++++++++++++++++++++++++++++++++ python-requests.changes | 8 ++++++ python-requests.spec | 6 ++++ 3 files changed, 67 insertions(+) create mode 100644 no-default-cacert-sles.patch diff --git a/no-default-cacert-sles.patch b/no-default-cacert-sles.patch new file mode 100644 index 0000000..4ee33c1 --- /dev/null +++ b/no-default-cacert-sles.patch @@ -0,0 +1,53 @@ +Index: requests-1.1.0/MANIFEST.in +=================================================================== +--- requests-1.1.0.orig/MANIFEST.in ++++ requests-1.1.0/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 +Index: requests-1.1.0/requests/adapters.py +=================================================================== +--- requests-1.1.0.orig/requests/adapters.py ++++ requests-1.1.0/requests/adapters.py +@@ -132,9 +132,6 @@ class HTTPAdapter(BaseAdapter): + if not cert_loc: + cert_loc = DEFAULT_CA_BUNDLE_PATH + +- if not cert_loc: +- raise Exception("Could not find a suitable SSL CA certificate bundle.") +- + conn.cert_reqs = 'CERT_REQUIRED' + conn.ca_certs = cert_loc + else: +Index: requests-1.1.0/requests/certs.py +=================================================================== +--- requests-1.1.0.orig/requests/certs.py ++++ requests-1.1.0/requests/certs.py +@@ -18,7 +18,7 @@ def where(): + def where(): + """Return the preferred certificate bundle.""" + # vendored bundle inside Requests +- return os.path.join(os.path.dirname(__file__), 'cacert.pem') ++ return None + + if __name__ == '__main__': + print(where()) +Index: requests-1.1.0/requests.egg-info/SOURCES.txt +=================================================================== +--- requests-1.1.0.orig/requests.egg-info/SOURCES.txt ++++ requests-1.1.0/requests.egg-info/SOURCES.txt +@@ -10,7 +10,6 @@ requests/__init__.py + requests/adapters.py + requests/api.py + requests/auth.py +-requests/cacert.pem + requests/certs.py + requests/compat.py + requests/cookies.py +@@ -82,4 +81,4 @@ requests/packages/urllib3/util.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 +\ No newline at end of file ++requests/packages/urllib3/packages/ssl_match_hostname/__init__.py diff --git a/python-requests.changes b/python-requests.changes index 2c6a6d9..11b4cee 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Dec 9 15:27:58 UTC 2013 - vuntz@suse.com + +- Add no-default-cacert-sles.patch: use this patch when building + for SLES, since python in SLES and openSUSE behave differently + when it comes to SSL, and no-default-cacert.patch is wrong for + SLES. + ------------------------------------------------------------------- Thu Nov 7 10:07:58 UTC 2013 - mcihar@suse.cz diff --git a/python-requests.spec b/python-requests.spec index 04c28f6..c893593 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -27,6 +27,8 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz # PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle Patch0: no-default-cacert.patch +# PATCH-FIX-OPENSUSE no-default-cacert-sles.patch -- completely ignore the internal CA bundle (SLES version) +Patch1: no-default-cacert-sles.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python BuildRequires: python-devel @@ -66,7 +68,11 @@ Features: %setup -q -n requests-%{version} # For rpmlint warning: remove shebang from python library: sed -i '/^#!/d' ./requests/certs.py +%if %suse_version > 1110 %patch0 -p1 +%else +%patch1 -p1 +%endif rm ./requests/cacert.pem %build From 68d9543aaf7c27b32c2614e26bd53867bc9797dc4e924f8263397d942a8a22e5 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 16 Jun 2014 19:32:34 +0000 Subject: [PATCH 15/30] Accepting request 237323 from devel:languages:python - Update tarball to the one upstream is publishing. - Update to version 2.3.0 + 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 viewd in the interpreter. + 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.- Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character. + Assorted urllib3 fixes. + New exception: ``ContentDecodingError``. Raised instead of ``urllib3`` ``DecodeError`` exceptions. + 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 OBS-URL: https://build.opensuse.org/request/show/237323 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=18 --- no-default-cacert-sles.patch | 19 ----------- no-default-cacert.patch | 17 ---------- python-requests.changes | 66 ++++++++++++++++++++++++++++++++++++ python-requests.spec | 4 +-- requests-2.0.1.tar.gz | 3 -- requests-2.3.0.tar.gz | 3 ++ 6 files changed, 71 insertions(+), 41 deletions(-) delete mode 100644 requests-2.0.1.tar.gz create mode 100644 requests-2.3.0.tar.gz diff --git a/no-default-cacert-sles.patch b/no-default-cacert-sles.patch index 4ee33c1..438b782 100644 --- a/no-default-cacert-sles.patch +++ b/no-default-cacert-sles.patch @@ -32,22 +32,3 @@ Index: requests-1.1.0/requests/certs.py if __name__ == '__main__': print(where()) -Index: requests-1.1.0/requests.egg-info/SOURCES.txt -=================================================================== ---- requests-1.1.0.orig/requests.egg-info/SOURCES.txt -+++ requests-1.1.0/requests.egg-info/SOURCES.txt -@@ -10,7 +10,6 @@ requests/__init__.py - requests/adapters.py - requests/api.py - requests/auth.py --requests/cacert.pem - requests/certs.py - requests/compat.py - requests/cookies.py -@@ -82,4 +81,4 @@ requests/packages/urllib3/util.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 -\ No newline at end of file -+requests/packages/urllib3/packages/ssl_match_hostname/__init__.py diff --git a/no-default-cacert.patch b/no-default-cacert.patch index 11c6e93..63f29d0 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -26,20 +26,3 @@ @@ -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 ---- a/requests.egg-info/SOURCES.txt -+++ b/requests.egg-info/SOURCES.txt -@@ -10,7 +10,6 @@ - requests/adapters.py - requests/api.py - requests/auth.py --requests/cacert.pem - requests/certs.py - requests/compat.py - requests/cookies.py -@@ -82,4 +81,4 @@ - 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 -\ No newline at end of file -+requests/packages/urllib3/packages/ssl_match_hostname/__init__.py diff --git a/python-requests.changes b/python-requests.changes index 11b4cee..da35788 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,69 @@ +------------------------------------------------------------------- +Sat Jun 14 10:56:52 UTC 2014 - tchvatal@suse.com + +- Update tarball to the one upstream is publishing. + +------------------------------------------------------------------- +Thu Jun 5 19:40:21 UTC 2014 - rschweikert@suse.com + +- Update to version 2.3.0 + + 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 viewd in the interpreter. + + 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.- Fixes incorrect parsing of proxy + credentials that contain a literal or encoded '#' character. + + Assorted urllib3 fixes. + + New exception: ``ContentDecodingError``. Raised instead of ``urllib3`` + ``DecodeError`` exceptions. + + 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. + + 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. + ------------------------------------------------------------------- Mon Dec 9 15:27:58 UTC 2013 - vuntz@suse.com diff --git a/python-requests.spec b/python-requests.spec index c893593..4d276a3 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-requests -Version: 2.0.1 +Version: 2.3.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-2.0.1.tar.gz b/requests-2.0.1.tar.gz deleted file mode 100644 index e9fd7ff..0000000 --- a/requests-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cfddb97667c2a9edaf28b506d2479f1b8dc0631cbdcd0ea8c8864def59c698b -size 412648 diff --git a/requests-2.3.0.tar.gz b/requests-2.3.0.tar.gz new file mode 100644 index 0000000..f229889 --- /dev/null +++ b/requests-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc +size 429521 From 35bb6d4770654c7cfce526ce9d4f967ba5ac5104be8ceb06cf06e13bde3f25e3 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 12 Sep 2014 08:03:33 +0000 Subject: [PATCH 16/30] Accepting request 248630 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/248630 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=20 --- no-default-cacert-sles.patch | 12 ++++++------ no-default-cacert.patch | 13 +++++++------ python-requests.changes | 23 +++++++++++++++++++++++ python-requests.spec | 4 +++- requests-2.3.0.tar.gz | 3 --- requests-2.4.1.tar.gz | 3 +++ 6 files changed, 42 insertions(+), 16 deletions(-) delete mode 100644 requests-2.3.0.tar.gz create mode 100644 requests-2.4.1.tar.gz diff --git a/no-default-cacert-sles.patch b/no-default-cacert-sles.patch index 438b782..a4ddceb 100644 --- a/no-default-cacert-sles.patch +++ b/no-default-cacert-sles.patch @@ -23,12 +23,12 @@ Index: requests-1.1.0/requests/certs.py =================================================================== --- requests-1.1.0.orig/requests/certs.py +++ requests-1.1.0/requests/certs.py -@@ -18,7 +18,7 @@ def where(): - def where(): - """Return the preferred certificate bundle.""" - # vendored bundle inside Requests -- return os.path.join(os.path.dirname(__file__), 'cacert.pem') -+ return None +@@ -19,7 +19,7 @@ + def where(): + """Return the preferred certificate bundle.""" + # vendored bundle inside Requests +- return os.path.join(os.path.dirname(__file__), 'cacert.pem') ++ return None if __name__ == '__main__': print(where()) diff --git a/no-default-cacert.patch b/no-default-cacert.patch index 63f29d0..9a1ce6f 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -12,12 +12,12 @@ else: --- a/requests/certs.py +++ b/requests/certs.py -@@ -18,7 +18,7 @@ - def where(): - """Return the preferred certificate bundle.""" - # vendored bundle inside Requests -- return os.path.join(os.path.dirname(__file__), 'cacert.pem') -+ return '/etc/ssl/certs/' +@@ -19,7 +19,7 @@ + def where(): + """Return the preferred certificate bundle.""" + # vendored bundle inside Requests +- return os.path.join(os.path.dirname(__file__), 'cacert.pem') ++ return '/etc/ssl/certs/' if __name__ == '__main__': print(where()) @@ -26,3 +26,4 @@ @@ -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/python-requests.changes b/python-requests.changes index da35788..8ccb80a 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Thu Sep 11 12:34:42 UTC 2014 - toddrme2178@gmail.com + +- Update to 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?). +- Update to 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. + ------------------------------------------------------------------- Sat Jun 14 10:56:52 UTC 2014 - tchvatal@suse.com diff --git a/python-requests.spec b/python-requests.spec index 4d276a3..f3e3fc4 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 2.3.0 +Version: 2.4.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable @@ -32,7 +32,9 @@ Patch1: no-default-cacert-sles.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python BuildRequires: python-devel +BuildRequires: python-py BuildRequires: python-setuptools +Requires: python-py Requires: python %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} diff --git a/requests-2.3.0.tar.gz b/requests-2.3.0.tar.gz deleted file mode 100644 index f229889..0000000 --- a/requests-2.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc -size 429521 diff --git a/requests-2.4.1.tar.gz b/requests-2.4.1.tar.gz new file mode 100644 index 0000000..2c6d7e3 --- /dev/null +++ b/requests-2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35d890b0aaa6e09ec40d49361d823b998ced86cc7673a9ce70bbc4f986e13ad8 +size 436872 From ec3a6a68f29e6b169129c6f9bd086ef4fd74d5910fc7b2e416d34bd1713311db Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 3 Dec 2014 21:48:20 +0000 Subject: [PATCH 17/30] Accepting request 263759 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/263759 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=21 --- python-requests.changes | 5 +++++ python-requests.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-requests.changes b/python-requests.changes index 8ccb80a..a939a94 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 1 12:05:19 UTC 2014 - dmueller@suse.com + +- fix license (Apache-2.0 only) + ------------------------------------------------------------------- Thu Sep 11 12:34:42 UTC 2014 - toddrme2178@gmail.com diff --git a/python-requests.spec b/python-requests.spec index f3e3fc4..524fa6f 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -21,7 +21,7 @@ Version: 2.4.1 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable -License: Apache-2.0 and LGPL-2.1+ and MIT +License: Apache-2.0 Group: Development/Languages/Python #TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify: Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz @@ -34,8 +34,8 @@ BuildRequires: python BuildRequires: python-devel BuildRequires: python-py BuildRequires: python-setuptools -Requires: python-py Requires: python +Requires: python-py %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else From 649d314154701f0cf4348149f23f9aead1bb24227742dbcd74f80aa0d9e7ee98 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 25 Feb 2015 01:18:12 +0000 Subject: [PATCH 18/30] Accepting request 287544 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/287544 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=22 --- python-requests.changes | 119 ++++++++++++++++++++++++++++++++++++++++ python-requests.spec | 4 +- requests-2.4.1.tar.gz | 3 - requests-2.5.2.tar.gz | 3 + 4 files changed, 124 insertions(+), 5 deletions(-) delete mode 100644 requests-2.4.1.tar.gz create mode 100644 requests-2.5.2.tar.gz diff --git a/python-requests.changes b/python-requests.changes index a939a94..476e628 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,122 @@ +------------------------------------------------------------------- +Tue Feb 24 13:04:17 UTC 2015 - tbechtold@suse.com + +- update to 2.5.2: + * Update HISTORY and version for v2.5.2 + * Update urllib3 to 29aa09bde9c42cc9a8d79aac47ee3d362b438cca + * document combination of repeated response headers + * Update README to use Shields badges + * Upgrade urllib3 to 490d3a227fadb626cd54a240b9d0922f849914b4 + * Update certificate bundle. + * Update to use readthedocs.org instead of rtfd.org + * add a timeout value to connection_error_invalid_port test to accelerate + failure + * split test_connection_error into two distinct tests, and changed + "unknown url" test URL since fooobarbangbazbing.httpbin.org currently gives + a valid response. + * quickstart: using a list as a value in query params + * HISTORY: replace n-dash to workaround pip bug + * Check that a filename is a basestring instance + * Move noncebit to the only place it is used + * Remove entirely unnecessary and unused bits from requests.compat + * Attempt to quote anyway if unquoting fails + * Update urllib3 to a27758625e4169330fcf965652b1093faf5aaaa2 + * drawn towards it rather than pushed away + * certifi + * simpler button + * cleanups + * Requests Pro + * javascripts + * Changing year in all copyright information + * Enhance documentation for clarity. + * Clean up cookie docs and display them. + * Bump version to 2.5.1 + * Add release notes for 2.5.1 + * Fix bug in renegotiating a nonce with the server + * Fix error handling on Python 3 + * catch exception more specifically in Response.ok + * Uncommented test in test_requests.py + * Fix a typo in a comment + * Give proper attribution to pip + * utils.guess_filename fails if the given parameter looks like a file object + but has a non-string name attribute + * Copy pip's import machinery wholesale + * Updated the broken link to twitter streaming API documentation + * Enable GitHub syntax highlighting on README + * Bump version to 2.5.0 + * Add updates for 2.5.0 + * Update tests to work offline + * updatee chardet, urllib3 + * url was already parsed, don't urlparse twice + * Properly serialize RecentlyUsedContainers for cache + * Changed ConnectionError to InvalidURL + * Docs: Add more section labels for referencing + * Partially addresses Issue #1572 + * Update HTTPAdapter docstring + * Add last few changes and add a quick test + * Update urllib3 to df4ec5cce1 + * Update how we handle retries to be consistent with documentation + * Fix HTTPDigestAuth not to treat non-file as a file + * Fixed. + * Added test for overriding Content-Length. + * Close sessions created in the functional API + * Pass strict to urllib3. + * Use to_native_string instead of builtin_str + * Update documentation about max_retries to reflect code + * Cap the redirect_cache size to prevent memory abuse + * Add DeprecationWarnings to inform users of plans + * Note about read timeout errors and max_retries + * fix failing test "test_prepare_unicode_url" \(take 3\) + * Revert "fix failing test "test_prepare_unicode_url"" + * fix failing test "test_prepare_unicode_url" + * Revert "fix failing test "test_prepare_unicode_url"" + * update AUTHORS + * fix failing test "test_prepare_unicode_url" + * Changing parameter name `newline` ==> `delimiter`. + * Clean up handle_redirect. + * Adding a custom line delimiter to iter_lines() + * Fix #2279. Update layout css + * Fix #2288. Change urllib3 and chardet workflow + * Update sidebarintro.html + * Made more better + * Add Release History to the sidebar + * Fixed #2250 + * Update utils.py + * Clean up, support all redirects, fix potential endless 401 loop. + * v2.4.3 + * Re-order params for backwards compat + * allow unicode URLs on Python 2 + * requests v2.4.2 + * fix documentation for utils.get_unicode_from_response() :) + * v2.4.2 changelog + * Remove timeout from __attrs__ + * Fix a couple of issues I noticed + * Support bytestring URLs on Python 3.x + * A fix for #1979 repeat HTTP digest authentication after redirect. + * remove unused import + * fix #2247 + * docs: Clarify how to pass a custom set of CAs + * Correct redirection introduction + * Avoid getting stuck in a loop + * make StreamConsumedError doubly inherit + * using the `StreamConsumedError` + * add-in StreamConsumedError + * rm `else` after `if` then `raise` block + * raise RuntimeError when a single streamed request calls *iter methods + than once + * Remove invoke from requirements.txt, docs + * Fixup the remaining references to timeline.json. + * Moved multiple files upload example to advanced section. + * Added example of how to send multiple files in one request. + * Document skipping in PreparedRequest; followup to #2222 + * Add more tests to `test_invalid_url` + * lawl + * mils + * Fixes typo in test + * Changes check on base and json. Fails on tests. + * Adds review changes + * Adds json parameter for POST requests + ------------------------------------------------------------------- Mon Dec 1 12:05:19 UTC 2014 - dmueller@suse.com diff --git a/python-requests.spec b/python-requests.spec index 524fa6f..ef12371 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-requests -Version: 2.4.1 +Version: 2.5.2 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-2.4.1.tar.gz b/requests-2.4.1.tar.gz deleted file mode 100644 index 2c6d7e3..0000000 --- a/requests-2.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35d890b0aaa6e09ec40d49361d823b998ced86cc7673a9ce70bbc4f986e13ad8 -size 436872 diff --git a/requests-2.5.2.tar.gz b/requests-2.5.2.tar.gz new file mode 100644 index 0000000..14093b3 --- /dev/null +++ b/requests-2.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:306ead91d47a48b6a25d495d2495de99694641bd7d2cac5bcc405a8837c7a612 +size 455688 From 59d2b186f07adc01c6079bfb6c1742c7feddf81c457eea59d21f66f635db58b3 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 21 Apr 2015 08:53:57 +0000 Subject: [PATCH 19/30] Accepting request 298191 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/298191 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=23 --- python-requests.changes | 23 +++++++++++++++++++++++ python-requests.spec | 2 +- requests-2.5.2.tar.gz | 3 --- requests-2.6.0.tar.gz | 3 +++ 4 files changed, 27 insertions(+), 4 deletions(-) delete mode 100644 requests-2.5.2.tar.gz create mode 100644 requests-2.6.0.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 476e628..e3ff38c 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Mon Apr 20 12:25:21 UTC 2015 - mcihar@suse.cz + +- Update to 2.6.0: + - 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 `_. + An CVE identifier has not yet been assigned for this. 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. + - 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. + - Revert changes to our vendored certificate bundle. For more context see + (#2455, #2456, and http://bugs.python.org/issue23476) + ------------------------------------------------------------------- Tue Feb 24 13:04:17 UTC 2015 - tbechtold@suse.com diff --git a/python-requests.spec b/python-requests.spec index ef12371..f2191d5 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 2.5.2 +Version: 2.6.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable diff --git a/requests-2.5.2.tar.gz b/requests-2.5.2.tar.gz deleted file mode 100644 index 14093b3..0000000 --- a/requests-2.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:306ead91d47a48b6a25d495d2495de99694641bd7d2cac5bcc405a8837c7a612 -size 455688 diff --git a/requests-2.6.0.tar.gz b/requests-2.6.0.tar.gz new file mode 100644 index 0000000..e488fc2 --- /dev/null +++ b/requests-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75 +size 450389 From d81488b544aac8d3fb840ad4964e4d5da69ac694b85f032b1409ba6436bba99b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 14 Jul 2015 15:43:46 +0000 Subject: [PATCH 20/30] Accepting request 315859 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/315859 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=24 --- no-default-cacert.patch | 44 ++++++++++++++++++++++++++++++----------- python-requests.changes | 5 +++++ 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/no-default-cacert.patch b/no-default-cacert.patch index 9a1ce6f..7651e91 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -1,6 +1,8 @@ ---- a/requests/adapters.py -+++ b/requests/adapters.py -@@ -132,9 +132,6 @@ +Index: requests-2.6.0/requests/adapters.py +=================================================================== +--- requests-2.6.0.orig/requests/adapters.py ++++ requests-2.6.0/requests/adapters.py +@@ -177,9 +177,6 @@ class HTTPAdapter(BaseAdapter): if not cert_loc: cert_loc = DEFAULT_CA_BUNDLE_PATH @@ -10,20 +12,40 @@ conn.cert_reqs = 'CERT_REQUIRED' conn.ca_certs = cert_loc else: ---- a/requests/certs.py -+++ b/requests/certs.py -@@ -19,7 +19,7 @@ +Index: requests-2.6.0/requests/certs.py +=================================================================== +--- requests-2.6.0.orig/requests/certs.py ++++ requests-2.6.0/requests/certs.py +@@ -18,8 +18,9 @@ try: + except ImportError: def where(): """Return the preferred certificate bundle.""" - # vendored bundle inside Requests +- # vendored bundle inside Requests - return os.path.join(os.path.dirname(__file__), 'cacert.pem') -+ return '/etc/ssl/certs/' ++ # in openSUSE we rely on openssl's default instead of ++ # hardcoding stuff elsewhere ++ return None if __name__ == '__main__': print(where()) ---- a/MANIFEST.in -+++ b/MANIFEST.in +Index: requests-2.6.0/MANIFEST.in +=================================================================== +--- requests-2.6.0.orig/MANIFEST.in ++++ requests-2.6.0/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 - +Index: requests-2.6.0/requests/packages/urllib3/util/ssl_.py +=================================================================== +--- requests-2.6.0.orig/requests/packages/urllib3/util/ssl_.py ++++ requests-2.6.0/requests/packages/urllib3/util/ssl_.py +@@ -259,6 +259,9 @@ def ssl_wrap_socket(sock, keyfile=None, + if e.errno == errno.ENOENT: + raise SSLError(e) + raise ++ elif cert_reqs != CERT_NONE: ++ context.set_default_verify_paths() ++ + if certfile: + context.load_cert_chain(certfile, keyfile) + if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI diff --git a/python-requests.changes b/python-requests.changes index e3ff38c..b44ff80 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 30 08:39:24 UTC 2015 - lnussel@suse.de + +- update no-default-cacert.patch to not hardcode a ca cert location + ------------------------------------------------------------------- Mon Apr 20 12:25:21 UTC 2015 - mcihar@suse.cz From aa3faeab801b1519ea6cf494c74dee5cd3a6037ada2b30235724e89e7a3079cd Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sat, 1 Aug 2015 09:37:13 +0000 Subject: [PATCH 21/30] Accepting request 319000 from devel:languages:python Update to 2.7.0 OBS-URL: https://build.opensuse.org/request/show/319000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=25 --- python-requests.changes | 16 ++++++++++++++++ python-requests.spec | 4 ++-- requests-2.6.0.tar.gz | 3 --- requests-2.7.0.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 5 deletions(-) delete mode 100644 requests-2.6.0.tar.gz create mode 100644 requests-2.7.0.tar.gz diff --git a/python-requests.changes b/python-requests.changes index b44ff80..a00168c 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Fri Jul 24 14:45:44 UTC 2015 - seife+obs@b1-systems.com + +- fix version condition to allow RHEL/CentOS 7 builds + +------------------------------------------------------------------- +Fri Jul 24 08:52:50 UTC 2015 - hvogel@suse.com + +- Update to 2.7.0 + - resolving several bugs involving chunked transfer + encoding and response framing. + - Remove VendorAlias import + - Simplify the PreparedRequest.prepare API + - Handle UnicodeDecodeErrors + - Copy a PreparedRequest's CookieJar more reliably + ------------------------------------------------------------------- Tue Jun 30 08:39:24 UTC 2015 - lnussel@suse.de diff --git a/python-requests.spec b/python-requests.spec index f2191d5..275dcf5 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 2.6.0 +Version: 2.7.0 Release: 0 Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable @@ -70,7 +70,7 @@ Features: %setup -q -n requests-%{version} # For rpmlint warning: remove shebang from python library: sed -i '/^#!/d' ./requests/certs.py -%if %suse_version > 1110 +%if 0%{?suse_version} > 1110 || 0%{?rhel} > 6 %patch0 -p1 %else %patch1 -p1 diff --git a/requests-2.6.0.tar.gz b/requests-2.6.0.tar.gz deleted file mode 100644 index e488fc2..0000000 --- a/requests-2.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75 -size 450389 diff --git a/requests-2.7.0.tar.gz b/requests-2.7.0.tar.gz new file mode 100644 index 0000000..ce3f497 --- /dev/null +++ b/requests-2.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d +size 451723 From eba8027439ccdfd3dfc40518c7b216000937f85662140f01a93b006de851fd84 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 6 Aug 2015 22:24:44 +0000 Subject: [PATCH 22/30] Accepting request 320849 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/320849 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=26 --- python-requests.changes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-requests.changes b/python-requests.changes index a00168c..9d51d1a 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -22,7 +22,7 @@ Tue Jun 30 08:39:24 UTC 2015 - lnussel@suse.de ------------------------------------------------------------------- Mon Apr 20 12:25:21 UTC 2015 - mcihar@suse.cz -- Update to 2.6.0: +- Update to 2.6.0 (bsc#922448, 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 @@ -45,7 +45,7 @@ Mon Apr 20 12:25:21 UTC 2015 - mcihar@suse.cz ------------------------------------------------------------------- Tue Feb 24 13:04:17 UTC 2015 - tbechtold@suse.com -- update to 2.5.2: +- update to 2.5.2 (bsc#929736): * Update HISTORY and version for v2.5.2 * Update urllib3 to 29aa09bde9c42cc9a8d79aac47ee3d362b438cca * document combination of repeated response headers From 7ea6aee370945f12b99636fe08f5d7031d20b9df4824a57eaef3e64c6bb402ff Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 24 Sep 2015 04:14:12 +0000 Subject: [PATCH 23/30] Accepting request 331875 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/331875 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=27 --- python-requests.changes | 7 +++++++ python-requests.spec | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-requests.changes b/python-requests.changes index 9d51d1a..b921cb5 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 14 07:48:30 UTC 2015 - tbechtold@suse.com + +- Disable testsuite. Tests were never executed (bsc#945455) but + enabling the testsuite doesn't work because the suite needs + network access. + ------------------------------------------------------------------- Fri Jul 24 14:45:44 UTC 2015 - seife+obs@b1-systems.com diff --git a/python-requests.spec b/python-requests.spec index 275dcf5..018db5c 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -80,8 +80,11 @@ rm ./requests/cacert.pem %build python setup.py build -%check -python setup.py test +# NOTE(toabctl): The test suite currently requires external network access, so +# we can't enable it. +# See # https://github.com/kennethreitz/requests/issues/2184 +##check +##python setup.py test %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} From 04b18d749301cb7b32945a659ece4fa5ad19b0bcfe7416c8dcde90b59b3955ad Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 19 Oct 2015 20:51:36 +0000 Subject: [PATCH 24/30] Accepting request 339109 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/339109 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=28 --- no-default-cacert-sles.patch | 34 ---------- no-default-cacert.patch | 37 ++++------- python-requests.changes | 52 +++++++++++++++ python-requests.spec | 73 ++++++++++---------- requests-2.7.0.tar.gz | 3 - requests-2.8.0.tar.gz | 3 + requests-do-not-use-bundle.patch | 111 +++++++++++++++++++++++++++++++ 7 files changed, 215 insertions(+), 98 deletions(-) delete mode 100644 no-default-cacert-sles.patch delete mode 100644 requests-2.7.0.tar.gz create mode 100644 requests-2.8.0.tar.gz create mode 100644 requests-do-not-use-bundle.patch diff --git a/no-default-cacert-sles.patch b/no-default-cacert-sles.patch deleted file mode 100644 index a4ddceb..0000000 --- a/no-default-cacert-sles.patch +++ /dev/null @@ -1,34 +0,0 @@ -Index: requests-1.1.0/MANIFEST.in -=================================================================== ---- requests-1.1.0.orig/MANIFEST.in -+++ requests-1.1.0/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 -Index: requests-1.1.0/requests/adapters.py -=================================================================== ---- requests-1.1.0.orig/requests/adapters.py -+++ requests-1.1.0/requests/adapters.py -@@ -132,9 +132,6 @@ class HTTPAdapter(BaseAdapter): - if not cert_loc: - cert_loc = DEFAULT_CA_BUNDLE_PATH - -- if not cert_loc: -- raise Exception("Could not find a suitable SSL CA certificate bundle.") -- - conn.cert_reqs = 'CERT_REQUIRED' - conn.ca_certs = cert_loc - else: -Index: requests-1.1.0/requests/certs.py -=================================================================== ---- requests-1.1.0.orig/requests/certs.py -+++ requests-1.1.0/requests/certs.py -@@ -19,7 +19,7 @@ - def where(): - """Return the preferred certificate bundle.""" - # vendored bundle inside Requests -- return os.path.join(os.path.dirname(__file__), 'cacert.pem') -+ return None - - if __name__ == '__main__': - print(where()) diff --git a/no-default-cacert.patch b/no-default-cacert.patch index 7651e91..f0a4219 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -1,8 +1,11 @@ -Index: requests-2.6.0/requests/adapters.py -=================================================================== ---- requests-2.6.0.orig/requests/adapters.py -+++ requests-2.6.0/requests/adapters.py -@@ -177,9 +177,6 @@ class HTTPAdapter(BaseAdapter): +--- 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 +--- a/requests/adapters.py ++++ b/requests/adapters.py +@@ -180,9 +180,6 @@ class HTTPAdapter(BaseAdapter): if not cert_loc: cert_loc = DEFAULT_CA_BUNDLE_PATH @@ -12,10 +15,8 @@ Index: requests-2.6.0/requests/adapters.py conn.cert_reqs = 'CERT_REQUIRED' conn.ca_certs = cert_loc else: -Index: requests-2.6.0/requests/certs.py -=================================================================== ---- requests-2.6.0.orig/requests/certs.py -+++ requests-2.6.0/requests/certs.py +--- a/requests/certs.py ++++ b/requests/certs.py @@ -18,8 +18,9 @@ try: except ImportError: def where(): @@ -28,24 +29,14 @@ Index: requests-2.6.0/requests/certs.py if __name__ == '__main__': print(where()) -Index: requests-2.6.0/MANIFEST.in -=================================================================== ---- requests-2.6.0.orig/MANIFEST.in -+++ requests-2.6.0/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 -Index: requests-2.6.0/requests/packages/urllib3/util/ssl_.py -=================================================================== ---- requests-2.6.0.orig/requests/packages/urllib3/util/ssl_.py -+++ requests-2.6.0/requests/packages/urllib3/util/ssl_.py -@@ -259,6 +259,9 @@ def ssl_wrap_socket(sock, keyfile=None, +--- a/requests/packages/urllib3/util/ssl_.py ++++ b/requests/packages/urllib3/util/ssl_.py +@@ -278,6 +278,8 @@ def ssl_wrap_socket(sock, keyfile=None, if e.errno == errno.ENOENT: raise SSLError(e) raise + elif cert_reqs != CERT_NONE: + context.set_default_verify_paths() -+ + if certfile: context.load_cert_chain(certfile, keyfile) - if HAS_SNI: # Platform-specific: OpenSSL with enabled SNI diff --git a/python-requests.changes b/python-requests.changes index b921cb5..3a3c8d8 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +Wed Oct 14 19:24:43 UTC 2015 - sor.alexei@meowr.ru + +- Add python3-chardet to build requirements for tests. +- Remove no-default-cacert-sles.patch as no-default-cacert.patch + does basically the same. + +------------------------------------------------------------------- +Fri Oct 9 19:11:09 UTC 2015 - sor.alexei@meowr.ru + +- Update to 2.8.0: + * Requests now supports per-host proxies. This allows the proxies + dictionary to have entries of the form {'://': + ''}. 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. + * Change the default User-Agent string to avoid leaking data on + Linux: now contains only the requests version. + * 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 enviroment variable. + * Fix problem where httplib.BadStatusLine would get raised if + combining stream=True with contextlib.closing. + * Prevent 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. +- Apply no-default-cacert-sles.patch on SLE 12. +- Apply Arun Persaud's changes to requests-do-not-use-bundle.patch + (update to 2.8.0). +- Enable tests. +- Small spec cleanup. + +------------------------------------------------------------------- +Tue Oct 6 17:48:20 UTC 2015 - aloisio@gmx.com + +- Fixed requests-do-not-use-bundle.patch + +------------------------------------------------------------------- +Mon Oct 5 17:18:43 UTC 2015 - p.drouand@gmail.com + +- Unbundle python-chardet and python-urllib3 (boo#947357) + requests-do-not-use-bundle.patch + ------------------------------------------------------------------- Mon Sep 14 07:48:30 UTC 2015 - tbechtold@suse.com diff --git a/python-requests.spec b/python-requests.spec index 018db5c..3bf3208 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,81 +17,78 @@ Name: python-requests -Version: 2.7.0 +Version: 2.8.0 Release: 0 -Url: http://python-requests.org Summary: Awesome Python HTTP Library That's Actually Usable License: Apache-2.0 Group: Development/Languages/Python -#TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify: +Url: http://python-requests.org Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz # PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle Patch0: no-default-cacert.patch -# PATCH-FIX-OPENSUSE no-default-cacert-sles.patch -- completely ignore the internal CA bundle (SLES version) -Patch1: no-default-cacert-sles.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# PATCH-FIX-OPENSUSE requests-do-not-use-bundle.patch --use system libraries instead of bundled ones +Patch1: requests-do-not-use-bundle.patch BuildRequires: python BuildRequires: python-devel BuildRequires: python-py BuildRequires: python-setuptools Requires: python +Requires: python-chardet Requires: python-py -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +Requires: python-urllib3 +%if 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +BuildRoot: %{_tmppath}/%{name}-%{version}-build %else BuildArch: noarch %endif %description -Requests is an ISC Licensed HTTP library, written in Python, for human -beings. +Requests is an ISC 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. +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. Features: - -- Extremely simple GET, HEAD, POST, PUT, DELETE Requests - + Simple HTTP Header Request Attachment - + Simple Data/Params Request Attachment - + Simple Multipart File Uploads - + CookieJar Support - + Redirection History - + Redirection Recursion Urllib Fix - + Auto Decompression of GZipped Content - + Unicode URL Support -- Simple Authentication - + Simple URL + HTTP Auth Registry + - Extremely simple GET, HEAD, POST, PUT, DELETE Requests: + + Simple HTTP Header Request Attachment. + + Simple Data/Params Request Attachment. + + Simple Multipart File Uploads. + + CookieJar Support. + + Redirection History. + + Redirection Recursion Urllib Fix. + + Auto Decompression of GZipped Content. + + Unicode URL Support. + - Simple Authentication: + + Simple URL + HTTP Auth Registry. %prep %setup -q -n requests-%{version} # For rpmlint warning: remove shebang from python library: sed -i '/^#!/d' ./requests/certs.py -%if 0%{?suse_version} > 1110 || 0%{?rhel} > 6 %patch0 -p1 -%else %patch1 -p1 -%endif rm ./requests/cacert.pem %build python setup.py build -# NOTE(toabctl): The test suite currently requires external network access, so -# we can't enable it. -# See # https://github.com/kennethreitz/requests/issues/2184 -##check -##python setup.py test - %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +python setup.py install \ + --root=%{buildroot} --prefix=%{_prefix} +rm -rf %{buildroot}%{python_sitelib}/requests/packages/ + +%check +python setup.py test %files %defattr(-,root,root) -%doc README.rst HISTORY.rst LICENSE NOTICE -%{python_sitelib}/* +%doc HISTORY.rst LICENSE NOTICE README.rst +%{python_sitelib}/requests/ +%{python_sitelib}/requests-* %changelog diff --git a/requests-2.7.0.tar.gz b/requests-2.7.0.tar.gz deleted file mode 100644 index ce3f497..0000000 --- a/requests-2.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d -size 451723 diff --git a/requests-2.8.0.tar.gz b/requests-2.8.0.tar.gz new file mode 100644 index 0000000..7269afa --- /dev/null +++ b/requests-2.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2f003589b60924909c0acde472590c5ea83906986a7a25b6f7929eb20923b7b +size 457879 diff --git a/requests-do-not-use-bundle.patch b/requests-do-not-use-bundle.patch new file mode 100644 index 0000000..fb5c5ed --- /dev/null +++ b/requests-do-not-use-bundle.patch @@ -0,0 +1,111 @@ +--- a/requests/adapters.py ++++ b/requests/adapters.py +@@ -11,24 +11,24 @@ and maintain connections. + import socket + + from .models import Response +-from .packages.urllib3.poolmanager import PoolManager, proxy_from_url +-from .packages.urllib3.response import HTTPResponse +-from .packages.urllib3.util import Timeout as TimeoutSauce +-from .packages.urllib3.util.retry import Retry ++from urllib3.poolmanager import PoolManager, proxy_from_url ++from urllib3.response import HTTPResponse ++from urllib3.util import Timeout as TimeoutSauce ++from urllib3.util.retry import Retry + from .compat import urlparse, basestring + from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers, + prepend_scheme_if_needed, get_auth_from_url, urldefragauth, + select_proxy) + from .structures import CaseInsensitiveDict +-from .packages.urllib3.exceptions import ClosedPoolError +-from .packages.urllib3.exceptions import ConnectTimeoutError +-from .packages.urllib3.exceptions import HTTPError as _HTTPError +-from .packages.urllib3.exceptions import MaxRetryError +-from .packages.urllib3.exceptions import ProxyError as _ProxyError +-from .packages.urllib3.exceptions import ProtocolError +-from .packages.urllib3.exceptions import ReadTimeoutError +-from .packages.urllib3.exceptions import SSLError as _SSLError +-from .packages.urllib3.exceptions import ResponseError ++from urllib3.exceptions import ClosedPoolError ++from urllib3.exceptions import ConnectTimeoutError ++from urllib3.exceptions import HTTPError as _HTTPError ++from urllib3.exceptions import MaxRetryError ++from urllib3.exceptions import ProxyError as _ProxyError ++from urllib3.exceptions import ProtocolError ++from urllib3.exceptions import ReadTimeoutError ++from urllib3.exceptions import SSLError as _SSLError ++from urllib3.exceptions import ResponseError + from .cookies import extract_cookies_to_jar + from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError, + ProxyError, RetryError) +--- a/requests/compat.py ++++ b/requests/compat.py +@@ -4,8 +4,7 @@ + pythoncompat + """ + +-from .packages import chardet +- ++import chardet + import sys + + # ------- +@@ -39,7 +38,7 @@ if is_py2: + import cookielib + from Cookie import Morsel + from StringIO import StringIO +- from .packages.urllib3.packages.ordered_dict import OrderedDict ++ from urllib3.packages.ordered_dict import OrderedDict + + builtin_str = str + bytes = str +--- a/requests/exceptions.py ++++ b/requests/exceptions.py +@@ -7,7 +7,7 @@ requests.exceptions + This module contains the set of Requests' exceptions. + + """ +-from .packages.urllib3.exceptions import HTTPError as BaseHTTPError ++from urllib3.exceptions import HTTPError as BaseHTTPError + + + class RequestException(IOError): +--- a/requests/__init__.py ++++ b/requests/__init__.py +@@ -50,7 +50,7 @@ __copyright__ = 'Copyright 2015 Kenneth + + # Attempt to enable urllib3's SNI support, if possible + try: +- from .packages.urllib3.contrib import pyopenssl ++ from urllib3.contrib import pyopenssl + pyopenssl.inject_into_urllib3() + except ImportError: + pass +--- a/requests/models.py ++++ b/requests/models.py +@@ -16,10 +16,10 @@ from .structures import CaseInsensitiveD + + from .auth import HTTPBasicAuth + from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar +-from .packages.urllib3.fields import RequestField +-from .packages.urllib3.filepost import encode_multipart_formdata +-from .packages.urllib3.util import parse_url +-from .packages.urllib3.exceptions import ( ++from urllib3.fields import RequestField ++from urllib3.filepost import encode_multipart_formdata ++from urllib3.util import parse_url ++from urllib3.exceptions import ( + DecodeError, ReadTimeoutError, ProtocolError, LocationParseError) + from .exceptions import ( + HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError, +--- a/requests/sessions.py ++++ b/requests/sessions.py +@@ -21,7 +21,7 @@ from .hooks import default_hooks, dispat + from .utils import to_key_val_list, default_headers, to_native_string + from .exceptions import ( + TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError) +-from .packages.urllib3._collections import RecentlyUsedContainer ++from urllib3._collections import RecentlyUsedContainer + from .structures import CaseInsensitiveDict + + from .adapters import HTTPAdapter From 22c68f4f0d4e0908dde87ca0a8687d23f062857148d7150128895a5eab74d35d Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 26 Oct 2015 11:48:44 +0000 Subject: [PATCH 25/30] Accepting request 340326 from devel:languages:python - update to 2.8.1: - 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. - remove requests-do-not-use-bundle.patch (bsc#947357) - fix requires OBS-URL: https://build.opensuse.org/request/show/340326 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=29 --- python-requests.changes | 23 +++++++ python-requests.spec | 13 ++-- requests-2.8.0.tar.gz | 3 - requests-2.8.1.tar.gz | 3 + requests-do-not-use-bundle.patch | 111 ------------------------------- 5 files changed, 31 insertions(+), 122 deletions(-) delete mode 100644 requests-2.8.0.tar.gz create mode 100644 requests-2.8.1.tar.gz delete mode 100644 requests-do-not-use-bundle.patch diff --git a/python-requests.changes b/python-requests.changes index 3a3c8d8..fb88a5e 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Wed Oct 21 21:08:29 UTC 2015 - dmueller@suse.com + +- update to 2.8.1: + - 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. + +------------------------------------------------------------------- +Wed Oct 21 20:49:30 UTC 2015 - dmueller@suse.com + +- remove requests-do-not-use-bundle.patch (bsc#947357) + +------------------------------------------------------------------- +Wed Oct 21 08:00:52 UTC 2015 - dmueller@suse.com + +- fix requires + ------------------------------------------------------------------- Wed Oct 14 19:24:43 UTC 2015 - sor.alexei@meowr.ru diff --git a/python-requests.spec b/python-requests.spec index 3bf3208..fd510f8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -17,7 +17,7 @@ Name: python-requests -Version: 2.8.0 +Version: 2.8.1 Release: 0 Summary: Awesome Python HTTP Library That's Actually Usable License: Apache-2.0 @@ -26,16 +26,15 @@ Url: http://python-requests.org Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz # PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle Patch0: no-default-cacert.patch -# PATCH-FIX-OPENSUSE requests-do-not-use-bundle.patch --use system libraries instead of bundled ones -Patch1: requests-do-not-use-bundle.patch BuildRequires: python BuildRequires: python-devel BuildRequires: python-py BuildRequires: python-setuptools Requires: python -Requires: python-chardet -Requires: python-py -Requires: python-urllib3 +# really needed? +#Requires: python-ndg-httpsclient +Requires: python-pyOpenSSL +Requires: python-pyasn1 %if 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -71,7 +70,6 @@ Features: # For rpmlint warning: remove shebang from python library: sed -i '/^#!/d' ./requests/certs.py %patch0 -p1 -%patch1 -p1 rm ./requests/cacert.pem %build @@ -80,7 +78,6 @@ python setup.py build %install python setup.py install \ --root=%{buildroot} --prefix=%{_prefix} -rm -rf %{buildroot}%{python_sitelib}/requests/packages/ %check python setup.py test diff --git a/requests-2.8.0.tar.gz b/requests-2.8.0.tar.gz deleted file mode 100644 index 7269afa..0000000 --- a/requests-2.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2f003589b60924909c0acde472590c5ea83906986a7a25b6f7929eb20923b7b -size 457879 diff --git a/requests-2.8.1.tar.gz b/requests-2.8.1.tar.gz new file mode 100644 index 0000000..6af30b9 --- /dev/null +++ b/requests-2.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b +size 480803 diff --git a/requests-do-not-use-bundle.patch b/requests-do-not-use-bundle.patch deleted file mode 100644 index fb5c5ed..0000000 --- a/requests-do-not-use-bundle.patch +++ /dev/null @@ -1,111 +0,0 @@ ---- a/requests/adapters.py -+++ b/requests/adapters.py -@@ -11,24 +11,24 @@ and maintain connections. - import socket - - from .models import Response --from .packages.urllib3.poolmanager import PoolManager, proxy_from_url --from .packages.urllib3.response import HTTPResponse --from .packages.urllib3.util import Timeout as TimeoutSauce --from .packages.urllib3.util.retry import Retry -+from urllib3.poolmanager import PoolManager, proxy_from_url -+from urllib3.response import HTTPResponse -+from urllib3.util import Timeout as TimeoutSauce -+from urllib3.util.retry import Retry - from .compat import urlparse, basestring - from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers, - prepend_scheme_if_needed, get_auth_from_url, urldefragauth, - select_proxy) - from .structures import CaseInsensitiveDict --from .packages.urllib3.exceptions import ClosedPoolError --from .packages.urllib3.exceptions import ConnectTimeoutError --from .packages.urllib3.exceptions import HTTPError as _HTTPError --from .packages.urllib3.exceptions import MaxRetryError --from .packages.urllib3.exceptions import ProxyError as _ProxyError --from .packages.urllib3.exceptions import ProtocolError --from .packages.urllib3.exceptions import ReadTimeoutError --from .packages.urllib3.exceptions import SSLError as _SSLError --from .packages.urllib3.exceptions import ResponseError -+from urllib3.exceptions import ClosedPoolError -+from urllib3.exceptions import ConnectTimeoutError -+from urllib3.exceptions import HTTPError as _HTTPError -+from urllib3.exceptions import MaxRetryError -+from urllib3.exceptions import ProxyError as _ProxyError -+from urllib3.exceptions import ProtocolError -+from urllib3.exceptions import ReadTimeoutError -+from urllib3.exceptions import SSLError as _SSLError -+from urllib3.exceptions import ResponseError - from .cookies import extract_cookies_to_jar - from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError, - ProxyError, RetryError) ---- a/requests/compat.py -+++ b/requests/compat.py -@@ -4,8 +4,7 @@ - pythoncompat - """ - --from .packages import chardet -- -+import chardet - import sys - - # ------- -@@ -39,7 +38,7 @@ if is_py2: - import cookielib - from Cookie import Morsel - from StringIO import StringIO -- from .packages.urllib3.packages.ordered_dict import OrderedDict -+ from urllib3.packages.ordered_dict import OrderedDict - - builtin_str = str - bytes = str ---- a/requests/exceptions.py -+++ b/requests/exceptions.py -@@ -7,7 +7,7 @@ requests.exceptions - This module contains the set of Requests' exceptions. - - """ --from .packages.urllib3.exceptions import HTTPError as BaseHTTPError -+from urllib3.exceptions import HTTPError as BaseHTTPError - - - class RequestException(IOError): ---- a/requests/__init__.py -+++ b/requests/__init__.py -@@ -50,7 +50,7 @@ __copyright__ = 'Copyright 2015 Kenneth - - # Attempt to enable urllib3's SNI support, if possible - try: -- from .packages.urllib3.contrib import pyopenssl -+ from urllib3.contrib import pyopenssl - pyopenssl.inject_into_urllib3() - except ImportError: - pass ---- a/requests/models.py -+++ b/requests/models.py -@@ -16,10 +16,10 @@ from .structures import CaseInsensitiveD - - from .auth import HTTPBasicAuth - from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar --from .packages.urllib3.fields import RequestField --from .packages.urllib3.filepost import encode_multipart_formdata --from .packages.urllib3.util import parse_url --from .packages.urllib3.exceptions import ( -+from urllib3.fields import RequestField -+from urllib3.filepost import encode_multipart_formdata -+from urllib3.util import parse_url -+from urllib3.exceptions import ( - DecodeError, ReadTimeoutError, ProtocolError, LocationParseError) - from .exceptions import ( - HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError, ---- a/requests/sessions.py -+++ b/requests/sessions.py -@@ -21,7 +21,7 @@ from .hooks import default_hooks, dispat - from .utils import to_key_val_list, default_headers, to_native_string - from .exceptions import ( - TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError) --from .packages.urllib3._collections import RecentlyUsedContainer -+from urllib3._collections import RecentlyUsedContainer - from .structures import CaseInsensitiveDict - - from .adapters import HTTPAdapter From a73990e36ef1a5366445f61c0f33736bce05a5a037c96c7670035d7214aa3ace Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 1 Jan 2016 18:48:20 +0000 Subject: [PATCH 26/30] Accepting request 351195 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/351195 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=30 --- no-default-cacert.patch | 11 ----------- python-requests.changes | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/no-default-cacert.patch b/no-default-cacert.patch index f0a4219..64d9891 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -29,14 +29,3 @@ if __name__ == '__main__': print(where()) ---- a/requests/packages/urllib3/util/ssl_.py -+++ b/requests/packages/urllib3/util/ssl_.py -@@ -278,6 +278,8 @@ def ssl_wrap_socket(sock, keyfile=None, - if e.errno == errno.ENOENT: - raise SSLError(e) - raise -+ elif cert_reqs != CERT_NONE: -+ context.set_default_verify_paths() - - if certfile: - context.load_cert_chain(certfile, keyfile) diff --git a/python-requests.changes b/python-requests.changes index fb88a5e..2163bce 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Dec 17 13:45:59 UTC 2015 - rjschwei@suse.com + +- Modify no-default-cacert + + The call to set_default_verify_paths() is not necessary. The openSUSE + and SLES Python has been patched to always use the system certs. + Additionally this call breaks the use of python-requests on older systems, + openSUSE_13.2 and original release of SLES 12 which fall back to + the built in implementation of ssl which doe not implement + this method + ------------------------------------------------------------------- Wed Oct 21 21:08:29 UTC 2015 - dmueller@suse.com From 0c15285eec63e3e29162346c1ff1406588dba4b18796d100ec01dcbc23c45c73 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 25 Feb 2016 21:08:19 +0000 Subject: [PATCH 27/30] Accepting request 361137 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/361137 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=31 --- no-default-cacert.patch | 12 ++++++------ python-requests.changes | 40 ++++++++++++++++++++++++++++++++++++++++ python-requests.spec | 35 +++++++++++++++++++++-------------- requests-2.8.1.tar.gz | 3 --- requests-2.9.1.tar.gz | 3 +++ 5 files changed, 70 insertions(+), 23 deletions(-) delete mode 100644 requests-2.8.1.tar.gz create mode 100644 requests-2.9.1.tar.gz diff --git a/no-default-cacert.patch b/no-default-cacert.patch index 64d9891..f543168 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -5,7 +5,7 @@ +include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt --- a/requests/adapters.py +++ b/requests/adapters.py -@@ -180,9 +180,6 @@ class HTTPAdapter(BaseAdapter): +@@ -182,9 +182,6 @@ class HTTPAdapter(BaseAdapter): if not cert_loc: cert_loc = DEFAULT_CA_BUNDLE_PATH @@ -13,8 +13,8 @@ - raise Exception("Could not find a suitable SSL CA certificate bundle.") - conn.cert_reqs = 'CERT_REQUIRED' - conn.ca_certs = cert_loc - else: + + if not os.path.isdir(cert_loc): --- a/requests/certs.py +++ b/requests/certs.py @@ -18,8 +18,9 @@ try: @@ -23,9 +23,9 @@ """Return the preferred certificate bundle.""" - # vendored bundle inside Requests - return os.path.join(os.path.dirname(__file__), 'cacert.pem') -+ # in openSUSE we rely on openssl's default instead of -+ # hardcoding stuff elsewhere -+ return None ++ # in openSUSE we rely on ca-certificates instead of ++ # having an another bundle ++ return '/etc/ssl/ca-bundle.pem' if __name__ == '__main__': print(where()) diff --git a/python-requests.changes b/python-requests.changes index 2163bce..d353d7a 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,43 @@ +------------------------------------------------------------------- +Wed Feb 17 14:47:12 UTC 2016 - sor.alexei@meowr.ru + +- Update to 2.9.1 (changes since 2.8.1): + * 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. + * 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. + * Fix errors when calculating cookie expiration dates in certain + locales. + * Update bundled urllib3 to 1.13.1. +- Rebase no-default-cacert.patch. +- Modify no-default-cacert.patch: output /etc/ssl/ca-bundle.pem + instead of neither NULL nor /etc/ssl/certs/ as a path to cacerts + bundle (boo#967128). +- Don't apply no-default-cacert.patch on SLE. +- Require ca-certificates package (but not on SLE). +- Tests are being improperly started and actual ones require + network connection, so fix and comment out. + ------------------------------------------------------------------- Thu Dec 17 13:45:59 UTC 2015 - rjschwei@suse.com diff --git a/python-requests.spec b/python-requests.spec index fd510f8..a92897c 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,30 +16,36 @@ # +%if 0%{?suse_version} < 1120 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif Name: python-requests -Version: 2.8.1 +Version: 2.9.1 Release: 0 Summary: Awesome Python HTTP Library That's Actually Usable License: Apache-2.0 Group: Development/Languages/Python -Url: http://python-requests.org +Url: http://python-requests.org/ Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz -# PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle +# PATCH-FIX-OPENSUSE no-default-cacert.patch -- Completely ignore the internal CA bundle. Patch0: no-default-cacert.patch BuildRequires: python BuildRequires: python-devel BuildRequires: python-py BuildRequires: python-setuptools Requires: python -# really needed? +# Really needed? #Requires: python-ndg-httpsclient Requires: python-pyOpenSSL Requires: python-pyasn1 -%if 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%else +%if 0%{?suse_version} >= 1120 && !(0%{?suse_version} == 1315 && !0%{?is_opensuse}) +BuildRequires: ca-certificates +Requires: ca-certificates +%endif +%if 0%{?suse_version} >= 1120 BuildArch: noarch +%else +BuildRoot: %{_tmppath}/%{name}-%{version}-build %endif %description @@ -67,10 +73,10 @@ Features: %prep %setup -q -n requests-%{version} -# For rpmlint warning: remove shebang from python library: -sed -i '/^#!/d' ./requests/certs.py +%if 0%{?suse_version} >= 1120 && !(0%{?suse_version} == 1315 && !0%{?is_opensuse}) %patch0 -p1 -rm ./requests/cacert.pem +rm -f requests/cacert.pem +%endif %build python setup.py build @@ -79,8 +85,9 @@ python setup.py build python setup.py install \ --root=%{buildroot} --prefix=%{_prefix} -%check -python setup.py test +# Tests require network access. +# %check +# python test_requests.py %files %defattr(-,root,root) diff --git a/requests-2.8.1.tar.gz b/requests-2.8.1.tar.gz deleted file mode 100644 index 6af30b9..0000000 --- a/requests-2.8.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:84fe8d5bf4dcdcc49002446c47a146d17ac10facf00d9086659064ac43b6c25b -size 480803 diff --git a/requests-2.9.1.tar.gz b/requests-2.9.1.tar.gz new file mode 100644 index 0000000..8e8bc9b --- /dev/null +++ b/requests-2.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f +size 484252 From 609b1fd7b068cb8cebb8b64e290df9d8968cb9e951519b5bfd5aa6cdb2b111b7 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 17 Mar 2016 15:35:27 +0000 Subject: [PATCH 28/30] Accepting request 373515 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/373515 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=32 --- no-default-cacert.patch | 37 ++++++++++++++++++++++--------- python-requests.changes | 10 +++++++++ python-requests.spec | 22 ++++++++++++------ urllib3-ssl-default-context.patch | 13 +++++++++++ 4 files changed, 65 insertions(+), 17 deletions(-) create mode 100644 urllib3-ssl-default-context.patch diff --git a/no-default-cacert.patch b/no-default-cacert.patch index f543168..9991f33 100644 --- a/no-default-cacert.patch +++ b/no-default-cacert.patch @@ -1,22 +1,39 @@ ---- a/MANIFEST.in -+++ b/MANIFEST.in +Index: requests-2.9.1/MANIFEST.in +=================================================================== +--- requests-2.9.1.orig/MANIFEST.in ++++ requests-2.9.1/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 ---- a/requests/adapters.py -+++ b/requests/adapters.py -@@ -182,9 +182,6 @@ class HTTPAdapter(BaseAdapter): - if not cert_loc: - cert_loc = DEFAULT_CA_BUNDLE_PATH +Index: requests-2.9.1/requests/adapters.py +=================================================================== +--- requests-2.9.1.orig/requests/adapters.py ++++ requests-2.9.1/requests/adapters.py +@@ -179,15 +179,13 @@ class HTTPAdapter(BaseAdapter): + if verify is not True: + cert_loc = verify +- if not cert_loc: +- cert_loc = DEFAULT_CA_BUNDLE_PATH +- - if not cert_loc: - raise Exception("Could not find a suitable SSL CA certificate bundle.") - conn.cert_reqs = 'CERT_REQUIRED' - if not os.path.isdir(cert_loc): ---- a/requests/certs.py -+++ b/requests/certs.py +- if not os.path.isdir(cert_loc): ++ if cert_loc is None: ++ # use default context ++ conn.ca_certs = None ++ conn.ca_cert_dir = None ++ elif not os.path.isdir(cert_loc): + conn.ca_certs = cert_loc + else: + conn.ca_cert_dir = cert_loc +Index: requests-2.9.1/requests/certs.py +=================================================================== +--- requests-2.9.1.orig/requests/certs.py ++++ requests-2.9.1/requests/certs.py @@ -18,8 +18,9 @@ try: except ImportError: def where(): diff --git a/python-requests.changes b/python-requests.changes index d353d7a..de64e0f 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Mar 1 17:44:11 UTC 2016 - jmatejek@suse.com + +- update no-default-cacert.patch to simply pass empty CA path +- urllib3-ssl-default-context.patch: patch bundled urllib3 to behave + correctly with regard to empty CA path passed +- change urllib3 fallback requirements to Recommends +- use ca-certificates in SLE as well +- recommend ca-certificates-mozilla to have a basic certificate set + ------------------------------------------------------------------- Wed Feb 17 14:47:12 UTC 2016 - sor.alexei@meowr.ru diff --git a/python-requests.spec b/python-requests.spec index a92897c..8af1ed8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -29,19 +29,26 @@ Url: http://python-requests.org/ Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz # PATCH-FIX-OPENSUSE no-default-cacert.patch -- Completely ignore the internal CA bundle. Patch0: no-default-cacert.patch +# PATCH-FIX-UPSTREAM update urllib3 to do the proper passthrough to set_default_verify_paths +Patch1: urllib3-ssl-default-context.patch BuildRequires: python BuildRequires: python-devel BuildRequires: python-py BuildRequires: python-setuptools Requires: python -# Really needed? -#Requires: python-ndg-httpsclient -Requires: python-pyOpenSSL -Requires: python-pyasn1 -%if 0%{?suse_version} >= 1120 && !(0%{?suse_version} == 1315 && !0%{?is_opensuse}) +# requirements for pyopenssl fallback of bundled urllib3 +Recommends: python-ndg-httpsclient +Recommends: python-pyOpenSSL +Recommends: python-pyasn1 +%if 0%{?suse_version} <= 1200 +BuildRequires: openssl-certs +Requires: openssl-certs +%else BuildRequires: ca-certificates Requires: ca-certificates %endif +# for good measure, at least recommend an actual set of certificates +Recommends: ca-certificates-mozilla %if 0%{?suse_version} >= 1120 BuildArch: noarch %else @@ -73,10 +80,11 @@ Features: %prep %setup -q -n requests-%{version} -%if 0%{?suse_version} >= 1120 && !(0%{?suse_version} == 1315 && !0%{?is_opensuse}) %patch0 -p1 +pushd requests/packages +%patch1 -p1 +popd rm -f requests/cacert.pem -%endif %build python setup.py build diff --git a/urllib3-ssl-default-context.patch b/urllib3-ssl-default-context.patch new file mode 100644 index 0000000..5745aa9 --- /dev/null +++ b/urllib3-ssl-default-context.patch @@ -0,0 +1,13 @@ +Index: b/urllib3/util/ssl_.py +=================================================================== +--- a/urllib3/util/ssl_.py ++++ b/urllib3/util/ssl_.py +@@ -299,6 +299,8 @@ def ssl_wrap_socket(sock, keyfile=None, + if e.errno == errno.ENOENT: + raise SSLError(e) + raise ++ elif cert_reqs != ssl.CERT_NONE and hasattr(context, 'set_default_verify_paths'): ++ context.set_default_verify_paths() + + if certfile: + context.load_cert_chain(certfile, keyfile) From 51fd70c3cc2547bc3b8e52690b93afe820a038b87ce33e15b2d2cb106f022c29 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 7 Jun 2016 21:49:49 +0000 Subject: [PATCH 29/30] Accepting request 400255 from devel:languages:python - update to 2.10.1: * SOCKS Proxy Support! (requires PySocks; $ pip install requests[socks]) * Updated bundled urllib3 to 1.15.1. * Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict as its underlying datastore. * Don't use redirect_cache if allow_redirects=False * When passed objects that throw exceptions from ``tell()``, send them via chunked transfer encoding instead of failing. * Raise a ProxyError for proxy related connection issues. OBS-URL: https://build.opensuse.org/request/show/400255 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=33 --- python-requests.changes | 13 +++++++++++++ python-requests.spec | 4 ++-- requests-2.10.0.tar.gz | 3 +++ requests-2.9.1.tar.gz | 3 --- 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 requests-2.10.0.tar.gz delete mode 100644 requests-2.9.1.tar.gz diff --git a/python-requests.changes b/python-requests.changes index de64e0f..1dbc82a 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed May 18 08:04:41 UTC 2016 - dmueller@suse.com + +- update to 2.10.1: + * SOCKS Proxy Support! (requires PySocks; $ pip install requests[socks]) + * Updated bundled urllib3 to 1.15.1. + * Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict + as its underlying datastore. + * Don't use redirect_cache if allow_redirects=False + * When passed objects that throw exceptions from ``tell()``, send them via + chunked transfer encoding instead of failing. + * Raise a ProxyError for proxy related connection issues. + ------------------------------------------------------------------- Tue Mar 1 17:44:11 UTC 2016 - jmatejek@suse.com diff --git a/python-requests.spec b/python-requests.spec index 8af1ed8..086eefc 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -20,13 +20,13 @@ %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif Name: python-requests -Version: 2.9.1 +Version: 2.10.0 Release: 0 Summary: Awesome Python HTTP Library That's Actually Usable License: Apache-2.0 Group: Development/Languages/Python Url: http://python-requests.org/ -Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz +Source: https://pypi.io/packages/source/r/requests/requests-%{version}.tar.gz # PATCH-FIX-OPENSUSE no-default-cacert.patch -- Completely ignore the internal CA bundle. Patch0: no-default-cacert.patch # PATCH-FIX-UPSTREAM update urllib3 to do the proper passthrough to set_default_verify_paths diff --git a/requests-2.10.0.tar.gz b/requests-2.10.0.tar.gz new file mode 100644 index 0000000..5d176b0 --- /dev/null +++ b/requests-2.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63f1815788157130cee16a933b2ee184038e975f0017306d723ac326b5525b54 +size 477617 diff --git a/requests-2.9.1.tar.gz b/requests-2.9.1.tar.gz deleted file mode 100644 index 8e8bc9b..0000000 --- a/requests-2.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f -size 484252 From 6d6bf5dd5b440511d6b5a33103b5a8891135b50da490fd9c191c10dd74109be1 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 23 Jun 2016 10:58:53 +0000 Subject: [PATCH 30/30] Accepting request 404211 from openSUSE:Factory OBS-URL: https://build.opensuse.org/request/show/404211 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=34 --- python-requests.changes | 13 ------------- python-requests.spec | 4 ++-- requests-2.10.0.tar.gz | 3 --- requests-2.9.1.tar.gz | 3 +++ 4 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 requests-2.10.0.tar.gz create mode 100644 requests-2.9.1.tar.gz diff --git a/python-requests.changes b/python-requests.changes index 1dbc82a..de64e0f 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,16 +1,3 @@ -------------------------------------------------------------------- -Wed May 18 08:04:41 UTC 2016 - dmueller@suse.com - -- update to 2.10.1: - * SOCKS Proxy Support! (requires PySocks; $ pip install requests[socks]) - * Updated bundled urllib3 to 1.15.1. - * Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict - as its underlying datastore. - * Don't use redirect_cache if allow_redirects=False - * When passed objects that throw exceptions from ``tell()``, send them via - chunked transfer encoding instead of failing. - * Raise a ProxyError for proxy related connection issues. - ------------------------------------------------------------------- Tue Mar 1 17:44:11 UTC 2016 - jmatejek@suse.com diff --git a/python-requests.spec b/python-requests.spec index 086eefc..8af1ed8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -20,13 +20,13 @@ %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif Name: python-requests -Version: 2.10.0 +Version: 2.9.1 Release: 0 Summary: Awesome Python HTTP Library That's Actually Usable License: Apache-2.0 Group: Development/Languages/Python Url: http://python-requests.org/ -Source: https://pypi.io/packages/source/r/requests/requests-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz # PATCH-FIX-OPENSUSE no-default-cacert.patch -- Completely ignore the internal CA bundle. Patch0: no-default-cacert.patch # PATCH-FIX-UPSTREAM update urllib3 to do the proper passthrough to set_default_verify_paths diff --git a/requests-2.10.0.tar.gz b/requests-2.10.0.tar.gz deleted file mode 100644 index 5d176b0..0000000 --- a/requests-2.10.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63f1815788157130cee16a933b2ee184038e975f0017306d723ac326b5525b54 -size 477617 diff --git a/requests-2.9.1.tar.gz b/requests-2.9.1.tar.gz new file mode 100644 index 0000000..8e8bc9b --- /dev/null +++ b/requests-2.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f +size 484252