- update to 2.23.0

- dropped merged_pr_5049.patch
- refreshed requests-no-hardcoded-version.patch 
 * Remove defunct reference to prefetch in Session __attrs__
 * Requests no longer outputs password in basic auth usage warning

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=138
This commit is contained in:
Ondřej Súkup 2020-02-24 15:21:03 +00:00 committed by Git OBS Bridge
parent 316a0b7f87
commit c3e7e42530
6 changed files with 20 additions and 40 deletions

View File

@ -1,27 +0,0 @@
From dc75b3ca0b4c95648eb07b92cb414394d99c13a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Mon, 8 Apr 2019 18:04:22 +0200
Subject: [PATCH] Support pytest 4
Fixes https://github.com/kennethreitz/requests/issues/5048
See https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize
---
setup.py | 2 +-
tests/test_utils.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 59b0b0efa..62c51494d 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -33,7 +33,8 @@ class TestSuperLen:
'stream, value', (
(StringIO.StringIO, 'Test'),
(BytesIO, b'Test'),
- pytest.mark.skipif('cStringIO is None')((cStringIO, 'Test')),
+ pytest.param(cStringIO, 'Test',
+ marks=pytest.mark.skipif('cStringIO is None')),
))
def test_io_streams(self, stream, value):
"""Ensures that we properly deal with different kinds of IO streams."""

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Feb 24 15:19:16 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 2.23.0
- dropped merged_pr_5049.patch
- refreshed requests-no-hardcoded-version.patch
* Remove defunct reference to prefetch in Session __attrs__
* Requests no longer outputs password in basic auth usage warning
-------------------------------------------------------------------
Sat Dec 14 22:48:50 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-requests
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,7 +26,7 @@
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests%{psuffix}
Version: 2.22.0
Version: 2.23.0
Release: 0
Summary: Python HTTP Library
License: Apache-2.0
@ -36,7 +36,6 @@ Source: https://files.pythonhosted.org/packages/source/r/requests/reques
# PATCH-FIX-SUSE: do not hardcode versions in setup.py/requirements
Patch0: requests-no-hardcoded-version.patch
Patch1: pr_5251-pytest5.patch
Patch2: merged_pr_5049.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4
size 113406

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

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

View File

@ -1,17 +1,16 @@
Index: requests-2.22.0/setup.py
Index: requests-2.23.0/setup.py
===================================================================
--- requests-2.22.0.orig/setup.py
+++ requests-2.22.0/setup.py
--- requests-2.23.0.orig/setup.py
+++ requests-2.23.0/setup.py
@@ -42,14 +42,14 @@ if sys.argv[-1] == 'publish':
packages = ['requests']
requires = [
- 'chardet>=3.0.2,<3.1.0',
- 'idna>=2.5,<2.9',
- 'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',
- 'chardet>=3.0.2,<4',
- 'idna>=2.5,<3',
+ 'chardet>=3.0.2',
+ 'idna>=2.5',
+ 'urllib3>=1.21.1',
'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',
'certifi>=2017.4.17'
]