public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dunamai] f43: Assert that the .dist-info directory contains a license file
@ 2026-11-08 22:56 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-08 22:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-dunamai
Branch : f43
Commit : 4c92b290f77f0741da7a9fbe002390eca1d23ee9
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-28T12:47:24+01:00
Stats : +10/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-dunamai/c/4c92b290f77f0741da7a9fbe002390eca1d23ee9?branch=f43
Log:
Assert that the .dist-info directory contains a license file
---
diff --git a/python-dunamai.spec b/python-dunamai.spec
index 9952019..480c45f 100644
--- a/python-dunamai.spec
+++ b/python-dunamai.spec
@@ -2,6 +2,9 @@
# Useful to disable when breezy is broken with new Python version.
%bcond breezy 1
+# Is poetry-core too old for the license file to be handled automatically?
+%bcond no_pep_639_license %[ %{defined fc43} || %{defined el10} || %{defined el9} ]
+
%global _description %{expand:
Dunamai is a Python 3.5+ library and command line tool for producing dynamic,
standards-compliant version strings, derived from tags in your version control
@@ -59,7 +62,11 @@ sed -i 's/\r$//' CHANGELOG.md
%install
%pyproject_install
+%if %{with no_pep_639_license}
%pyproject_save_files dunamai
+%else
+%pyproject_save_files --assert-license dunamai
+%endif
# generate man pages
for binary in "dunamai" "dunamai check" "dunamai from" "dunamai from any" "dunamai from bazaar" "dunamai from darcs" "dunamai from fossil" "dunamai from git" "dunamai from mercurial" "dunamai from pijul" "dunamai from subversion"
@@ -89,6 +96,9 @@ export DARCS_EMAIL="Yep something <name@example.com>"
%files -n python3-dunamai -f %{pyproject_files}
%doc README.md CHANGELOG.md
+%if %{with no_pep_639_license}
+%license LICENSE
+%endif
%{_bindir}/dunamai
%{_mandir}/man1/dunamai*.1*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-08 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 22:56 [rpms/python-dunamai] f43: Assert that the .dist-info directory contains a license file 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