2020-08-07 06:17:52 +03:00
|
|
|
Summary: Awesome Python HTTP Library That's Actually Usable
|
|
|
|
Name: python-requests
|
2022-02-11 07:02:44 +03:00
|
|
|
Version: 2.27.1
|
2023-06-14 15:21:42 +03:00
|
|
|
Release: 6%{?dist}
|
2020-08-07 06:17:52 +03:00
|
|
|
License: ASL 2.0
|
|
|
|
Vendor: Microsoft Corporation
|
|
|
|
Distribution: Mariner
|
2021-01-01 00:34:54 +03:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: http://python-requests.org
|
2022-05-02 23:29:11 +03:00
|
|
|
Source0: https://github.com/requests/requests/archive/v%{version}/requests-v%{version}.tar.gz#/requests-%{version}.tar.gz
|
2023-06-14 15:21:42 +03:00
|
|
|
Patch0: CVE-2023-32681.patch
|
2021-11-25 00:06:58 +03:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Awesome Python HTTP Library That's Actually Usable
|
2021-03-02 03:26:39 +03:00
|
|
|
|
2021-11-25 00:06:58 +03:00
|
|
|
%package -n python3-requests
|
|
|
|
Summary: python-requests
|
2021-01-01 00:34:54 +03:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-xml
|
2021-11-25 00:06:58 +03:00
|
|
|
Requires: python3
|
|
|
|
Requires: python3-certifi
|
2022-02-15 11:40:59 +03:00
|
|
|
Requires: python3-charset-normalizer
|
2021-11-25 00:06:58 +03:00
|
|
|
Requires: python3-idna
|
|
|
|
Requires: python3-libs
|
|
|
|
Requires: python3-pyOpenSSL
|
|
|
|
Requires: python3-urllib3
|
2020-08-07 06:17:52 +03:00
|
|
|
%if %{with_check}
|
|
|
|
BuildRequires: curl-devel
|
2021-01-01 00:34:54 +03:00
|
|
|
BuildRequires: openssl-devel
|
2020-08-07 06:17:52 +03:00
|
|
|
BuildRequires: python3-atomicwrites
|
|
|
|
BuildRequires: python3-attrs
|
|
|
|
BuildRequires: python3-certifi
|
2022-02-15 11:40:59 +03:00
|
|
|
BuildRequires: python3-charset-normalizer
|
2020-08-07 06:17:52 +03:00
|
|
|
BuildRequires: python3-idna
|
2021-03-02 03:26:39 +03:00
|
|
|
BuildRequires: python3-pip
|
2021-01-01 00:34:54 +03:00
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-urllib3
|
2020-08-07 06:17:52 +03:00
|
|
|
%endif
|
|
|
|
|
2021-11-25 00:06:58 +03:00
|
|
|
%description -n python3-requests
|
2020-08-07 06:17:52 +03:00
|
|
|
Requests is an Apache2 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.
|
|
|
|
|
|
|
|
%prep
|
2021-11-25 00:06:58 +03:00
|
|
|
%autosetup -p 1 -n requests-%{version}
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%build
|
2021-11-25 00:06:58 +03:00
|
|
|
%py3_build
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%install
|
2021-11-25 00:06:58 +03:00
|
|
|
%py3_install
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%check
|
2021-03-02 03:26:39 +03:00
|
|
|
pip3 install tox
|
2022-10-28 19:51:14 +03:00
|
|
|
# 2.1.0+ versions of "markupsafe" make test fail.
|
|
|
|
# No fix from upstream in version 2.28.1: https://github.com/psf/requests/commit/3ed60078e2376c847ba0b0c9d564af522623c5ba
|
|
|
|
sed -i "/wheel/amarkupsafe==2.0.1" requirements-dev.txt
|
2022-03-21 16:38:53 +03:00
|
|
|
LANG=en_US.UTF-8 tox -e py%{python3_version_nodots}
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%files -n python3-requests
|
|
|
|
%defattr(-,root,root)
|
2021-01-01 00:34:54 +03:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md HISTORY.md
|
2020-08-07 06:17:52 +03:00
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|
2023-06-14 15:21:42 +03:00
|
|
|
* Mon Jun 12 2023 Suresh Thelkar <sthelkar@microsoft.com> - 2.27.1-6
|
|
|
|
- Add patch for CVE-2023-32681
|
|
|
|
|
2022-10-28 19:51:14 +03:00
|
|
|
* Thu Oct 27 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.27.1-5
|
|
|
|
- Froze dependency "markupsafe==2.0.1" to stabilize tests.
|
|
|
|
|
2022-05-02 23:29:11 +03:00
|
|
|
* Wed Apr 27 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.27.1-4
|
|
|
|
- Updating source URL.
|
|
|
|
|
2022-03-21 16:38:53 +03:00
|
|
|
* Tue Mar 15 2022 Muhammad Falak <mwani@microsoft.com> - 2.27.1-3
|
|
|
|
- Use `py%{python3_version_nodots}` instead of harcoding `py39`
|
|
|
|
|
2022-02-15 11:40:59 +03:00
|
|
|
* Mon Feb 14 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.27.1-2
|
|
|
|
- Switching dependencies: "python3-chardet" -> "python3-charset-normalizer".
|
|
|
|
|
2022-02-11 07:02:44 +03:00
|
|
|
* Thu Feb 10 2022 Muhammad Falak <mwani@microsoft.com> - 2.27.1-1
|
|
|
|
- Bump version to 2.27.1
|
|
|
|
- Use 'py39' as tox env to enable ptest
|
|
|
|
|
2021-11-25 00:06:58 +03:00
|
|
|
* Wed Oct 20 2021 Thomas Crain <thcrain@microsoft.com> - 2.22.0-3
|
|
|
|
- Remove python2 package
|
|
|
|
- Lint spec
|
|
|
|
- License verified
|
|
|
|
|
2021-03-02 03:26:39 +03:00
|
|
|
* Mon Mar 01 2021 Andrew Phelps <anphel@microsoft.com> - 2.22.0-2
|
|
|
|
- Add patches for test issues and run tests with tox
|
|
|
|
|
2021-01-01 00:34:54 +03:00
|
|
|
* Thu Dec 31 2020 Thomas Crain <thcrain@microsoft.com> - 2.22.0-1
|
|
|
|
- Upgrade to version 2.22.0
|
|
|
|
- Fix Source0 URL
|
|
|
|
|
|
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 2.20.0-4
|
2020-08-07 06:17:52 +03:00
|
|
|
- Added %%license line automatically
|
|
|
|
|
2021-01-01 00:34:54 +03:00
|
|
|
* Thu Apr 30 2020 Emre Girgin <mrgirgin@microsoft.com> - 2.20.0-3
|
2020-08-07 06:17:52 +03:00
|
|
|
- Renaming python-pytest to pytest
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Wed Apr 29 2020 Emre Girgin <mrgirgin@microsoft.com> - 2.20.0-2
|
2020-08-07 06:17:52 +03:00
|
|
|
- Renaming python-pyOpenSSL to pyOpenSSL
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Thu Mar 19 2020 Paul Monson <paulmon@microsoft.com> - 2.20.0-1
|
2020-08-07 06:17:52 +03:00
|
|
|
- Update to 2.20.0. Fix source0 URL. Fix license.
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 2.19.1-5
|
2020-08-07 06:17:52 +03:00
|
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Thu Mar 28 2019 Tapas Kundu <tkundu@vmware.com> - 2.19.1-4
|
2020-08-07 06:17:52 +03:00
|
|
|
- Fix for CVE-2018-18074
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Thu Dec 06 2018 Ashwin H <ashwinh@vmware.com> - 2.19.1-3
|
2020-08-07 06:17:52 +03:00
|
|
|
- Add %check
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Thu Sep 27 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> - 2.19.1-2
|
2020-08-07 06:17:52 +03:00
|
|
|
- Add a few missing runtime dependencies (urllib3, chardet,
|
|
|
|
- pyOpenSSL, certifi, idna).
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> - 2.19.1-1
|
2020-08-07 06:17:52 +03:00
|
|
|
- Update to version 2.19.1
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Mon Aug 07 2017 Xiaolin Li <xiaolinl@vmware.com> - 2.13.0-3
|
2020-08-07 06:17:52 +03:00
|
|
|
- Disabled check section as tests are not available
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> - 2.13.0-2
|
2020-08-07 06:17:52 +03:00
|
|
|
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Thu Mar 23 2017 Xiaolin Li <xiaolinl@vmware.com> - 2.13.0-1
|
2020-08-07 06:17:52 +03:00
|
|
|
- Updated to version 2.13.0.
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Wed Mar 01 2017 Xiaolin Li <xiaolinl@vmware.com> - 2.9.1-4
|
2020-08-07 06:17:52 +03:00
|
|
|
- Added python3 package.
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Mon Oct 04 2016 ChangLee <changlee@vmware.com> - 2.9.1-3
|
2020-08-07 06:17:52 +03:00
|
|
|
- Modified %check
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 2.9.1-2
|
2020-08-07 06:17:52 +03:00
|
|
|
- GA - Bump release of all rpms
|
2021-01-01 00:34:54 +03:00
|
|
|
|
|
|
|
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> - 2.9.1-1
|
2020-08-07 06:17:52 +03:00
|
|
|
- Updated to version 2.9.1
|
2021-01-01 00:34:54 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
|
|
|
|
- Initial packaging for Photon
|