public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-dunamai] rawhide: spec cleanup and modernization, use pypi sources
Date: Mon, 27 Jul 2026 08:50:40 GMT [thread overview]
Message-ID: <178514224048.1.6231938240627649295.rpms-python-dunamai-ff6a3d5fbbd7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-dunamai
Branch : rawhide
Commit : ff6a3d5fbbd76cce95599862074119f1797132cb
Author : Filipe Rosset <filiperosset@fedoraproject.org>
Date : 2026-07-24T20:06:46-03:00
Stats : +8/-8 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-dunamai/c/ff6a3d5fbbd76cce95599862074119f1797132cb?branch=rawhide
Log:
spec cleanup and modernization, use pypi sources
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index 56da35e..a618f76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@
/python-dunamai-1.25.0.tar.gz
/python-dunamai-1.26.0.tar.gz
/python-dunamai-1.26.1.tar.gz
+/dunamai-1.26.1.tar.gz
diff --git a/python-dunamai.spec b/python-dunamai.spec
index 4d0ba77..2f93a34 100644
--- a/python-dunamai.spec
+++ b/python-dunamai.spec
@@ -17,7 +17,7 @@ Summary: Dynamic version generation
# SPDX
License: MIT
URL: https://pypi.org/pypi/dunamai
-Source0: https://github.com/mtkennerly/dunamai/archive/v%{version}/%{name}-%{version}.tar.gz
+Source: %{pypi_source dunamai}
BuildArch: noarch
@@ -27,7 +27,6 @@ BuildArch: noarch
Summary: %{summary}
BuildRequires: python3-devel
-BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-xdist)
@@ -48,9 +47,8 @@ BuildRequires: help2man
%prep
%autosetup -n dunamai-%{version}
-# Comment out to remove /usr/bin/env shebangs
-# Can use something similar to correct/remove /usr/bin/python shebangs also
-# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
+# Fix CRLF line endings in documentation
+sed -i 's/\r$//' CHANGELOG.md
# see pyproject-rpm-macros documentation for more forms
%generate_buildrequires
@@ -74,6 +72,8 @@ done
%check
+%pyproject_check_import
+
# set up git
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
@@ -88,8 +88,7 @@ export DARCS_EMAIL="Yep something <name@example.com>"
%pytest -n auto -v -k "not test__version__from_git__shallow"
%files -n python3-dunamai -f %{pyproject_files}
-%doc README.md CHANGELOG.md CONTRIBUTING.md
-%license LICENSE
+%doc README.md CHANGELOG.md
%{_bindir}/dunamai
%{_mandir}/man1/dunamai*.1*
diff --git a/sources b/sources
index 26b3ca4..9be8461 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-dunamai-1.26.1.tar.gz) = f6e25cf252dedba5620acd83ce6e8507113a8a474eede43278b99a838127f6324a3f94f44aac7c1da7a7c5bcf87d31cf73a33a34a5d5d6a3392e81e79008d221
+SHA512 (dunamai-1.26.1.tar.gz) = 1c900b0b665cdca3ddce38f9c31ce674e630d31fb1fdb66e06242dabc24453cb25921d1b73ebff3238287d235696f33e7bd72c3992115bf7a1f63ffb11b95408
reply other threads:[~2026-07-27 8:50 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=178514224048.1.6231938240627649295.rpms-python-dunamai-ff6a3d5fbbd7@fedoraproject.org \
--to=filiperosset@fedoraproject.org \
--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