public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-venusian] epel10.2: Port to pyproject-rpm-macros
@ 2026-06-22 16:02 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-22 16:02 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-venusian
Branch : epel10.2
Commit : 2de2a26b75be59846339a2919769b5d6d1641f56
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2022-12-06T12:06:20-05:00
Stats  : +40/-32 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-venusian/c/2de2a26b75be59846339a2919769b5d6d1641f56?branch=epel10.2

Log:
Port to pyproject-rpm-macros

---
diff --git a/python-venusian.spec b/python-venusian.spec
index 51eaec7..d1fd5bf 100644
--- a/python-venusian.spec
+++ b/python-venusian.spec
@@ -1,67 +1,75 @@
-%global modname venusian
-
-Name:           python-%{modname}
+Name:           python-venusian
 Version:        3.0.0
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        A library for deferring decorator actions
 
 License:        BSD
-URL:            https://pypi.python.org/pypi/venusian
-Source0:        https://pypi.python.org/packages/source/v/venusian/%{modname}-%{version}.tar.gz
+URL:            https://github.com/Pylons/venusian
+Source0:        %{pypi_source venusian}
+
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
-BuildRequires:  python3-pytest
-BuildRequires:  python3-pytest-cov
-BuildRequires:  python3-coverage
-BuildRequires:  python3-setuptools
 
-%global _description\
-Venusian is a library which allows framework authors to defer decorator\
-actions.  Instead of taking actions when a function (or class) decorator is\
-executed at import time, you can defer the action usually taken by the\
-decorator until a separate "scan" phase.\
+# There is a “testing” extra, but it’s not worth generating BR’s from it
+# because everything other than pytest is for coverage analysis and would need
+# to be patched out.
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
+BuildRequires:  python3dist(pytest)
+
+%global common_description %{expand:
+Venusian is a library which allows framework authors to defer decorator
+actions. Instead of taking actions when a function (or class) decorator is
+executed at import time, you can defer the action usually taken by the
+decorator until a separate “scan” phase.}
 
+%description %{common_description}
 
-%description %_description
 
 %package -n python3-venusian
-Summary:        A library for deferring decorator actions
-%{?python_provide:%python_provide python3-venusian}
+Summary:        %{summary}
+
+%description -n python3-venusian %{common_description}
 
-%description -n python3-venusian
-Venusian is a library which allows framework authors to defer decorator
-actions.  Instead of taking actions when a function (or class) decorator is
-executed at import time, you can defer the action usually taken by the
-decorator until a separate "scan" phase.
 
 %prep
-%setup -q -n %{modname}-%{version}
+%autosetup -n venusian-%{version}
 
-# Remove bundled egg info if it exists
-rm -rf %{modname}.egg-info
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
+sed -r -i 's/ --cov[^[:blank:]]*//g' setup.cfg
+
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 
 %build
-%py3_build
+%pyproject_wheel
 
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files venusian
 
 
 %check
-PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --trace
+%pytest
 
 
-%files -n python3-venusian
+%files -n python3-venusian -f %{pyproject_files}
+# pyproject_files handles LICENSE.txt in dist-info, but COPYRIGHT.txt is not
+# present there, so we manually install both files to %%{_licensedir}
+%license COPYRIGHT.txt
 %license LICENSE.txt
+%doc CHANGES.rst
+%doc CONTRIBUTORS.txt
 %doc README.rst
-%{python3_sitelib}/%{modname}/
-%{python3_sitelib}/%{modname}-%{version}*.egg-info
 
 
 %changelog
+* Tue Dec 06 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.0-8
+- Convert to pyproject-rpm-macros
+
 * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-22 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 16:02 [rpms/python-venusian] epel10.2: Port to pyproject-rpm-macros Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox