Accepting request 1273808 from devel:languages:python:pytest

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

OBS-URL: https://build.opensuse.org/request/show/1273808
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-services?expand=0&rev=9
This commit is contained in:
2025-05-02 12:55:46 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 1 07:02:59 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 10 09:24:57 UTC 2023 - ecsos <ecsos@opensuse.org> Sat Jun 10 09:24:57 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-services # spec file for package python-pytest-services
# #
# Copyright (c) 2023 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
@@ -24,12 +24,14 @@ Summary: Services plugin for pytest testing framework
License: MIT License: MIT
URL: https://github.com/pytest-dev/pytest-services URL: https://github.com/pytest-dev/pytest-services
Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psutil} BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pylibmc} BuildRequires: %{python_module pylibmc}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests} BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module zc.lockfile >= 2.0} BuildRequires: %{python_module zc.lockfile >= 2.0}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -58,10 +60,10 @@ processes for your tests with pytest.
sed -i -e '/import MySQLdb/d' tests/test_plugin.py sed -i -e '/import MySQLdb/d' tests/test_plugin.py
%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
@@ -71,6 +73,7 @@ sed -i -e '/import MySQLdb/d' tests/test_plugin.py
%files %{python_files} %files %{python_files}
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/* %{python_sitelib}/pytest_services
%{python_sitelib}/pytest_services-%{version}.dist-info
%changelog %changelog