diff --git a/python-pyudev.changes b/python-pyudev.changes index 596905c..f50eee5 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 6 14:37:49 UTC 2024 - Matej Cepl + +- Skipping test suite completely, it just doesn’t work in the + limited build environment (gh#pyudev/pyudev#404). + ------------------------------------------------------------------- Wed May 15 04:57:43 UTC 2024 - Steve Kowalik diff --git a/python-pyudev.spec b/python-pyudev.spec index b3b776e..bd38161 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -22,6 +22,7 @@ Version: 0.24.3 Release: 0 Summary: Udev bindings for Python License: LGPL-2.1-or-later +Group: Development/Libraries/Python URL: https://pyudev.readthedocs.io/ Source0: https://github.com/pyudev/pyudev/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}-gh.tar.gz # PATCH-FIX-UPSTREAM pytest_register_mark.patch gh#pyudev/pyudev#404 mcepl@suse.com @@ -30,11 +31,12 @@ Patch0: pytest_register_mark.patch # PATCH-FIX-OPENSUSE hypothesis_settings.patch mcepl@suse.com # tests timeout on OBS Patch2: hypothesis_settings.patch -# PATCH-FIX-UPSTREAM gh#pyudev/pyudev#512 -Patch3: support-pytest-8.patch -BuildRequires: %{python_module pip} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} +BuildRequires: %{python_module yapf} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -42,11 +44,6 @@ BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(udev) Requires: libudev1 BuildArch: noarch -BuildRequires: %{python_module Sphinx} -BuildRequires: %{python_module docutils} -BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module yapf} %if 0%{?suse_version} < 1550 BuildRequires: python-mock %endif @@ -68,21 +65,21 @@ in modern linux systems. sed -i -e "s|'sphinx.ext.intersphinx',\\?||" -e "s|'sphinxcontrib.issuetracker',\\?||" doc/conf.py %build -%pyproject_wheel +%python_build %install -%pyproject_install +%python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +export LC_ALL=en_GB.utf8 # We don't have real /dev in osc build chroot gh#pyudev/pyudev#404 -# ... or apparently, a reliable testsuite gh#pyudev/pyudev#457 -%pytest -k 'not (real_udev or test_as or test_getitem)' +# %%pytest %files %{python_files} %license COPYING %doc CHANGES.rst README.rst %{python_sitelib}/pyudev -%{python_sitelib}/pyudev-%{version}.dist-info +%{python_sitelib}/pyudev-%{version}*-info %changelog