From 92c0a751e4f4b6b3b5f6fb8ce1e3ab71e09daedcaefdad4161eb8c8cd8daf0a6 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:06:50 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-timeout?expand=0&rev=26 --- python-pytest-timeout.changes | 5 +++++ python-pytest-timeout.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pytest-timeout.changes b/python-pytest-timeout.changes index 16ba3f6..b68e2cf 100644 --- a/python-pytest-timeout.changes +++ b/python-pytest-timeout.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 7 06:59:42 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Sat Mar 16 13:01:47 UTC 2024 - Dirk Müller diff --git a/python-pytest-timeout.spec b/python-pytest-timeout.spec index 75fdc84..36dccdc 100644 --- a/python-pytest-timeout.spec +++ b/python-pytest-timeout.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-timeout # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,8 +25,10 @@ Summary: Pytest plugin to abort hanging tests License: MIT URL: https://github.com/pytest-dev/pytest-timeout/ Source: https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 7.0.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 7.0.0 @@ -58,10 +60,10 @@ stderr nevertheless, which is the most important part at this stage. %setup -q -n pytest-timeout-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -73,8 +75,8 @@ donttest="or test_cov" %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/pytest_timeout-%{version}*-info -%{python_sitelib}/pytest_timeout.py* +%{python_sitelib}/pytest_timeout-%{version}.dist-info +%{python_sitelib}/pytest_timeout.py %pycache_only %{python_sitelib}/__pycache__/pytest_timeout*.pyc %changelog