- Update to 20.0.10:

* Complete rewrite and redesign of the virtualenv package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=77
This commit is contained in:
Tomáš Chvátal 2020-03-13 11:31:08 +00:00 committed by Git OBS Bridge
parent 595efcefd2
commit c402f8639f
4 changed files with 44 additions and 26 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 13 11:27:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 20.0.10:
* Complete rewrite and redesign of the virtualenv package
-------------------------------------------------------------------
Fri Mar 6 17:34:41 UTC 2020 - Tomáš Čech <sleep_walker@opensuse.org>

View File

@ -26,39 +26,50 @@
%bcond_with test
%endif
Name: python-virtualenv%{psuffix}
Version: 16.7.10
Version: 20.0.10
Release: 0
Summary: Virtual Python Environment builder
License: MIT
Group: Development/Languages/Python
URL: http://www.virtualenv.org/
Source: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
%if %{with test}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pypiserver}
BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv >= %{version}}
%endif
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-appdirs >= 1.4.3
Requires: python-distlib >= 0.3.0
Requires: python-filelock >= 3.0.0
Requires: python-importlib-metadata >= 0.12
Requires: python-importlib_resources >= 1.0
Requires: python-setuptools
Requires: python-six >= 1.9.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython2
Requires: python-contextlib2 >= 0.6.0
Requires: python-pathlib2 >= 2.3.3
%endif
%if %{with test}
BuildRequires: %{python_module coverage >= 4.5.1}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module packaging >= 20.0}
BuildRequires: %{python_module pytest >= 4.0.0}
BuildRequires: %{python_module pytest-env >= 0.6.2}
BuildRequires: %{python_module pytest-mock >= 2.0.0}
BuildRequires: %{python_module pytest-timeout >= 1.3.4}
BuildRequires: %{python_module virtualenv >= %{version}}
BuildRequires: fish
BuildRequires: python3-xonsh >= 0.9.13
BuildRequires: tcsh
%endif
%python_subpackages
%description
virtualenv is a tool to create isolated Python environments.
The basic problem being addressed is one of dependencies and versions, and
indirectly permissions. Imagine you have an application that needs version 1
of LibFoo, but another application requires version 2. How can you use both
these applications? If you install everything into
%{_libexecdir}/python2.4/site-packages (or whatever your platforms standard location
is), its easy to end up in a situation where you unintentionally upgrade an
application that shouldnt be upgraded.
of LibFoo, but another application requires version 2.
Or more generally, what if you want to install an application and leave it be?
If an application works, any change in its libraries or the versions of those
@ -81,16 +92,18 @@ libraries either).
%install
%if !%{with test}
%python_install
%python_expand fdupes %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/virtualenv
%endif
%check
%if %{with test}
# test_bootstrap is tied to python2 command calls, skip it
# test_always_copy_option does not handle system install dirs in /usr/lib64
# test_wheel_invocation_dash_p or test_use_from_wheel or test_wheel_contains or test_wheel_basic_invocation; online tests
%pytest -k 'not (test_always_copy_option or test_bootstrap or test_use_from_wheel or test_wheel_contains or test_wheel_basic_invocation or test_wheel_invocation_dash_p)'
# test_create_distutils_cfg - does not handle the lib64 we use
# test_failed_to_find_implementation
# test_py_info_cache_clear test_py_info_cached_symlink - unknown reason
# https://github.com/pypa/virtualenv/issues/1721
export LANG="en_US.UTF8"
%pytest -k 'not (test_create_distutils_cfg or test_failed_to_find_implementation or test_py_info_cache_clear or test_py_info_cached_symlink)'
%endif
%if !%{with test}
@ -101,11 +114,10 @@ libraries either).
%python_uninstall_alternative virtualenv
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%license LICENSE
%doc README.md docs/changelog.rst
%{python_sitelib}/virtualenv*
%python_alternative %{_bindir}/virtualenv
%pycache_only %{python_sitelib}/__pycache__
%endif
%changelog

View File

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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8512e83f1d90f8e481024d58512ac9c053bf16f54d9138520a0929396820dd78
size 7985991