public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-lz4] rawhide: Avoid tox dependency
@ 2026-10-28  1:22 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-28  1:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-lz4
            Branch : rawhide
            Commit : 9f01a508935bdf2eb3b92bf543d381ec0eddbd36
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-22T13:50:07-04:00
            Stats  : +3/-10 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-lz4/c/9f01a508935bdf2eb3b92bf543d381ec0eddbd36?branch=rawhide

            Log:
            Avoid tox dependency

RHEL does not include tox, and even in Fedora it does not add much value
relative to its dependencies; calling %pytest directly is simpler.

Also, use extras to handle all dependency detection.

---
diff --git a/python-lz4.spec b/python-lz4.spec
index 5dd13f2..4433b75 100644
--- a/python-lz4.spec
+++ b/python-lz4.spec
@@ -17,14 +17,6 @@ BuildRequires:  lz4-devel
 BuildRequires:  python3-devel
 BuildRequires:  gcc
 
-# For tests
-BuildRequires:  python3-psutil
-%if %{with docs}
-# For docs
-BuildRequires:  python3-sphinx
-BuildRequires:  python3-sphinx-bootstrap-theme
-%endif
-
 
 %description
 Python bindings for the lz4 compression library.
@@ -47,7 +39,7 @@ sed -i -e 's/--cov=lz4\/block --cov=lz4\/frame//' tox.ini
 rm lz4libs/lz4*.[ch]
 
 %generate_buildrequires
-%pyproject_buildrequires -t
+%pyproject_buildrequires -x tests%{?with_docs:,docs}
 
 %build
 %pyproject_wheel
@@ -71,7 +63,8 @@ mv docs/_build/html ./html
 
 
 %check
-%tox
+# tests/stream is for lz4/stream which is not built by default
+%pytest tests/block tests/frame
 
 
 %files -n python3-lz4 -f %{pyproject_files}

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

only message in thread, other threads:[~2026-10-28  1:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28  1:22 [rpms/python-lz4] rawhide: Avoid tox dependency Yaakov Selkowitz

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