Accepting request 1275113 from devel:languages:python:pytest

- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1275113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-testconfig?expand=0&rev=5
This commit is contained in:
2025-05-07 17:19:34 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 7 06:59:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 13 14:16:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Mon Jan 13 14:16:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-testconfig # spec file for package python-pytest-testconfig
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-testconfig Name: python-pytest-testconfig
Version: 0.2.0 Version: 0.2.0
Release: 0 Release: 0
@@ -25,8 +24,10 @@ License: Apache-2.0
URL: https://github.com/wojole/pytest-testconfig URL: https://github.com/wojole/pytest-testconfig
Source: https://github.com/wojole/pytest-testconfig/archive/v%{version}.tar.gz Source: https://github.com/wojole/pytest-testconfig/archive/v%{version}.tar.gz
BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 3.5} BuildRequires: %{python_module pytest >= 3.5}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.5 Requires: python-pytest >= 3.5
@@ -42,10 +43,10 @@ to the tests being executed.
%setup -q -n pytest-testconfig-%{version} %setup -q -n pytest-testconfig-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -53,6 +54,8 @@ to the tests being executed.
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/pytest_testconfig.py
%pycache_only %{python_sitelib}/__pycache__/pytest_testconfig*.pyc
%{python_sitelib}/pytest_testconfig-%{version}.dist-info
%changelog %changelog