public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-cattrs] rawhide: Use various long options (to improve readability)
@ 2026-07-11 12:05 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-11 12:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-cattrs
Branch : rawhide
Commit : c8dd6fe8eaaae32877b38209ada1ad789f2625e8
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-11T06:46:58+01:00
Stats : +5/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-cattrs/c/c8dd6fe8eaaae32877b38209ada1ad789f2625e8?branch=rawhide
Log:
Use various long options (to improve readability)
[skip changelog]
---
diff --git a/python-cattrs.spec b/python-cattrs.spec
index 17b8d50..a6910b7 100644
--- a/python-cattrs.spec
+++ b/python-cattrs.spec
@@ -21,7 +21,7 @@ Source: %{url}/archive/v%{version}/cattrs-%{version}.tar.gz
%global srcversion %{version}
%else
Source: %{url}/archive/%{commit}/cattrs-%{commit}.tar.gz
-%global srcversion %(echo %{version} | cut -d '^' -f 1)
+%global srcversion %(echo %{version} | cut --delimiter='^' --fields=1)
%endif
# Downstream: temporarily loosen version bounds on some test dependencies
@@ -89,13 +89,14 @@ Obsoletes: python-cattrs-doc < 24.1.2^20241004gitae80674-6
# Don’t run benchmarks when testing
tomcli set pyproject.toml lists delitem 'dependency-groups.test' \
'pytest-benchmark\b.*'
-sed -r -i 's/ --benchmark[^[:blank:]"]*//g' pyproject.toml
+sed --regexp-extended --in-place \
+ 's/ --benchmark[^[:blank:]"]*//g' pyproject.toml
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
tomcli set pyproject.toml lists delitem 'dependency-groups.test' \
'coverage\b.*'
# Remove bundled fonts to show they are not packaged:
-rm -rv docs/_static/fonts/
+rm --recursive --verbose docs/_static/fonts/
%generate_buildrequires
@@ -161,7 +162,7 @@ k="${k-}${k+ and }not test_orjson_native_enums"
k="${k-}${k+ and }not test_orjson_unions"
%endif
-%pytest --ignore-glob='bench/*' ${ignore-} -k "${k-}" -n auto
+%pytest --ignore-glob='bench/*' ${ignore-} -k "${k-}" --numprocesses=auto
%files -n python3-cattrs -f %{pyproject_files}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-11 12:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-11 12:05 [rpms/python-cattrs] rawhide: Use various long options (to improve readability) 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