public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dunamai] rawhide: spec cleanup and modernization, use pypi sources
@ 2026-07-27  8:50 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-07-27  8:50 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-07-27  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-27  8:50 [rpms/python-dunamai] rawhide: spec cleanup and modernization, use pypi sources Filipe Rosset

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