From e33b5c545c1a971aa4f70cbbd90804e16808e1b412dcaa387c12c183c0e7780a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:02:28 +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-dependency?expand=0&rev=10 --- python-pytest-dependency.changes | 6 ++++++ python-pytest-dependency.spec | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/python-pytest-dependency.changes b/python-pytest-dependency.changes index 10f6482..f999f6d 100644 --- a/python-pytest-dependency.changes +++ b/python-pytest-dependency.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 7 06:48:24 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Jan 9 22:07:50 UTC 2024 - Dirk Müller diff --git a/python-pytest-dependency.spec b/python-pytest-dependency.spec index 47a5123..9c25ccf 100644 --- a/python-pytest-dependency.spec +++ b/python-pytest-dependency.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-dependency # -# Copyright (c) 2024 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,7 +24,9 @@ Summary: Manage dependencies of tests License: Apache-2.0 URL: https://github.com/RKrahl/pytest-dependency Source: https://files.pythonhosted.org/packages/source/p/pytest-dependency/pytest-dependency-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module pytest >= 3.6.0} @@ -43,10 +45,10 @@ skipped if any of the dependencies did fail or has been skipped. %setup -q -n pytest-dependency-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +57,8 @@ skipped if any of the dependencies did fail or has been skipped. %files %{python_files} %doc README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/pytest_dependency.py +%pycache_only %{python_sitelib}/__pycache__/pytest_dependency*.pyc +%{python_sitelib}/pytest_dependency-%{version}.dist-info %changelog