Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-urllib3
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Added
python3-urllib3.spec
@@ -0,0 +1,133 @@ +# +# spec file for package python3-urllib3 +# +# 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/} + +Name: python3-urllib3 +Version: 1.15.1 +Release: 27.1 +Summary: HTTP library with thread-safe connection pooling, file post, and more +License: MIT +Group: Development/Languages/Python +Url: http://urllib3.readthedocs.org/ +Source: https://files.pythonhosted.org/packages/source/u/urllib3/urllib3-%{version}.tar.gz +# PATCH-FIX-OPENSUSE speilicke@suse.com -- We need no coverage report +Patch1: urllib3-test-no-coverage.patch +# PATCH-FEATURE-UPSTREAM -- use set_default_verify_paths() if no certificate path is supplied +Patch2: urllib3-ssl-default-context.patch +# PATCH-FIX-OPENSUSE -- do not use unsupported SSLv3 in tests +Patch3: urllib3-test-ssl-drop-sslv3.patch +BuildRequires: python3-devel +BuildRequires: python3-base +BuildArch: noarch + +%description +Highlights + +- Re-use the same socket connection for multiple requests + (HTTPConnectionPool and HTTPSConnectionPool) + (with optional client-side certificate verification). +- File posting (encode_multipart_formdata). +- Built-in redirection and retries (optional). +- Supports gzip and deflate decoding. +- Thread-safe and sanity-safe. +- Works with AppEngine, gevent, and eventlib. +- Tested on Python 2.6+ and Python 3.3+, 100% unit test coverage. +- Small and easy to understand codebase perfect for extending and building upon. + For a more comprehensive solution, have a look at + Requests which is also powered by urllib3. + +%prep +%setup -q -n urllib3-%{version} +%patch1 -p1 +%patch2 -p1 +%if 0%{?suse_version} && 0%{?suse_version} > 1310 +%patch3 -p1 +%endif + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst +%{python3_sitelib}/urllib3 +%{python3_sitelib}/urllib3-%{version}-py%{py3_ver}.egg-info + +%changelog +* Sun May 8 2016 arun@gmx.de +- specfile: + * updated source url to files.pythonhosted.org +* Tue Apr 12 2016 arun@gmx.de +- update to version 1.15.1: + * Fix packaging to include backports module. (Issue #841) +* Sat Apr 9 2016 arun@gmx.de +- specfile: + * add setuptools +- update to version 1.15: + * Added Retry(raise_on_status=False). (Issue #720) + * Always use setuptools, no more distutils fallback. (Issue #785) + * Dropped support for Python 3.2. (Issue #786) + * Chunked transfer encoding when requesting with "chunked=True". + (Issue #790) + * Fixed regression with IPv6 port parsing. (Issue #801) + * Append SNIMissingWarning messages to allow users to specify it in + the PYTHONWARNINGS environment variable. (Issue #816) + * Handle unicode headers in Py2. (Issue #818) + * Log certificate when there is a hostname mismatch. (Issue #820) + * Preserve order of request/response headers. (Issue #821) +* Tue Apr 5 2016 hpj@urpla.net +- don't apply urllib3-test-ssl-drop-sslv3.patch for openSUSE 13.1 + and below: PROTOCOL_TLSv1_2 is not available there +* Wed Mar 2 2016 jmatejek@suse.com +- synchronize spec file and patches with python2 version: + * enable most tests + * urllib3-ssl-default-context.patch: use ssl's default context + for native ssl the same way it is used for pyopenssl + * urllib3-test-ssl-drop-sslv3.patch: do not use SSLv3 protocol + * drop unneeded 0001-Don-t-pin-dependency-to-exact-version.patch +- not adding optional dependencies of the pyopenssl module, because + ndg-httpsclient doesn't exist yet, so the pyopenssl module is unusable +* Thu Dec 31 2015 arun@gmx.de +- update to version 1.14: + * contrib: SOCKS proxy support! (Issue #762) + * Fixed AppEngine handling of transfer-encoding header and bug + in Timeout defaults checking. (Issue #763) +* Sun Dec 20 2015 arun@gmx.de +- update to version 1.13.1: + * Fixed regression in IPv6 + SSL for match_hostname. (Issue #761) +* Tue Dec 15 2015 arun@gmx.de +- specfile: + * updated no-coverage patch +- update to version 1.13: + * Fixed "pip install urllib3[secure]" on modern pip. (Issue #706) + * pyopenssl: Fixed SSL3_WRITE_PENDING error. (Issue #717) + * pyopenssl: Support for TLSv1.1 and TLSv1.2. (Issue #696) + * Close connections more defensively on exception. (Issue #734) + * Adjusted "read_chunked" to handle gzipped, chunk-encoded bodies without + repeatedly flushing the decoder, to function better on Jython. (Issue #743) + * Accept "ca_cert_dir" for SSL-related PoolManager configuration. (Issue #758) +* Fri Sep 25 2015 p.drouand@gmail.com +- Initial release (version 1.12) +- Add patches + * 0001-Don-t-pin-dependency-to-exact-version.patch + * urllib3-test-no-coverage.patch