Hello community,
here is the log from the commit of package python-pytest-isort for
openSUSE:Factory checked in at 2020-09-04 10:57:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-isort (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-isort.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-isort"
Fri Sep 4 10:57:44 2020 rev:6 rq:829559 version:1.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-isort/python-pytest-isort.changes
2020-07-15 12:08:41.900386088 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-isort.new.3399/python-pytest-isort.changes
2020-09-04 10:59:24.906633102 +0200
@@ -1,0 +2,6 @@
+Tue Aug 25 11:53:40 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Add patch pytest6.patch to fix tests
+- Drop python2 because newer pytest is needed
+
+-------------------------------------------------------------------
New:
----
pytest6.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-isort.spec ++++++
--- /var/tmp/diff_new_pack.LPR8aW/_old 2020-09-04 10:59:26.594634006 +0200
+++ /var/tmp/diff_new_pack.LPR8aW/_new 2020-09-04 10:59:26.598634008 +0200
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-pytest-isort
Version: 1.1.0
Release: 0
@@ -24,8 +25,9 @@
License: BSD-3-Clause
URL: https://github.com/moccu/pytest-isort/
Source:
https://files.pythonhosted.org/packages/source/p/pytest-isort/pytest-isort-%{version}.tar.gz
+Patch0: pytest6.patch
BuildRequires: %{python_module isort >= 4.0}
-BuildRequires: %{python_module pytest >= 3.5}
+BuildRequires: %{python_module pytest >= 5}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -39,6 +41,7 @@
%prep
%setup -q -n pytest-isort-%{version}
+%patch0 -p1
%build
%python_build
++++++ pytest6.patch ++++++
Index: pytest-isort-1.1.0/test_isort.py
===================================================================
--- pytest-isort-1.1.0.orig/test_isort.py
+++ pytest-isort-1.1.0/test_isort.py
@@ -155,7 +155,7 @@ class TestIsortItem:
path = testdir.tmpdir
kwargs = {}
- test_obj = IsortItem(path, parent, **kwargs)
+ test_obj = IsortItem.from_parent(parent, **kwargs, fspath=path)
assert test_obj.name == path.basename
assert test_obj.parent == parent
@@ -183,7 +183,7 @@ class TestIsortItem:
path = testdir.tmpdir
kwargs = {'fspath': path}
- test_obj = IsortItem(None, parent, **kwargs)
+ test_obj = IsortItem.from_parent(parent, **kwargs)
assert test_obj.name == path.basename
assert test_obj.parent == parent