public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zstandard] rawhide: Avoid pytest-xdist dependency on RHEL
@ 2026-08-17 20:09 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-08-17 20:09 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-zstandard
            Branch : rawhide
            Commit : 389139a6a66ffeb0c7e9f1bf6c2daa3278c5c2bc
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-08-14T12:29:37-04:00
            Stats  : +7/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-zstandard/c/389139a6a66ffeb0c7e9f1bf6c2daa3278c5c2bc?branch=rawhide

            Log:
            Avoid pytest-xdist dependency on RHEL

It is unwanted in RHEL due to its dependencies, but the only difference
is that the tests need to be run serially instead.

---
diff --git a/python-zstandard.spec b/python-zstandard.spec
index 0432fb8..8fe4a0a 100644
--- a/python-zstandard.spec
+++ b/python-zstandard.spec
@@ -7,7 +7,7 @@ compression library. A C extension and CFFI interface are provided.
 
 Name: python-%{pypi_name}
 Version: 0.25.0
-Release: 6%{?dist}
+Release: 7%{?dist}
 Summary: Zstandard bindings for Python
 License: (BSD-3-Clause OR GPL-2.0-only) AND MIT
 URL: https://github.com/indygreg/python-zstandard
@@ -23,8 +23,10 @@ BuildRequires: libzstd-devel
 BuildRequires: python3-devel
 %if %{with check}
 BuildRequires: python3dist(pytest)
+%if %{undefined rhel}
 BuildRequires: python3dist(pytest-xdist)
 %endif
+%endif
 # https://github.com/indygreg/python-zstandard/issues/48
 Provides: bundled(zstd) = 1.5.7
 
@@ -52,8 +54,7 @@ rm -r %{pypi_name}.egg-info
 %if %{with check}
 mv zstandard{,.src}
 export ZSTD_SLOW_TESTS=1
-%pytest -v\
-        --numprocesses=auto
+%pytest -v %{!?rhel:--numprocesses=auto}
 mv zstandard{.src,}
 %endif
 
@@ -62,6 +63,9 @@ mv zstandard{.src,}
 %doc README.rst
 
 %changelog
+* Fri Aug 14 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 0.25.0-7
+- Avoid pytest-xdist dependency on RHEL
+
 * Wed Aug 12 2026 Dominik Mierzejewski <dominik@greysector.net> - 0.25.0-6
 - drop unnecessary patch and check conditional
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-17 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 20:09 [rpms/python-zstandard] rawhide: Avoid pytest-xdist dependency on RHEL Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox