Hello community,

here is the log from the commit of package python-apipkg for openSUSE:Factory 
checked in at 2019-02-24 17:04:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-apipkg (Old)
 and      /work/SRC/openSUSE:Factory/.python-apipkg.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-apipkg"

Sun Feb 24 17:04:09 2019 rev:5 rq:674125 version:1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-apipkg/python-apipkg.changes      
2018-08-08 14:45:38.268776530 +0200
+++ /work/SRC/openSUSE:Factory/.python-apipkg.new.28833/python-apipkg.changes   
2019-02-24 17:04:11.736657626 +0100
@@ -1,0 +2,6 @@
+Tue Feb 12 14:15:58 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix build with pytest newer than 4:
+  * pytest4.patch
+
+-------------------------------------------------------------------

New:
----
  pytest4.patch

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

Other differences:
------------------
++++++ python-apipkg.spec ++++++
--- /var/tmp/diff_new_pack.ez45IE/_old  2019-02-24 17:04:12.736657151 +0100
+++ /var/tmp/diff_new_pack.ez45IE/_new  2019-02-24 17:04:12.740657149 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-apipkg
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -25,7 +25,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/pytest-dev/apipkg/
 Source:         
https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz
-BuildRequires:  %{python_module base}
+Patch0:         pytest4.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
@@ -47,6 +47,7 @@
 
 %prep
 %setup -q -n apipkg-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -56,8 +57,7 @@
 %python_expand %fdupes -s %{buildroot}%{$python_sitelib}
 
 %check
-export PYTHONPATH="${PWD}/src"
-%python_exec -mpytest
+%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python -m pytest
 
 %files %{python_files}
 %license LICENSE

++++++ pytest4.patch ++++++
--- a/test_apipkg.py
+++ b/test_apipkg.py
@@ -13,7 +13,7 @@
 class TestRealModule:
 
     def setup_class(cls):
-        cls.tmpdir = py.test.ensuretemp('test_apipkg')
+        cls.tmpdir = py.path.local('test_apipkg')
         sys.path = [str(cls.tmpdir)] + sys.path
         pkgdir = cls.tmpdir.ensure('realtest', dir=1)
 

Reply via email to