public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-lz4] rawhide: Avoid tox dependency
Date: Wed, 28 Oct 2026 01:22:49 GMT [thread overview]
Message-ID: <179315056970.1.4041401846294957643.rpms-python-lz4-9f01a508935b@fedoraproject.org> (raw)
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}
reply other threads:[~2026-10-28 1:22 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=179315056970.1.4041401846294957643.rpms-python-lz4-9f01a508935b@fedoraproject.org \
--to=yselkowi@redhat.com \
--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