From 55957facfa98402b08d8931774d33cfd9f950eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 5 Sep 2024 17:49:40 +0200 Subject: [PATCH] CI: python-virtualenv: Drop an unused dependency on python3-flaky We don't have flaky in EL 10 yet. (cherry picked from commit 89374b91079f7f5bcccb0d15494a1e220c415b0f) --- tests/python-virtualenv.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/python-virtualenv.spec b/tests/python-virtualenv.spec index c498334..add7f78 100644 --- a/tests/python-virtualenv.spec +++ b/tests/python-virtualenv.spec @@ -9,7 +9,6 @@ Source: %{pypi_source virtualenv} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-flaky BuildRequires: python3-pytest %description @@ -35,6 +34,8 @@ sed -i -e 's/distlib<1,>=0.3.6/distlib<1,>=0.3.2/' \ -e 's/hatchling>=1.12.2/hatchling>=0.25/' \ -e 's/hatch-vcs>=0.3/hatch-vcs>=0.2.1/' \ pyproject.toml +# Drop the option for flaky +sed -i 's/--no-success-flaky-report//' pyproject.toml # Hacky backport of https://src.fedoraproject.org/rpms/python-virtualenv/c/87b1f95664 %if 0%{?fedora} >= 39 || 0%{?rhel} >= 10 sed -i 's/_nonwrappers/_hookimpls/' tests/conftest.py @@ -62,8 +63,9 @@ echo '__version__, __version_tuple__ = version, version_tuple' >> %{buildroot}%{ %check # test_main fails when .dist-info is not deleted at the end of %%pyproject_buildrequires +# tests/integration/test_zipapp.py imports flaky PIP_CERT=/etc/pki/tls/certs/ca-bundle.crt \ -%pytest -v -k test_main +%pytest -v -k test_main --ignore tests/integration/test_zipapp.py %files -n python3-virtualenv -f %{pyproject_files}