commit python3-requests.4636 for openSUSE:13.1:Update
Hello community, here is the log from the commit of package python3-requests.4636 for openSUSE:13.1:Update checked in at 2016-05-17 10:58:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:13.1:Update/python3-requests.4636 (Old) and /work/SRC/openSUSE:13.1:Update/.python3-requests.4636.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-requests.4636" Changes: -------- New Changes file: --- /dev/null 2016-04-07 01:36:33.300037506 +0200 +++ /work/SRC/openSUSE:13.1:Update/.python3-requests.4636.new/python3-requests.changes 2016-05-17 10:58:49.000000000 +0200 @@ -0,0 +1,58 @@ +------------------------------------------------------------------- +Thu May 5 07:53:03 UTC 2016 - federico@suse.com + +- Removed no-default-cacert.patch +- Added python3-requests-boo912903-default-cacert.patch for bug + 912903. This makes https requests use verification based on + openSUSE's default CA bundle. This didn't work at all before. + +------------------------------------------------------------------- +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 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 + New: ---- python3-requests-boo912903-default-cacert.patch python3-requests.changes python3-requests.spec requests-1.2.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-requests.spec ++++++ # # spec file for package python3-requests # # 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 # 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 # PATCH-FIX-OPENSUSE python3-requests-boo912903-default-cacert.patch boo912903 federico@suse.com -- completely ignore the internal CA bundle; use openSUSE's system CA bundle Patch0: python3-requests-boo912903-default-cacert.patch 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 %patch0 -p1 rm ./requests/cacert.pem %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 ++++++ python3-requests-boo912903-default-cacert.patch ++++++
From ebc235e9cce6e8c2eb213ccc30bf1f7b6ec43d16 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero
Date: Tue, 3 May 2016 09:50:59 -0500 Subject: [PATCH] Use the system's CA for TLS verification
https://bugzilla.opensuse.org/show_bug.cgi?id=912903 The version of python3-requests in openSUSE 13.2 does not have an urllib with support for the CA as a directory full of PEM files; it wants the CA to be in a single file (support for that appeared upstream in commit 35170e180e45126b6cb9da5d9f93c41f7b77ef58, but depends on a newer bundled urllib than what we have here). So, we simply point the default location to openSUSE's own, instead of the bundled CA that comes with python3-requests. --- MANIFEST.in | 2 +- requests/certs.py | 5 +++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 439de49..7888aee 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt requests/cacert.pem +include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt diff --git a/requests/certs.py b/requests/certs.py index bc00826..4306de8 100644 --- a/requests/certs.py +++ b/requests/certs.py @@ -17,8 +17,9 @@ import os.path 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/setup.py b/setup.py index 7de446f..2d22687 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( author_email='me@kennethreitz.com', url='http://python-requests.org', packages=packages, - package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']}, + package_data={'': ['LICENSE', 'NOTICE']}, package_dir={'requests': 'requests'}, include_package_data=True, install_requires=requires,
participants (1)
-
root@hilbert.suse.de