public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-klein] epel10: Migrate to new macros
@ 2026-10-05 20:45 Gwyn Ciesla
0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-10-05 20:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-klein
Branch : epel10
Commit : e071ca25f3a85bba835993c5f00fb67c5fed603d
Author : Gwyn Ciesla <gwync@protonmail.com>
Date : 2025-07-09T12:40:12-05:00
Stats : +10/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-klein/c/e071ca25f3a85bba835993c5f00fb67c5fed603d?branch=epel10
Log:
Migrate to new macros
---
diff --git a/python-klein.spec b/python-klein.spec
index 3c47da1..8ba9c0f 100644
--- a/python-klein.spec
+++ b/python-klein.spec
@@ -15,7 +15,6 @@ BuildRequires: python3-devel
BuildRequires: python3dist(attrs)
BuildRequires: python3dist(hyperlink)
BuildRequires: python3dist(incremental)
-BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(six)
BuildRequires: python3dist(tubes)
BuildRequires: python3dist(twisted) >= 15.5
@@ -29,7 +28,6 @@ Klein is a Web Micro-Framework built on Twisted and Werkzeug.
%package -n python3-%{pypi_name}
Summary: %{summary}
-%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Klein is a Web Micro-Framework built on Twisted and Werkzeug.
@@ -42,24 +40,26 @@ Documentation for klein
%prep
%autosetup -n %{pypi_name}-%{version} -p0
-# Remove bundled egg-info
-rm -rf %{pypi_name}.egg-info
+
+%generate_buildrequires
+%pyproject_buildrequires
%build
-%py3_build
+%pyproject_wheel
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l %{pypi_name}
-%files -n python3-%{pypi_name}
-%license LICENSE
+%check
+%pyproject_check_import -t
+
+%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
-%{python3_sitelib}/%{pypi_name}/
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%files -n python-%{pypi_name}-doc
%doc html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-05 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 20:45 [rpms/python-klein] epel10: Migrate to new macros Gwyn Ciesla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox