Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:buildbot-worker
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) 2023 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/ # Name: python-requests Version: 2.20.0 Release: 0 Summary: HTTP library, written in Python, for human beings License: Apache-2.0 URL: https://pypi.io/project/requests Source0: https://github.com/requests/requests/archive/v%{version}/requests-v%{version}.tar.gz # Explicitly use the system certificates in ca-certificates. # https://bugzilla.redhat.com/show_bug.cgi?id=904614 Patch0: patch-requests-certs.py-to-use-the-system-CA-bundle.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1450608 Patch2: Remove-tests-that-use-the-tarpit.patch # Use 127.0.0.1 not localhost for socket.bind() in the Server test # class, to fix tests in Koji's no-network environment # This probably isn't really upstreamable, because I guess localhost # could technically be IPv6 or something, and our no-network env is # a pretty odd one so this is a niche requirement. Patch3: requests-2.12.4-tests_nonet.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1567862 Patch4: Don-t-inject-pyopenssl-into-urllib3.patch # Skip all tests needing httpbin # httpbin has too many dependencies to be shipped in RHEL just for # build-time package tests Patch5: Skip-all-tests-needing-httpbin.patch # Properly handle default ports when stripping the authorization header. # This fixes a regression introduced with fixing CVE-2018-18074. # Fixed upstream: https://github.com/psf/requests/pull/4851 # Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1758261 Patch6: properly-handle-default-ports-in-auth-stripping.patch Patch7: use-higher-url.patch BuildArch: noarch %description Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers. %package -n python3-requests %{?python_provide:%python_provide python3-requests} Summary: HTTP library, written in Python, for human beings BuildRequires: python3-chardet BuildRequires: python3-devel BuildRequires: python3-idna BuildRequires: python3-urllib3 Requires: python3-chardet Requires: python3-idna Requires: python3-urllib3 BuildRequires: python3-pytest BuildRequires: python3-pytest-mock %description -n python3-requests Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers. %prep %autosetup -p1 -n requests-%{version} # Unbundle the certificate bundle from mozilla. rm -rf requests/cacert.pem # env shebang in nonexecutable file sed -i '/#!\/usr\/.*python/d' requests/certs.py %build %py3_build %install %py3_install %files -n python3-requests %license LICENSE %doc README.md HISTORY.md %{python3_sitelib}/*.egg-info %{python3_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