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/hatch] f44: Use various long options
Date: Wed, 28 Oct 2026 10:59:15 GMT [thread overview]
Message-ID: <179318515519.1.9788097746448350662.rpms-hatch-36d25c88cf52@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-28 10:59 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=179318515519.1.9788097746448350662.rpms-hatch-36d25c88cf52@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