diff --git a/python-virtualenv.changes b/python-virtualenv.changes index 1d1e05f..63adbd4 100644 --- a/python-virtualenv.changes +++ b/python-virtualenv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 13 11:27:16 UTC 2020 - Tomáš Chvátal + +- Update to 20.0.10: + * Complete rewrite and redesign of the virtualenv package + ------------------------------------------------------------------- Fri Mar 6 17:34:41 UTC 2020 - Tomáš Čech diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 7ed527d..6f7ab1b 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -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 diff --git a/virtualenv-16.7.10.tar.gz b/virtualenv-16.7.10.tar.gz deleted file mode 100644 index 839616d..0000000 --- a/virtualenv-16.7.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e88fdcb08b0ecb11da97868f463dd06275923f50d87f4b9c8b2fc0994eec40f4 -size 5121882 diff --git a/virtualenv-20.0.10.tar.gz b/virtualenv-20.0.10.tar.gz new file mode 100644 index 0000000..1a8ab15 --- /dev/null +++ b/virtualenv-20.0.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8512e83f1d90f8e481024d58512ac9c053bf16f54d9138520a0929396820dd78 +size 7985991