[packages/python3-virtualenv] - updated dependencies, tests are passing now (except 2*2 disabled, which need network)

qboosh qboosh at pld-linux.org
Mon Nov 2 17:57:36 CET 2026


commit b88f02ed90fbea4138916408701d6f730975097f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 2 17:58:25 2026 +0100

    - updated dependencies, tests are passing now (except 2*2 disabled, which need network)

 python3-virtualenv.spec | 64 +++++++++++++++++++++++++------------------------
 1 file changed, 33 insertions(+), 31 deletions(-)
---
diff --git a/python3-virtualenv.spec b/python3-virtualenv.spec
index de9f5a3..7f12e18 100644
--- a/python3-virtualenv.spec
+++ b/python3-virtualenv.spec
@@ -1,8 +1,7 @@
-# TODO: finish doc and tests (BRs)
 #
 # Conditional build:
-%bcond_with	doc	# Sphinx documentation
-%bcond_with	tests	# pytest tests
+%bcond_with	doc	# Sphinx documentation (not in sdist)
+%bcond_without	tests	# pytest tests
 
 %define module	virtualenv
 Summary:	Tool to create isolated Python environments
@@ -19,46 +18,44 @@ Patch0:		multilib.patch
 URL:		https://pypi.org/project/virtualenv/
 BuildRequires:	python3 >= 1:3.8
 BuildRequires:	python3-build
-BuildRequires:	python3-hatch-vcs
-BuildRequires:	python3-hatchling
+BuildRequires:	python3-hatch-vcs >= 0.3
+BuildRequires:	python3-hatchling >= 1.17.1
 BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.8
 %if %{with tests}
 # runtime dependencies
-BuildRequires:	python3-distlib >= 0.3.1
+BuildRequires:	python3-distlib >= 0.3.7
 BuildRequires:	python3-distlib < 1
-BuildRequires:	python3-filelock >= 3.2
+BuildRequires:	python3-filelock >= 3.12.2
 BuildRequires:	python3-filelock < 4
-BuildRequires:	python3-platformdirs >= 2
-BuildRequires:	python3-platformdirs < 3
-BuildRequires:	python3-pytest
+BuildRequires:	python3-platformdirs >= 3.9.1
+BuildRequires:	python3-platformdirs < 5
 # test-only dependencies
-BuildRequires:	python-coverage >= 4
-BuildRequires:	python-coverage-enable-subprocess >= 1
-BuildRequires:	python-flaky >= 3
-BuildRequires:	python-packaging >= 20.0
-BuildRequires:	python-pytest >= 4
-BuildRequires:	python-pytest-env >= 0.6.2
-BuildRequires:	python-pytest-freezegun >= 0.4.1
-BuildRequires:	python-pytest-mock >= 2
-BuildRequires:	python-pytest-randomly >= 1
-BuildRequires:	python-pytest-timeout >= 1
+BuildRequires:	python3-flaky >= 3.7
+BuildRequires:	python3-packaging >= 23.1
+BuildRequires:	python3-pytest >= 7.4
+BuildRequires:	python3-pytest-env >= 0.8.2
+BuildRequires:	python3-pytest-mock >= 3.11.1
+BuildRequires:	python3-pytest-randomly >= 3.12
+BuildRequires:	python3-pytest-timeout >= 2.1
+BuildRequires:	python3-setuptools >= 1:68
+BuildRequires:	python3-time-machine >= 2.10
+# coverage
+#BuildRequires:	python3-covdefaults >= 2.3
+#BuildRequires:	python3-coverage >= 7.2.7
+#BuildRequires:	python3-coverage-enable-subprocess >= 1
 %endif
 %if %{with doc}
-BuildRequires:	python3-sphinx-argparse >= 0.2.5
-BuildRequires:	python3-sphinx_rtd_theme >= 0.4.3
-BuildRequires:	python3-proselint >= 0.10.2
-BuildRequires:	python3-towncrier >= 21.3
-BuildRequires:	sphinx-pdg >= 3
+BuildRequires:	python3-furo >= 2023.7.26
+BuildRequires:	python3-sphinx_argparse >= 0.4
+BuildRequires:	python3-sphinxcontrib-towncrier >= 0.2.1a0
+BuildRequires:	python3-proselint >= 0.13
+BuildRequires:	python3-towncrier >= 23.6
+BuildRequires:	sphinx-pdg >= 7.1.2
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-distlib >= 0.3.1
-Requires:	python3-filelock >= 3.2
 Requires:	python3-modules >= 1:3.8
-Requires:	python3-platformdirs >= 2
-# for virtualenv-3 wrapper
-Requires:	python3-setuptools
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -102,7 +99,11 @@ Project. Zostało wydane na liberalnej licencji w stylu MIT.
 %py3_build_pyproject
 
 %if %{with tests}
-%{__python3} -m pytest tests
+# disabled test cases (2*2 variants) use network to populate venv
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=flaky.flaky_pytest_plugin,pytest_mock.plugin,time_machine \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests -k 'not test_can_build_c_extensions and not test_seed_link_via_app_data'
 %endif
 
 %if %{with doc}
@@ -113,6 +114,7 @@ Project. Zostało wydane na liberalnej licencji w stylu MIT.
 rm -rf $RPM_BUILD_ROOT
 
 %py3_install_pyproject
+
 cp -p $RPM_BUILD_ROOT%{_bindir}/virtualenv{,-3}
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-virtualenv.git/commitdiff/b88f02ed90fbea4138916408701d6f730975097f



More information about the pld-cvs-commit mailing list