Accepting request 1109386 from devel:languages:python:pytest

- Stop using greedy globs in %files.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1109386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cookies?expand=0&rev=5
This commit is contained in:
2023-09-07 19:13:18 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Sep 7 05:26:34 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Stop using greedy globs in %files.
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue May 9 20:51:07 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -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