public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zmq] epel10: Use various long options
@ 2026-08-22 7:13 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-22 7:13 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-zmq
Branch : epel10
Commit : 2890af1b49a68f522d1a80611e1516032be9df07
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-22T07:53:37+01:00
Stats : +11/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-zmq/c/2890af1b49a68f522d1a80611e1516032be9df07?branch=epel10
Log:
Use various long options
---
diff --git a/python-zmq.spec b/python-zmq.spec
index 531467e..d26a218 100644
--- a/python-zmq.spec
+++ b/python-zmq.spec
@@ -105,20 +105,23 @@ Conflicts: python3-pyzmq-tests < 26.2.0-1
%autosetup -p1 -n pyzmq-%{version}
# Remove any Cython-generated .c files in order to regenerate them:
-find . -type f -exec grep -FrinIl 'Generated by Cython' '{}' '+' |
- xargs -r -t rm -v
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_using_cython
+find . -type f -exec \
+ grep -I --fixed-strings --recursive --ignore-case --files-with-matches \
+ 'Generated by Cython' '{}' '+' |
+ xargs --no-run-if-empty --verbose rm --verbose
# Remove shebangs from non-script sources. The find-then-modify pattern
# preserves mtimes on sources that did not need to be modified.
find 'src' -type f -name '*.py' \
-exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' |
- xargs -r sed -r -i '1{/^#!/d}'
+ xargs --no-run-if-empty sed --regexp-extended --in-place '1{/^#!/d}'
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
# - pymongo is used only in examples/mongodb/, and we don’t run examples
-sed -r \
- -e 's/^(black|codecov|coverage|flake8|mypy|pytest-cov)\b/# &/' \
- -e 's/^(pymongo)\b/# &/' \
+sed --regexp-extended \
+ --expression='s/^(black|codecov|coverage|flake8|mypy|pytest-cov)\b/# &/' \
+ --expression='s/^(pymongo)\b/# &/' \
test-requirements.txt | tee test-requirements-filtered.txt
@@ -145,7 +148,7 @@ sed -r \
# to avoid partially initialized zmq module from cwd
mkdir -p _empty
cd _empty
-ln -s ../tests/ ../pytest.ini ./
+ln --symbolic ../tests/ ../pytest.ini ./
# With Python 3.14, in test_process_teardown, while spawning the multiprocess
# forkserver child:
@@ -164,7 +167,7 @@ export PYTHONPATH="%{buildroot}%{python3_sitearch}:${PWD}"
k="${k-}${k+ and }not Green"
%endif
-%pytest -k "${k-}" -v -rs tests/
+%pytest -k "${k-}" --verbose -rs tests/
%files -n python3-pyzmq -f %{pyproject_files}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-22 7:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-22 7:13 [rpms/python-zmq] epel10: 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