From 63923b3399a7fdd8f4e47427eee48bf5dc361e3a2a05154068d462771d6e235e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 7 Sep 2023 05:27:11 +0000 Subject: [PATCH] - Stop using greedy globs in %files. - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cookies?expand=0&rev=9 --- python-pytest-cookies.changes | 6 ++++++ python-pytest-cookies.spec | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pytest-cookies.changes b/python-pytest-cookies.changes index 1173ccd..d2b4efa 100644 --- a/python-pytest-cookies.changes +++ b/python-pytest-cookies.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 7 05:26:34 UTC 2023 - Steve Kowalik + +- Stop using greedy globs in %files. +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue May 9 20:51:07 UTC 2023 - Dirk Müller diff --git a/python-pytest-cookies.spec b/python-pytest-cookies.spec index eddf57e..f200a69 100644 --- a/python-pytest-cookies.spec +++ b/python-pytest-cookies.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} # cookiecutter is only available for python3 %define pythons python3 Name: python-pytest-cookies @@ -24,10 +23,11 @@ Version: 0.7.0 Release: 0 Summary: Cookiecutter template pytest plugin License: MIT -Group: Development/Languages/Python URL: https://github.com/hackebrot/pytest-cookies Source: https://github.com/hackebrot/pytest-cookies/archive/%{version}.tar.gz#/pytest-cookies-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: cookiecutter >= 2.1.0 @@ -46,10 +46,10 @@ The pytest plugin for your Cookiecutter templates. %setup -q -n pytest-cookies-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +58,7 @@ The pytest plugin for your Cookiecutter templates. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytest_cookies +%{python_sitelib}/pytest_cookies-%{version}.dist-info %changelog