Accepting request 986269 from home:stroeder:branches:devel:languages:python

update to 2.28.1

Note that module now requires Python 3.7+ and thus Leap is not supported anymore.

OBS-URL: https://build.opensuse.org/request/show/986269
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=158
This commit is contained in:
Matej Cepl 2022-07-02 16:29:47 +00:00 committed by Git OBS Bridge
parent 00512a584a
commit 2d3bd7aa57
5 changed files with 45 additions and 15 deletions

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Wed Jun 29 19:11:41 UTC 2022 - Michael Ströder <michael@stroeder.com>
- rebased requests-no-hardcoded-version.patch
- update to 2.28.1
* 2.28.1 (2022-06-29)
- Improvements
+ Speed optimization in iter_content with transition to yield from. (#6170)
- Dependencies
+ Added support for chardet 5.0.0 (#6179)
+ Added support for charset-normalizer 2.1.0 (#6169)
* 2.28.0 (2022-06-09)
- Deprecations
+ warning Requests has officially dropped support for Python 2.7. warning (#6091)
+ Requests has officially dropped support for Python 3.6 (including pypy3.6). (#6091)
- Improvements
+ Wrap JSON parsing issues in Request's JSONDecodeError for payloads
without an encoding to make json() API consistent. (#6097)
+ Parse header components consistently, raising an InvalidHeader error in all invalid cases. (#6154)
+ Added provisional 3.11 support with current beta build. (#6155)
+ Requests got a makeover and we decided to paint it black. (#6095)
- Bugfixes
+ Fixed bug where setting CURL_CA_BUNDLE to an empty string would disable
cert verification. All Requests 2.x versions before 2.28.0 are affected. (#6074)
+ Fixed urllib3 exception leak, wrapping urllib3.exceptions.SSLError with
requests.exceptions.SSLError for content and iter_content. (#6057)
+ Fixed issue where invalid Windows registry entires caused proxy resolution
to raise an exception rather than ignoring the entry. (#6149)
+ Fixed issue where entire payload could be included in the error
message for JSONDecodeError. (#6036)
-------------------------------------------------------------------
Wed Jan 5 17:09:11 UTC 2022 - Michael Ströder <michael@stroeder.com>

View File

@ -26,7 +26,7 @@
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests%{psuffix}
Version: 2.27.1
Version: 2.28.1
Release: 0
Summary: Python HTTP Library
License: Apache-2.0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61
size 106758

3
requests-2.28.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983
size 109805

View File

@ -1,13 +1,12 @@
Index: requests-2.25.0/setup.py
===================================================================
--- requests-2.25.0.orig/setup.py
+++ requests-2.25.0/setup.py
@@ -49,7 +49,7 @@ requires = [
diff -ur requests-2.28.1.orig/setup.py requests-2.28.1/setup.py
--- requests-2.28.1.orig/setup.py 2022-06-29 17:09:45.000000000 +0200
+++ requests-2.28.1/setup.py 2022-06-29 21:15:48.428104387 +0200
@@ -65,7 +65,7 @@
"certifi>=2017.4.17",
]
test_requirements = [
- 'pytest-httpbin==0.0.7',
+ 'pytest-httpbin>=0.0.7',
'pytest-cov',
'pytest-mock',
'pytest-xdist',
- "pytest-httpbin==0.0.7",
+ "pytest-httpbin>=0.0.7",
"pytest-cov",
"pytest-mock",
"pytest-xdist",