From a6d45ba3947e897c2df9f72e3bc5125ca643a158d4afa1507afa5a76f21d981c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:05:53 +0000 Subject: [PATCH] - Switch to pyproject macros. - Be more explicit about directories in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-regressions?expand=0&rev=14 --- python-pytest-regressions.changes | 6 ++++++ python-pytest-regressions.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-pytest-regressions.changes b/python-pytest-regressions.changes index 08cc51d..2a3f0f6 100644 --- a/python-pytest-regressions.changes +++ b/python-pytest-regressions.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 7 06:58:19 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Be more explicit about directories in %files. + ------------------------------------------------------------------- Thu Sep 7 09:51:38 UTC 2023 - Dirk Müller diff --git a/python-pytest-regressions.spec b/python-pytest-regressions.spec index 0db25a7..bff533f 100644 --- a/python-pytest-regressions.spec +++ b/python-pytest-regressions.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-regressions # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,8 +25,10 @@ Summary: Python fixtures to write regression tests URL: https://github.com/ESSS/pytest-regressions Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/pytest-regressions/pytest-regressions-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest >= 6.2.0} @@ -58,10 +60,10 @@ Python fixtures to write regression tests. %autosetup -p1 -n pytest-regressions-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -79,6 +81,7 @@ donttest+=" or test_different_data_types" %files %{python_files} %doc CHANGELOG.rst README.rst %license LICENSE -%{python_sitelib}/pytest_regressions* +%{python_sitelib}/pytest_regressions +%{python_sitelib}/pytest_regressions-%{version}.dist-info %changelog