Accepting request 1275090 from devel:languages:python:pytest

- Switch to pyproject macros.

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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 7 06:47:34 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 8 12:10:23 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com> Mon Apr 8 12:10:23 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-attrib # spec file for package python-pytest-attrib
# #
# Copyright (c) 2024 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
@@ -21,10 +21,11 @@ Version: 0.1.3
Release: 0 Release: 0
Summary: Pytest plugin to select tests based on attributes Summary: Pytest plugin to select tests based on attributes
License: MIT License: MIT
Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/pytest-attrib/ URL: http://pypi.python.org/pypi/pytest-attrib/
Source: https://github.com/AbdealiJK/pytest-attrib/archive/%{version}.tar.gz Source: https://github.com/AbdealiJK/pytest-attrib/archive/%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION tests # SECTION tests
@@ -52,10 +53,10 @@ It offers features similar to the nose plugin nose-attrib.
rm setup.cfg rm setup.cfg
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/pytest_attrib %python_expand %fdupes %{buildroot}%{$python_sitelib}/pytest_attrib
%check %check
@@ -65,6 +66,6 @@ rm setup.cfg
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/pytest_attrib %{python_sitelib}/pytest_attrib
%{python_sitelib}/pytest_attrib-%{version}*-info %{python_sitelib}/pytest_attrib-%{version}.dist-info
%changelog %changelog