Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-cairocffi for
openSUSE:Factory checked in at 2022-08-21 14:10:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cairocffi (Old)
and /work/SRC/openSUSE:Factory/.python-cairocffi.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cairocffi"
Sun Aug 21 14:10:48 2022 rev:20 rq:998293 version:1.3.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cairocffi/python-cairocffi.changes
2022-01-13 00:22:36.503940516 +0100
+++
/work/SRC/openSUSE:Factory/.python-cairocffi.new.2083/python-cairocffi.changes
2022-08-21 14:10:49.106399040 +0200
@@ -1,0 +2,14 @@
+Fri Aug 19 15:40:07 UTC 2022 - Ben Greiner <[email protected]>
+
+- Reflect in the specfile that Python 3.6 is no longer supported
+ upstream
+- Unskip python38: required by other packages
+- Remove python36 flavor exceptions from specfile
+
+-------------------------------------------------------------------
+Sun Aug 7 12:09:38 UTC 2022 - John Vandenberg <[email protected]>
+
+- Move tests out of runtime package
+- Enable xcb tests
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cairocffi.spec ++++++
--- /var/tmp/diff_new_pack.3d7ToF/_old 2022-08-21 14:10:49.646400528 +0200
+++ /var/tmp/diff_new_pack.3d7ToF/_new 2022-08-21 14:10:49.650400539 +0200
@@ -16,8 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
Name: python-cairocffi
Version: 1.3.0
Release: 0
@@ -26,21 +24,24 @@
Group: Development/Languages/Python
URL: https://github.com/Kozea/cairocffi
Source:
https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz
+BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module cffi >= 1.1.0}
-BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 39.2.0}
BuildRequires: %{python_module xcffib >= 0.3.2}
BuildRequires: cairo
-BuildRequires: dejavu-fonts
-BuildRequires: fdupes
-BuildRequires: gdk-pixbuf
-BuildRequires: python-rpm-macros
-BuildRequires: %{python_module numpy if (%python-base without python36-base)}
Requires: cairo
-Requires: python
Requires: python-cffi >= 1.1.0
Requires: python-xcffib >= 0.3.2
BuildArch: noarch
+# SECTION test requirements
+BuildRequires: %{python_module numpy}
+BuildRequires: %{python_module pytest}
+BuildRequires: dejavu-fonts
+BuildRequires: fdupes
+BuildRequires: gdk-pixbuf
+BuildRequires: python-rpm-macros
+BuildRequires: xvfb-run
+# /SECTION
%python_subpackages
%description
@@ -72,6 +73,11 @@
-e '/pytest-cov$/ d' \
-e '/^addopts.*flake8.*isort$/ d' setup.cfg
+mkdir tests
+mv cairocffi/test_*.py tests/
+sed -i 's/^from \. /from cairocffi /' tests/*.py
+sed -i 's/^from \./from cairocffi./' tests/*.py
+
%build
%python_build
@@ -80,27 +86,22 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# Don't test with NumPy in the python36 flavor, because python36-numpy is not
in TW anymore
-python36_ignore="--ignore
%{buildroot}%{python36_sitelib}/cairocffi/test_numpy.py"
-%pytest --pyargs cairocffi ${$python_ignore}
+cd tests/
+%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" xvfb-run
--server-args="-screen 0 1280x1024x16" $python -B -m pytest
%files %{python_files}
%license LICENSE
%doc README.rst
-%{python_sitelib}/cairocffi-%{version}-py*.egg-info
-%{python_sitelib}/cairocffi/
-%exclude %{python_sitelib}/cairocffi/test_pixbuf.py*
+%{python_sitelib}/cairocffi-%{version}*-info
+%{python_sitelib}/cairocffi
%exclude %{python_sitelib}/cairocffi/pixbuf.py*
%ifpycache
-%exclude %{python_sitelib}/cairocffi/__pycache__/test_pixbuf.*
%exclude %{python_sitelib}/cairocffi/__pycache__/pixbuf.*
%endif
%files %{python_files pixbuf}
%{python_sitelib}/cairocffi/pixbuf.py*
-%{python_sitelib}/cairocffi/test_pixbuf.py*
%ifpycache
-%{python_sitelib}/cairocffi/__pycache__/test_pixbuf.*
%{python_sitelib}/cairocffi/__pycache__/pixbuf.*
%endif