public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hatch] f44: Use various long options
@ 2026-10-28 10:59 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-28 10:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hatch
Branch : f44
Commit : 36d25c88cf52122fe10dfb7e2aa6520619517b26
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-05-19T14:37:09+01:00
Stats : +7/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hatch/c/36d25c88cf52122fe10dfb7e2aa6520619517b26?branch=f44
Log:
Use various long options
---
diff --git a/hatch.spec b/hatch.spec
index eac9e25..d3ff03e 100644
--- a/hatch.spec
+++ b/hatch.spec
@@ -10,8 +10,10 @@ Summary: A modern project, package, and virtual env manager
%if %{undefined commit}
%global tag hatch-v%{version}
+%global scmversion %{version}
%else
%global tag %{commit}
+%global scmversion %(echo '%{version}' | cut --delimiter='^' --fields=1)
%endif
# The entire source is (SPDX) MIT. Apache-2.0 license text in the tests is used
@@ -116,7 +118,7 @@ Features:
%if %{defined commit}
%generate_buildrequires -p
-export SETUPTOOLS_SCM_PRETEND_VERSION='%(echo '%{version}' | cut -d '^' -f 1)'
+export SETUPTOOLS_SCM_PRETEND_VERSION='%{scmversion}'
%endif
@@ -128,12 +130,13 @@ tomcli get hatch.toml -F newline-list envs.hatch-test.extra-dependencies |
%if %{defined commit}
%build -p
-export SETUPTOOLS_SCM_PRETEND_VERSION='%(echo '%{version}' | cut -d '^' -f 1)'
+export SETUPTOOLS_SCM_PRETEND_VERSION='%{scmversion}'
%endif
%install -a
-install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \
+install -D --preserve-timestamps --mode=0644 \
+ --target='%{buildroot}%{_mandir}/man1' \
'%{SOURCE100}' \
'%{SOURCE200}' \
'%{SOURCE300}' \
@@ -212,7 +215,7 @@ k="${k-}${k+ and }not test_verbose_output_to_stderr"
# https://bugzilla.redhat.com/show_bug.cgi?id=2432349
k="${k-}${k+ and }not (TestUserAgent and test_user_agent_header_format)"
-%pytest -k "${k-}" ${ignore-} -vv
+%pytest -k "${k-}" ${ignore-} --verbosity=2
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 10:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 10:59 [rpms/hatch] f44: Use various long options 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