From f9bf9e7a5d83567a1cb61fbe4ebf820aaf1bc8b1 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 10 Feb 2023 14:42:27 -0500 Subject: [PATCH] Avoid python-hypothesis dependency in RHEL builds This package is unwanted in RHEL/ELN, but only one test uses it. --- python-pyrsistent.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-pyrsistent.spec b/python-pyrsistent.spec index 01587a3..324aef2 100644 --- a/python-pyrsistent.spec +++ b/python-pyrsistent.spec @@ -66,6 +66,7 @@ BuildArch: noarch # versions and use what is packaged. # # We do not need: +# - hypothesis, not included in RHEL # - memory-profiler or psutil, since we are not running the memorytest* # environment from tox.ini # - pyperform, since we are not running the benchmarks from @@ -75,6 +76,9 @@ BuildArch: noarch sed -r \ -e 's/==/>=/' \ -e '/\b(memory-profiler|psutil|pyperform|tox|twine)\b/d' \ +%if %{defined rhel} + -e '/\bhypothesis\b/d' \ +%endif requirements.txt | tee requirements-filtered.txt @@ -101,7 +105,7 @@ PYTHONPATH="${PWD}" %make_build -C docs latex SPHINXOPTS='-n %{?_smp_mflags}' %check # # See tox.ini: -%pytest +%pytest %{?rhel:--ignore=tests/hypothesis_vector_test.py} %pytest --doctest-modules pyrsistent