Remove tox deps

This commit is contained in:
2026-02-02 10:41:03 +08:00
parent b5907b91c6
commit b834f0f826
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
diff --git a/requirements.txt b/requirements.txt
index 65529de..ebe9f1f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,3 @@
-tox
pytest
pytest-runner
setuptools_scm

View File

@@ -27,6 +27,9 @@ Patch: 0001-python-lz4-deps.patch
# Support Python 3.14
# https://github.com/python-lz4/python-lz4/pull/303.patch
Patch1: 0002-correct-import-of-_compression.patch
%if %{without test}
Patch2: 0003-remove-tox-temp.patch
%endif
BuildRequires: pkgconfig(liblz4)
BuildRequires: python3-devel
@@ -43,10 +46,6 @@ Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%prep -a
%if %{without test}
sed -i -e 's/tox//g' requirements.txt
%endif
sed -i -e '/pytest-cov/d' setup.py
sed -i -e 's/--cov=lz4\/block --cov=lz4\/frame//' tox.ini