Accepting request 1208017 from devel:languages:python
- Inject setuptools-wheel and tell the testsuite where to find it. OBS-URL: https://build.opensuse.org/request/show/1208017 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenv?expand=0&rev=68
This commit is contained in:
commit
0b611fe108
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 15 05:34:07 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Inject setuptools-wheel and tell the testsuite where to find it.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 29 12:43:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sat Jun 29 12:43:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ BuildRequires: %{python_module pytest-env >= 0.8.2}
|
|||||||
BuildRequires: %{python_module pytest-mock >= 3.11.1}
|
BuildRequires: %{python_module pytest-mock >= 3.11.1}
|
||||||
BuildRequires: %{python_module pytest-timeout >= 2.1}
|
BuildRequires: %{python_module pytest-timeout >= 2.1}
|
||||||
BuildRequires: %{python_module setuptools >= 68}
|
BuildRequires: %{python_module setuptools >= 68}
|
||||||
|
BuildRequires: %{python_module setuptools-wheel >= 68}
|
||||||
BuildRequires: %{python_module time-machine >= 2.10}
|
BuildRequires: %{python_module time-machine >= 2.10}
|
||||||
BuildRequires: %{python_module virtualenv = %{version}}
|
BuildRequires: %{python_module virtualenv = %{version}}
|
||||||
%endif
|
%endif
|
||||||
@ -105,13 +106,14 @@ rm -r tests/unit/activation
|
|||||||
%check
|
%check
|
||||||
# online tests downloads from pypi
|
# online tests downloads from pypi
|
||||||
donttest="test_seed_link_via_app_data"
|
donttest="test_seed_link_via_app_data"
|
||||||
# fails on python312 because it cannot find setuptools and wheel https://virtualenv.pypa.io/en/latest/changelog.html#features-20-23-0
|
# take the first wheels directory we can find, they all contain the same file
|
||||||
python312_extratest=" or test_can_build_c_extensions"
|
export PIP_FIND_LINKS=$(ls -1d /usr/lib/python3.*/wheels | head -n 1)
|
||||||
%pytest -k "not ($donttest ${$python_extratest})"
|
%pytest -k "not ($donttest)"
|
||||||
# test the special case with the bundles (for all flavors)
|
# test the special case with the bundles (for all flavors)
|
||||||
export VIRTUALENV_SETUPTOOLS=bundle
|
export VIRTUALENV_SETUPTOOLS=bundle
|
||||||
export VIRTUALENV_WHEEL=bundle
|
export VIRTUALENV_WHEEL=bundle
|
||||||
%pytest -k "${python312_extratest:4}"
|
donttest+=" or test_embed_wheel_versions"
|
||||||
|
%pytest -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -125,7 +127,7 @@ export VIRTUALENV_WHEEL=bundle
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/virtualenv
|
%{python_sitelib}/virtualenv
|
||||||
%{python_sitelib}/virtualenv-%{version}*-info
|
%{python_sitelib}/virtualenv-%{version}.dist-info
|
||||||
%python_alternative %{_bindir}/virtualenv
|
%python_alternative %{_bindir}/virtualenv
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user