From 4cc648ef45344a1312b907d8928079ee8da68c6b8d4804236632617a99e59187 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:04:48 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-instafail?expand=0&rev=21 --- python-pytest-instafail.changes | 6 ++++++ python-pytest-instafail.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-pytest-instafail.changes b/python-pytest-instafail.changes index 540e6c1..238acaa 100644 --- a/python-pytest-instafail.changes +++ b/python-pytest-instafail.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 7 06:53:34 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Thu May 4 22:54:59 UTC 2023 - Dirk Müller diff --git a/python-pytest-instafail.spec b/python-pytest-instafail.spec index 0d3e152..46695c6 100644 --- a/python-pytest-instafail.spec +++ b/python-pytest-instafail.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-instafail # -# Copyright (c) 2023 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 @@ -24,7 +24,9 @@ Summary: Pytest Plugin to Show Failures Instantly License: BSD-2-Clause URL: https://github.com/jpvanhal/pytest-instafail Source: https://files.pythonhosted.org/packages/source/p/pytest-instafail/pytest-instafail-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 2.6 @@ -43,19 +45,20 @@ until the end of test session. %setup -q -n pytest-instafail-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export PYTHONDONTWRITEBYTECODE=1 %pytest %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytest_instafail.py +%pycache_only %{python_sitelib}/__pycache__/pytest_instafail*.pyc +%{python_sitelib}/pytest_instafail-%{version}.dist-info %changelog