|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: python-virtualenv
|
|
|
|
Name: python-virtualenv
|
|
|
|
Version: 20.17.1
|
|
|
|
Version: 20.19.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Tool to create isolated Python environments
|
|
|
|
Summary: Tool to create isolated Python environments
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -13,12 +13,6 @@ Patch1: rpm-wheels.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-distlib
|
|
|
|
|
|
|
|
BuildRequires: python3-filelock
|
|
|
|
|
|
|
|
BuildRequires: python3-platformdirs
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_without tests
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
@ -81,7 +75,6 @@ licensed under an MIT-style permissive license
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n virtualenv-%{version}
|
|
|
|
%autosetup -p1 -n virtualenv-%{version}
|
|
|
|
sed -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove the wheels provided by RPM packages
|
|
|
|
# Remove the wheels provided by RPM packages
|
|
|
|
rm src/virtualenv/seed/wheels/embed/pip-*
|
|
|
|
rm src/virtualenv/seed/wheels/embed/pip-*
|
|
|
@ -92,24 +85,28 @@ test ! -f src/virtualenv/seed/embed/wheels/*.whl
|
|
|
|
|
|
|
|
|
|
|
|
# Relax the upper bounds of some dependencies to their known available versions in EL 9
|
|
|
|
# Relax the upper bounds of some dependencies to their known available versions in EL 9
|
|
|
|
# We run tests and CI to verify nothing broke
|
|
|
|
# We run tests and CI to verify nothing broke
|
|
|
|
sed -i -e 's/distlib>=0.3.6/distlib>=0.3.2/' \
|
|
|
|
sed -i -e 's/distlib<1,>=0.3.6/distlib<1,>=0.3.2/' \
|
|
|
|
-e 's/filelock>=3.4.1/filelock>=3.3.1/' \
|
|
|
|
-e 's/filelock<4,>=3.4.1/filelock<4,>=3.3.1/' \
|
|
|
|
-e 's/platformdirs>=2.4/platformdirs>=2.3/' \
|
|
|
|
-e 's/platformdirs<4,>=2.4/platformdirs<4,>=2.3/' \
|
|
|
|
setup.cfg
|
|
|
|
pyproject.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# Build code
|
|
|
|
%pyproject_wheel
|
|
|
|
%{py3_build}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{py3_install}
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files virtualenv
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
mkdir tmp_path
|
|
|
|
# Existing dist-info folder confuses
|
|
|
|
ln -s $(realpath %{__python3}) tmp_path/python
|
|
|
|
# importlib.metadata entry points and
|
|
|
|
export PATH="$(pwd)/tmp_path:$PATH"
|
|
|
|
# that leads to failed tests where
|
|
|
|
unset SOURCE_DATE_EPOCH
|
|
|
|
# virtualenv is run via subprocess.
|
|
|
|
|
|
|
|
rm -rv *.dist-info
|
|
|
|
|
|
|
|
|
|
|
|
# Skip tests which requires internet or some extra dependencies
|
|
|
|
# Skip tests which requires internet or some extra dependencies
|
|
|
|
# Requires internet:
|
|
|
|
# Requires internet:
|
|
|
@ -133,19 +130,16 @@ PIP_CERT=/etc/pki/tls/certs/ca-bundle.crt \
|
|
|
|
not test_base_bootstrap_via_pip_invoke and \
|
|
|
|
not test_base_bootstrap_via_pip_invoke and \
|
|
|
|
not test_seed_link_via_app_data and \
|
|
|
|
not test_seed_link_via_app_data and \
|
|
|
|
not test_py_pyc_missing"
|
|
|
|
not test_py_pyc_missing"
|
|
|
|
|
|
|
|
|
|
|
|
rm -r tmp_path
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-virtualenv
|
|
|
|
%files -n python3-virtualenv -f %{pyproject_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%doc docs/*rst README.md
|
|
|
|
|
|
|
|
%{_bindir}/virtualenv
|
|
|
|
%{_bindir}/virtualenv
|
|
|
|
%{python3_sitelib}/virtualenv/
|
|
|
|
|
|
|
|
%{python3_sitelib}/virtualenv-*.egg-info/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Feb 09 2023 Lumír Balhar <lbalhar@redhat.com> - 20.19.0-1
|
|
|
|
|
|
|
|
- Update to 20.19.0 (rhbz#2167499)
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 30 2023 Miro Hrončok <mhroncok@redhat.com> - 20.17.1-2
|
|
|
|
* Mon Jan 30 2023 Miro Hrončok <mhroncok@redhat.com> - 20.17.1-2
|
|
|
|
- Use wheels from /usr/share/python3.11-wheels when creating Python 3.11 virtual environments
|
|
|
|
- Use wheels from /usr/share/python3.11-wheels when creating Python 3.11 virtual environments
|
|
|
|
- Require Python 3.11 wheels when Python 3.11 is installed
|
|
|
|
- Require Python 3.11 wheels when Python 3.11 is installed
|
|
|
|