Hello community,

here is the log from the commit of package python-QtPy for openSUSE:Factory 
checked in at 2020-08-29 20:43:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-QtPy (Old)
 and      /work/SRC/openSUSE:Factory/.python-QtPy.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-QtPy"

Sat Aug 29 20:43:36 2020 rev:12 rq:830306 version:1.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-QtPy/python-QtPy.changes  2019-07-29 
17:31:29.042165541 +0200
+++ /work/SRC/openSUSE:Factory/.python-QtPy.new.3399/python-QtPy.changes        
2020-08-29 20:43:41.489498764 +0200
@@ -1,0 +2,5 @@
+Fri Aug 28 15:09:01 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- SIP is only used for PyQt4 which we don't use 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-QtPy.spec ++++++
--- /var/tmp/diff_new_pack.vE3Sky/_old  2020-08-29 20:43:42.001498979 +0200
+++ /var/tmp/diff_new_pack.vE3Sky/_new  2020-08-29 20:43:42.001498979 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-QtPy
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,16 +27,14 @@
 Source:         
https://files.pythonhosted.org/packages/source/Q/QtPy/QtPy-%{version}.tar.gz
 BuildRequires:  %{python_module qt5}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module sip}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  xvfb-run
 Requires:       python-qt5
-Requires:       python-sip
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  xvfb-run
 # /SECTION
 %python_subpackages
 
@@ -53,32 +51,30 @@
 %prep
 %setup -q -n QtPy-%{version}
 sed -i 's/\r$//' LICENSE.txt
+rm qtpy/tests/runtests.py
 
 %build
 %python_build
 
 %install
 %python_install
-%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/qtpy/tests/runtests.py
-sed -i "s|^#!%{_bindir}/env python$|#!%__$python|" 
%{buildroot}%{$python_sitelib}/qtpy/tests/runtests.py
-$python -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/qtpy/tests/
-$python -O -m compileall -d %{$python_sitelib} 
%{buildroot}%{$python_sitelib}/qtpy/tests/
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export QT_HASH_SEED=0
 export PYTHONDONTWRITEBYTECODE=1
 mkdir empty
 pushd empty
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
-xvfb-run --server-args="-screen 0 1920x1080x24" py.test-%{$python_bin_suffix} 
../qtpy/tests/
+%{python_expand # pytest-xvfb unfortunately fails here
+export PYTHONPATH=%{buildroot}%{$python_sitelib}
+xvfb-run --server-args="-screen 0 1920x1080x24" pytest-%{$python_bin_suffix} 
-v ../qtpy/tests/
 }
 popd
 
 %files %{python_files}
 %doc AUTHORS.md CHANGELOG.md README.md
 %license LICENSE.txt
-%{python_sitelib}/*
+%{python_sitelib}/qtpy
+%{python_sitelib}/QtPy-%{version}-py*.egg-info
 
 %changelog


Reply via email to