From b61619942db42bfba719d881d099b28fb2bfaf1464b7782eea6163bccdd6f5c8 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:01:36 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-astropy-header?expand=0&rev=16 --- python-pytest-astropy-header.changes | 5 +++++ python-pytest-astropy-header.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-pytest-astropy-header.changes b/python-pytest-astropy-header.changes index adabc37..2f4cd6f 100644 --- a/python-pytest-astropy-header.changes +++ b/python-pytest-astropy-header.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 7 06:47:23 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Thu Oct 27 17:23:49 UTC 2022 - Ben Greiner diff --git a/python-pytest-astropy-header.spec b/python-pytest-astropy-header.spec index b882b82..15b98e8 100644 --- a/python-pytest-astropy-header.spec +++ b/python-pytest-astropy-header.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-pytest-astropy-header # -# Copyright (c) 2022 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 @@ -31,12 +31,13 @@ Version: 0.2.2 Release: 0 Summary: Pytest plugin to add diagnostic information to the header of the test output License: BSD-3-Clause -Group: Productivity/Scientific/Astronomy URL: https://github.com/astropy/pytest-astropy-header Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 30.3.0} BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 4.6 @@ -59,11 +60,11 @@ Astropy project, but is optimized for use with astropy-related projects. %autosetup -p1 -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -79,7 +80,7 @@ export PYTHONPATH=$(pwd) %doc CHANGES.rst README.rst %license LICENSE.rst %{python_sitelib}/pytest_astropy_header -%{python_sitelib}/pytest_astropy_header-%{version}*-info +%{python_sitelib}/pytest_astropy_header-%{version}.dist-info %endif %changelog