From 72dbd1f7058afd4da2a3db911c996b6e48b3b976ff1dc70217c852a9ba69d557 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:06:05 +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-remotedata?expand=0&rev=15 --- python-pytest-remotedata.changes | 6 ++++++ python-pytest-remotedata.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pytest-remotedata.changes b/python-pytest-remotedata.changes index b99d3cd..9d9ab7d 100644 --- a/python-pytest-remotedata.changes +++ b/python-pytest-remotedata.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 7 06:58:40 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Oct 2 15:12:33 UTC 2023 - Dirk Müller diff --git a/python-pytest-remotedata.spec b/python-pytest-remotedata.spec index b56c714..2faa48b 100644 --- a/python-pytest-remotedata.spec +++ b/python-pytest-remotedata.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-remotedata # -# 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 @@ -22,13 +22,14 @@ Version: 0.4.1 Release: 0 Summary: Pytest plugin for controlling remote data access License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/astropy/pytest-remotedata Source: https://files.pythonhosted.org/packages/source/p/pytest-remotedata/pytest-remotedata-%{version}.tar.gz BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 4.6} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-packaging @@ -44,10 +45,10 @@ developers to control unit tests that require access to data from the internet. %setup -q -n pytest-remotedata-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,6 +58,7 @@ developers to control unit tests that require access to data from the internet. %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.rst -%{python_sitelib}/* +%{python_sitelib}/pytest_remotedata +%{python_sitelib}/pytest_remotedata-%{version}.dist-info %changelog