From 4eac8582d9a867756ec3dee4133d13b6d835921f96384f19a9b0e19adc3ceb8b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 17 Jun 2025 04:19:16 +0000 Subject: [PATCH] - Switch to pyproject macros. - Ship README as a doc. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fire?expand=0&rev=29 --- python-fire.changes | 6 ++++++ python-fire.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-fire.changes b/python-fire.changes index 813641d..2d7d731 100644 --- a/python-fire.changes +++ b/python-fire.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 17 04:14:19 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Ship README as a doc. + ------------------------------------------------------------------- Thu Oct 31 14:31:28 UTC 2024 - pgajdos@suse.com diff --git a/python-fire.spec b/python-fire.spec index 4b7fd50..49530c5 100644 --- a/python-fire.spec +++ b/python-fire.spec @@ -1,7 +1,7 @@ # # spec file for package python-fire # -# 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 @@ -16,7 +16,6 @@ # -%define skip_python2 1 Name: python-fire Version: 0.7.0 Release: 0 @@ -26,6 +25,8 @@ URL: https://github.com/google/python-fire Source: https://files.pythonhosted.org/packages/source/f/fire/fire-%{version}.tar.gz # Based on https://github.com/google/python-fire/pull/265/files BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-termcolor @@ -46,18 +47,19 @@ interfaces (CLIs) from a Python object. %autosetup -p1 -n fire-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} +%doc README.md %license LICENSE %{python_sitelib}/fire -%{python_sitelib}/fire-*.egg-info +%{python_sitelib}/fire-%{version}.dist-info %changelog