From e20e662679d270104170723301ab5a928900b2fce69803754f95e03ffd705e2c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 05:42:35 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=21 --- python-atomicwrites.changes | 5 +++++ python-atomicwrites.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-atomicwrites.changes b/python-atomicwrites.changes index 38925c8..c18e700 100644 --- a/python-atomicwrites.changes +++ b/python-atomicwrites.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 05:35:08 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon Nov 11 13:34:27 UTC 2024 - Daniel Garcia diff --git a/python-atomicwrites.spec b/python-atomicwrites.spec index c0f1885..2ad8ede 100644 --- a/python-atomicwrites.spec +++ b/python-atomicwrites.spec @@ -1,7 +1,7 @@ # # spec file for package python-atomicwrites # -# 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 @@ -34,7 +34,9 @@ URL: https://github.com/untitaker/python-atomicwrites Source: https://files.pythonhosted.org/packages/source/a/atomicwrites/atomicwrites-%{version}.tar.gz # PATCH-FIX-OPENSUSE sphinx8.patch -- daniel.garcia@suse.com Patch0: sphinx8.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -79,7 +81,7 @@ of python-atomicwrites %build %if %{without doc} -%python_build +%pyproject_wheel %else pushd docs make html @@ -89,7 +91,7 @@ popd %install %if %{without doc} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -103,7 +105,8 @@ popd %defattr(-,root,root,-) %doc README.rst %license LICENSE -%{python_sitelib}/atomicwrites* +%{python_sitelib}/atomicwrites +%{python_sitelib}/atomicwrites-%{version}.dist-info %else