Update to 20.19.0 (rhbz#2167499)

epel9
Lumir Balhar 2 years ago committed by Miro Hrončok
parent 335f8b513f
commit 57c0e1d909

@ -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

@ -1,4 +1,4 @@
From 9c2b528d300f4b8e4ccc7b81d68fdfd054214f80 Mon Sep 17 00:00:00 2001 From 19ebd526eacab84dfb3e432e968125ec95f95e89 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com> From: Lumir Balhar <lbalhar@redhat.com>
Date: Thu, 27 Oct 2022 11:50:54 +0200 Date: Thu, 27 Oct 2022 11:50:54 +0200
Subject: [PATCH] RPM wheels Subject: [PATCH] RPM wheels
@ -96,12 +96,12 @@ index f31ecf6..d7a0f5a 100644
pip_version = name_to_whl["pip"].version_tuple if "pip" in name_to_whl else None pip_version = name_to_whl["pip"].version_tuple if "pip" in name_to_whl else None
installer_class = self.installer_class(pip_version) installer_class = self.installer_class(pip_version)
diff --git a/src/virtualenv/seed/wheels/embed/__init__.py b/src/virtualenv/seed/wheels/embed/__init__.py diff --git a/src/virtualenv/seed/wheels/embed/__init__.py b/src/virtualenv/seed/wheels/embed/__init__.py
index 4d3108e..e6e2730 100644 index f779e07..806fff3 100644
--- a/src/virtualenv/seed/wheels/embed/__init__.py --- a/src/virtualenv/seed/wheels/embed/__init__.py
+++ b/src/virtualenv/seed/wheels/embed/__init__.py +++ b/src/virtualenv/seed/wheels/embed/__init__.py
@@ -47,8 +47,11 @@ BUNDLE_SUPPORT = { @@ -52,8 +52,11 @@ BUNDLE_SUPPORT = {
} }
MAX = "3.11" MAX = "3.12"
+# Redefined here because bundled wheels are removed in RPM build +# Redefined here because bundled wheels are removed in RPM build
+BUNDLE_SUPPORT = None +BUNDLE_SUPPORT = None

@ -1 +1 @@
SHA512 (virtualenv-20.17.1.tar.gz) = 6b32145f431f6b1f4c2a2ed888e8b9e5cb941e04ea1e68830053dceac80ee8bbf2286c1f353951d50d4b8417b8d81ee4b30dae597c94f2a3baf50f174f7ef4d4 SHA512 (virtualenv-20.19.0.tar.gz) = 75c63fea11ad070985cb2ba17adfcb7e1739e8798b80919cc17a527d7180f68a04197436b44146cd07423d8d2e4982d1716b0e18159add5ce6a748b31f6b2776

Loading…
Cancel
Save