From df6b02173eda74489d6807aa255f74cb725f4a567a5bed299de54e362283d284 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 1 May 2025 07:03:24 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-services?expand=0&rev=18 --- python-pytest-services.changes | 6 ++++++ python-pytest-services.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-pytest-services.changes b/python-pytest-services.changes index 9961c1f..ca76e1e 100644 --- a/python-pytest-services.changes +++ b/python-pytest-services.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 1 07:02:59 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sat Jun 10 09:24:57 UTC 2023 - ecsos diff --git a/python-pytest-services.spec b/python-pytest-services.spec index b11134a..f627968 100644 --- a/python-pytest-services.spec +++ b/python-pytest-services.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-services # -# 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 @@ -24,12 +24,14 @@ Summary: Services plugin for pytest testing framework License: MIT URL: https://github.com/pytest-dev/pytest-services Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pylibmc} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module zc.lockfile >= 2.0} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -58,10 +60,10 @@ processes for your tests with pytest. sed -i -e '/import MySQLdb/d' tests/test_plugin.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -71,6 +73,7 @@ sed -i -e '/import MySQLdb/d' tests/test_plugin.py %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/pytest_services +%{python_sitelib}/pytest_services-%{version}.dist-info %changelog