public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-venusian] epel10.2: Port to pyproject-rpm-macros
Date: Mon, 22 Jun 2026 16:02:54 GMT [thread overview]
Message-ID: <178214417468.1.5733445244460621117.rpms-python-venusian-2de2a26b75be@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-22 16:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178214417468.1.5733445244460621117.rpms-python-venusian-2de2a26b75be@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox