Hello community,

here is the log from the commit of package python-cairocffi for 
openSUSE:Factory checked in at 2020-12-12 20:29:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cairocffi (Old)
 and      /work/SRC/openSUSE:Factory/.python-cairocffi.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cairocffi"

Sat Dec 12 20:29:04 2020 rev:16 rq:853745 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cairocffi/python-cairocffi.changes        
2020-11-02 09:39:43.269571223 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-cairocffi.new.2328/python-cairocffi.changes  
    2020-12-12 20:31:25.941793696 +0100
@@ -1,0 +2,8 @@
+Mon Dec  7 12:34:39 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Replace obsolete pytest-runner with %pytest macro to avoid
+  pulling in _build directories of other flavors during testing
+  * gh#Kozea/cairocffi#171
+  * gh#openSUSE/python-rpm-macros#66
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cairocffi.spec ++++++
--- /var/tmp/diff_new_pack.fa8IXo/_old  2020-12-12 20:31:26.653794439 +0100
+++ /var/tmp/diff_new_pack.fa8IXo/_new  2020-12-12 20:31:26.657794443 +0100
@@ -28,7 +28,7 @@
 Source:         
https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz
 BuildRequires:  %{python_module cffi >= 1.1.0}
 BuildRequires:  %{python_module numpy}
-BuildRequires:  %{python_module pytest-runner}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools >= 39.2.0}
 BuildRequires:  %{python_module xcffib >= 0.3.2}
 BuildRequires:  cairo
@@ -65,6 +65,12 @@
 
 %prep
 %setup -q -n cairocffi-%{version}
+# disable development tools for unit tests. Remove deprecated pytest-runner
+sed -i -e 's/pytest-runner$/pytest/' \
+       -e '/pytest-flake8$/ d' \
+       -e '/pytest-isort$/ d' \
+       -e '/pytest-cov$/ d' \
+       -e '/^addopts.*flake8.*isort$/ d' setup.cfg
 
 %build
 %python_build
@@ -74,9 +80,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitearch} 
 
 %check
-sed -i '/^addopts/d' setup.cfg
-sed -i -e '/pytest-flake8/d' -e '/pytest-isort/d' -e '/pytest-cov/d' setup.cfg
-%python_expand $python setup.py test
+%pytest --pyargs cairocffi
 
 %files %{python_files}
 %license LICENSE
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to