Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-requests
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 6
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
python3-requests.spec
@@ -0,0 +1,490 @@ +# +# 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/ +# + +%{?!py3_ver: %global py3_ver 3.4} +%{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} +%{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} + +%define urllib3_version 1.13.1 + +Name: python3-requests +Version: 2.9.1 +Release: 48.1 +Summary: Awesome Python HTTP Library That's Actually Usable +License: Apache-2.0 +Group: Development/Languages/Python +Url: http://python-requests.org/ +Source: https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz +Source100: PACKAGING_NOTES +Source101: set_urllib3_version.sh +# 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: ca-certificates +BuildRequires: python3-base +BuildRequires: python3-chardet +BuildRequires: python3-devel +BuildRequires: python3-py +BuildRequires: python3-urllib3 >= %{urllib3_version} +Requires: python3-chardet +Requires: python3-py +Requires: python3-urllib3 >= %{urllib3_version} +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} +%patch0 -p1 +%patch1 -p1 +rm -f requests/cacert.pem + +# fill out required urllib3 version +sed -i s/#URLLIB3VERSION#/%{urllib3_version}/ setup.py +echo "urllib3 >= %{urllib3_version}" >> requirements.txt + +%build +python3 setup.py build + +%install +python3 setup.py install \ + --root=%{buildroot} --prefix=%{_prefix} +# check that urllib3 is not installed +test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3 + +%files +%defattr(-,root,root) +%doc HISTORY.rst LICENSE NOTICE README.rst +%{python3_sitelib}/requests/ +%{python3_sitelib}/requests-*.egg-info + +%changelog +* Sun May 8 2016 arun@gmx.de +- specfile: + * changed to https for source url + * updated source url to files.pythonhosted.org +* Mon Mar 7 2016 jmatejek@suse.com +- modify no-default-cacert.patch again, to perform passthrough + of empty parameters if cert path is not specified +- modify requests-do-not-use-bundle.patch to use built-in facilities + to exclude the bundles, and to keep requests.packages +- modify patches to change setup.py to facilitate their functions +- reenable tests, add python3-pytest as requirement +- recommend ca-certificates-mozilla, require ca-certificates + everywhere (also apply no-default-cacert everywhere) +- make sure requirements in egg-info are set right, and that + the package depends on good-enough version of urllib3 + (see PACKAGING_NOTES for details) +* Wed Feb 17 2016 sor.alexei@meowr.ru +- 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 patch bundled urllib3, as it's being removed. +- Require ca-certificates package (but not on SLE). +- Remove no-default-cacert-sles.patch: is more compatible to use + the bundled cacert bundle on SLE. +- Copy requires from python-requests (added by Dirk Mueller). +* Tue Dec 22 2015 arun@gmx.de +- specfile: + * updated patches +- update to version 2.9.1: + * Resolve regression introduced in 2.9.0 that made it impossible to + send binary strings as bodies in Python 3. + * Fixed errors when calculating cookie expiration dates in certain + locales. + * Updated bundled urllib3 to 1.13.1. +- changes from version 2.9.0: + * 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. + * Updated urllib3 to 1.13. +* Thu Oct 15 2015 toddrme2178@gmail.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. +- Rebase requests-do-not-use-bundle.patch +- Disable tests. They fail due to a lack of network access. +* Fri Oct 9 2015 sor.alexei@meowr.ru +- Use (rebased) fix from Ludwig Nussel for no-default-cacert.patch + (do not hardcode a ca cert location). +- Only indicate Apache2 license: no other licenses are present. +- Do not apply no-default-cacert-sles.patch on openSUSE Leap 42.x. +- Fix requests-do-not-use-bundle.patch. +- Small spec cleanup. +* Thu Oct 8 2015 arun@gmx.de +- updated requests-do-not-use-bundle.patch +- update to version 2.8.0: + * Requests now supports per-host proxies. This allows the proxies + dictionary to have entries of the form {'<scheme>://<hostname>': + '<proxy>'}. Host-specific proxies will be used in preference to the + previously-supported scheme-specific ones, but the previous syntax + will continue to work. + * Response.raise_for_status now prints the URL that failed as part of + the exception message. + * requests.utils.get_netrc_auth now takes an raise_errors kwarg, + defaulting to False. When True, errors parsing .netrc files cause + exceptions to be thrown. + * Change to bundled projects import logic to make it easier to + unbundle requests downstream. + * Changed the default User-Agent string to avoid leaking data on + Linux: now contains only the requests version. + * 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. + * Fixed problem where httplib.BadStatusLine would get raised if