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/python-zmq] epel10: Use various long options
Date: Sat, 22 Aug 2026 07:13:00 GMT	[thread overview]
Message-ID: <178738278095.1.10210851903046162158.rpms-python-zmq-2890af1b49a6@fedoraproject.org> (raw)

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}

                 reply	other threads:[~2026-08-22  7:13 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=178738278095.1.10210851903046162158.rpms-python-zmq-2890af1b49a6@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