Accepting request 1082837 from home:jayvdb:branches:devel:languages:python

- Update to v20.22.0

deps on https://build.opensuse.org/request/show/1082836

OBS-URL: https://build.opensuse.org/request/show/1082837
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=130
This commit is contained in:
Dirk Mueller 2023-04-27 21:50:45 +00:00 committed by Git OBS Bridge
parent ed742ad74b
commit 3dc1de39b7
4 changed files with 71 additions and 19 deletions

View File

@ -1,3 +1,52 @@
-------------------------------------------------------------------
Tue Apr 25 03:06:17 UTC 2023 - John Vandenberg <jayvdb@gmail.com>
- Update to v20.22.0
* Drop support for creating Python <=3.6 (including 2) interpreters.
Removed pip of 20.3.4, 21.3.1; wheel of 0.37.1; setuptools of 59.6.0, 44.1.1, 50.3.2
- from v20.21.1
* Add tox.ini to sdist
* Move the use of 'let' in nushell to ensure compatibility with future
releases of nushell, where 'let' no longer assumes that its initializer
is a full expressions.
* The nushell command 'str collect' has been superseded by the
'str join' command. The activate.nu script has been updated to
reflect this change.
* Upgrade embedded wheels:
+ wheel to 0.40.0 from 0.38.4
+ setuptools to 67.6.1 from 67.4.0
+ pip to 23.1 from 23.0.1
- from v20.21.0
* Make closure syntax explicitly starts with {||.
* Add print command to nushell print_prompt to ensure compatibility with
future release of nushell, where intermediate commands no longer print
their result to stdout.
* Do not assume the default encoding.
* Make ReentrantFileLock thread-safe and, thereby, fix race conditio
in virtualenv.cli_run - by :user:`radoering`.
- from v20.20.0
* Change environment variable existence check in Nushell activation
script to not use deprecated command.
* Discover CPython implementations distributed on Windows by any organization.
* Upgrade embedded setuptools to 67.4.0 from 67.1.0 and pip to 23.0.1 from 23.0
- from v20.19.0
* Allow platformdirs version 3
- from v20.18.0
* Drop 3.6 runtime support (can still create 2.7+)
* Fix broken prompt in Nushell when activating virtual environment.
* Bump embedded pip to 23.0 and setuptools to 67.1.
- from v20.17.1
* A py or python spec means any Python rather than CPython.
* Make activate.nu respect VIRTUAL_ENV_DISABLE_PROMPT
and not set the prompt if reqeusted.
- from v20.17.0
* Change Nushell activation script to be a module meant to be
activated as an overlay.
* Update operator used in Nushell activation script to be
compatible with future versions.
* Do not use deprecated API from importlib.resources on Python 3.10 or later.
* Upgrade embedded setuptools to 65.6.3 from 65.5.1.
-------------------------------------------------------------------
Fri Apr 21 12:38:34 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -28,46 +28,43 @@
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-virtualenv%{psuffix}
Version: 20.16.7
Version: 20.22.0
Release: 0
Summary: Virtual Python Environment builder
License: MIT
URL: http://www.virtualenv.org/
Source: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
BuildRequires: %{python_module distlib >= 0.3.1}
BuildRequires: %{python_module filelock >= 3.0.0}
BuildRequires: %{python_module importlib-metadata >= 0.12 if %python-base < 3.8}
BuildRequires: %{python_module distlib >= 0.3.6}
BuildRequires: %{python_module filelock >= 3.11}
BuildRequires: %{python_module hatchling >= 1.14}
BuildRequires: %{python_module hatch-vcs >= 0.3}
BuildRequires: %{python_module importlib-metadata >= 6.4.1 if %python-base < 3.8}
BuildRequires: %{python_module importlib_resources >= 1.0 if %python-base < 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module platformdirs >= 3.2}
BuildRequires: %{python_module setuptools >= 41.0.0}
BuildRequires: %{python_module setuptools_scm >= 2}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-backports.entry_points_selectable >= 1.0.4
Requires: python-distlib >= 0.3.1
Requires: python-filelock >= 3.0.0
Requires: python-platformdirs >= 2
Requires: python-distlib >= 0.3.6
Requires: python-filelock >= 3.11
Requires: python-platformdirs >= 3.2
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%if 0%{python_version_nodots} < 38
Requires: python-importlib-metadata >= 0.12
Requires: python-importlib-metadata >= 6.4.1
%endif
%if 0%{python_version_nodots} < 37
Requires: python-importlib_resources >= 1.0
%endif
%ifpython2
Requires: python-contextlib2 >= 0.6.0
Requires: python-pathlib2 >= 2.3.3
%endif
%if %{with test}
BuildRequires: %{python_module backports.entry_points_selectable >= 1.0.4}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module flaky >= 3}
BuildRequires: %{python_module packaging >= 20.0}
BuildRequires: %{python_module platformdirs >= 2}
BuildRequires: %{python_module pytest >= 4.0.0}
BuildRequires: %{python_module pytest-env >= 0.6.2}
BuildRequires: %{python_module pytest-freezegun >= 0.4.1}
@ -105,9 +102,12 @@ rm -r tests/unit/activation
%pyproject_wheel
%install
%if ! %{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
rm %{buildroot}%{_bindir}/virtualenv
%else
%python_clone -a %{buildroot}%{_bindir}/virtualenv
%endif
@ -121,6 +121,9 @@ donttest="test_seed_link_via_app_data"
# gh#pypa/virtualenv!2431
donttest+=" or test_py_pyc_missing"
%pytest -k "not ($donttest)"
# Uninstall everything to avoid errors of files not being packaged
%python_expand rm -r %{buildroot}%{$python_sitelib}
%endif
%if !%{with test}
@ -132,7 +135,7 @@ donttest+=" or test_py_pyc_missing"
%files %{python_files}
%license LICENSE
%doc README.md docs/changelog.rst
%doc README.md
%{python_sitelib}/virtualenv
%{python_sitelib}/virtualenv-%{version}*-info
%python_alternative %{_bindir}/virtualenv

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8691e3ff9387f743e00f6bb20f70121f5e4f596cae754531f2b3b3a1b1ac696e
size 12268638

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:278753c47aaef1a0f14e6db8a4c5e1e040e90aea654d0fc1dc7e0d8a42616cc3
size 6612036