Hello community,
here is the log from the commit of package python-flask-restplus for
openSUSE:Factory checked in at 2019-11-06 14:06:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flask-restplus (Old)
and /work/SRC/openSUSE:Factory/.python-flask-restplus.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flask-restplus"
Wed Nov 6 14:06:16 2019 rev:4 rq:745429 version:0.13.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-flask-restplus/python-flask-restplus.changes
2019-09-17 13:39:54.461818956 +0200
+++
/work/SRC/openSUSE:Factory/.python-flask-restplus.new.2990/python-flask-restplus.changes
2019-11-06 14:06:16.784796945 +0100
@@ -1,0 +2,6 @@
+Tue Nov 5 10:36:18 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Build with newer pytest:
+ * pytest4.patch
+
+-------------------------------------------------------------------
New:
----
pytest4.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flask-restplus.spec ++++++
--- /var/tmp/diff_new_pack.soxjmD/_old 2019-11-06 14:06:17.676797878 +0100
+++ /var/tmp/diff_new_pack.soxjmD/_new 2019-11-06 14:06:17.680797883 +0100
@@ -26,6 +26,7 @@
Group: Development/Languages/Python
URL: https://github.com/noirbizarre/flask-restplus
Source:
https://github.com/noirbizarre/flask-restplus/archive/%{version}.tar.gz
+Patch0: pytest4.patch
BuildRequires: %{python_module Flask >= 0.8}
BuildRequires: %{python_module aniso8601 >= 0.82}
BuildRequires: %{python_module jsonschema}
@@ -46,10 +47,10 @@
BuildRequires: %{python_module Faker >= 0.7.3}
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module mock >= 2.0.0}
-BuildRequires: %{python_module pytest < 4.0}
BuildRequires: %{python_module pytest-benchmark >= 3.1.1}
BuildRequires: %{python_module pytest-flask >= 0.10.0}
BuildRequires: %{python_module pytest-mock >= 1.6.3}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tzlocal}
%endif
%ifpython2
@@ -65,6 +66,7 @@
%prep
%setup -q -n flask-restplus-%{version}
+%patch0 -p1
%build
%python_build
++++++ pytest4.patch ++++++
>From 87f08f1f19103c0000c45f1ea821230d6a6fb55f Mon Sep 17 00:00:00 2001
From: Axel Haustant <[email protected]>
Date: Tue, 13 Aug 2019 10:09:45 +0200
Subject: [PATCH] Update tooling
---
tests/conftest.py | 6 +++---
4 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index 753801c..2d21c0a 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -38,7 +38,7 @@ def app():
@pytest.fixture
def api(request, app):
- marker = request.keywords.get('api')
+ marker = request.node.get_closest_marker('api')
bpkwargs = {}
kwargs = {}
if marker:
@@ -55,8 +55,8 @@ def api(request, app):
@pytest.fixture(autouse=True)
def _push_custom_request_context(request):
- app = request.getfuncargvalue('app')
- options = request.keywords.get('request_context')
+ app = request.getfixturevalue('app')
+ options = request.node.get_closest_marker('request_context')
if options is None:
return