Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12:Update
python-requests
python-requests.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-requests.spec of Package python-requests
# # spec file for package python-requests # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %if 0%{?suse_version} < 1120 %{!?python_sitearch: %global python_sitearch %(%python_exec -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif Name: python-requests Version: 2.11.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 # 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 # PATCH-FIX-UPSTREAM bsc#1111622#c6 mcepl@suse.com # Set of fixes for CVE-2018-18074 from gh#kennethreitz/requests#c45d7c49ea75, # gh#kennethreitz/requests#ea9436a5d6a5, and all changes between tags # v2.20.0 and v2.20.1 Patch2: 01-CVE-2018-18074-strip-authorization-hdrs.patch Patch3: 02-proper-handl-ports-auth-strip.patch Patch4: 03-v2.20.0...v2.20.1.patch # PATCH-FIX-UPSTREAM: CVE-2023-32681.patch bsc#1211674 Patch5: CVE-2023-32681.patch # PATCH-FIX-UPSTREAM https://github.com/psf/requests/pull/6655 Use TLS settings in selecting connection pool # modified because of python2 compatibility Patch6: CVE-2024-35195.patch BuildRequires: %{python_module base} BuildRequires: %{python_module devel} BuildRequires: %{python_module py} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros 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 %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 %python_subpackages %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} %autopatch -p1 rm -f requests/cacert.pem %build python setup.py build %python_build %install %python_install # Tests require network access. # %check # python test_requests.py %files %{python_files} %defattr(-,root,root) %license LICENSE NOTICE %doc HISTORY.rst README.rst %{python_sitelib}/requests/ %{python_sitelib}/requests-* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor