Hello community,
here is the log from the commit of package python-requests for openSUSE:Factory
checked in at 2019-04-26 22:41:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests (Old)
and /work/SRC/openSUSE:Factory/.python-requests.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requests"
Fri Apr 26 22:41:57 2019 rev:58 rq:697101 version:2.21.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-requests/python-requests.changes
2019-02-26 22:15:47.582203315 +0100
+++
/work/SRC/openSUSE:Factory/.python-requests.new.5536/python-requests.changes
2019-04-26 22:41:58.553719347 +0200
@@ -1,0 +2,7 @@
+Tue Apr 23 10:45:08 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Do not hardcode version requirements in setup.py allowing us to
+ update and verify functionality on our own:
+ * requests-no-hardcoded-version.patch
+
+-------------------------------------------------------------------
New:
----
requests-no-hardcoded-version.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-requests.spec ++++++
--- /var/tmp/diff_new_pack.8RBRfq/_old 2019-04-26 22:42:01.225717984 +0200
+++ /var/tmp/diff_new_pack.8RBRfq/_new 2019-04-26 22:42:01.225717984 +0200
@@ -33,6 +33,8 @@
Group: Development/Languages/Python
URL: http://python-requests.org/
Source:
https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz
+# PATCH-FIX-SUSE: do not hardcode versions in setup.py/requirements
+Patch0: requests-no-hardcoded-version.patch
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module urllib3 >= 1.21.1}
@@ -61,6 +63,7 @@
%endif
%if %{with test}
BuildRequires: %{python_module PySocks >= 1.5.6}
+BuildRequires: %{python_module brotlipy}
BuildRequires: %{python_module chardet >= 3.0.2}
BuildRequires: %{python_module idna >= 2.5}
BuildRequires: %{python_module pytest-httpbin >= 0.0.7}
@@ -90,6 +93,7 @@
%prep
%setup -q -n requests-%{version}
+%patch0 -p1
# drop shebang from certs.py
sed -i '1s/^#!.*$//' requests/certs.py
@@ -116,7 +120,7 @@
touch Pipfile
# exclude tests connecting to TARPIT
# exclude test_https_warnings as is flaky
-%python_exec -m pytest tests -k "not (TestTimeout or connect or
test_https_warnings)"
+%python_exec -m pytest -v tests -k "not (TestTimeout or connect or
test_https_warnings)"
%endif
%if !%{with test}
++++++ requests-no-hardcoded-version.patch ++++++
Index: requests-2.21.0/setup.py
===================================================================
--- requests-2.21.0.orig/setup.py
+++ requests-2.21.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.25',
+ 'chardet>=3.0.2',
+ 'idna>=2.5',
+ 'urllib3>=1.21.1',
'certifi>=2017.4.17'
]
test_requirements = [
- 'pytest-httpbin==0.0.7',
+ 'pytest-httpbin>=0.0.7',
'pytest-cov',
'pytest-mock',
'pytest-xdist',