From c402f8639f6c9b6ffce3df4861f9c13c73d6e496f300d08855ec08eb25856504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2020 11:31:08 +0000 Subject: [PATCH 1/5] - 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 --- python-virtualenv.changes | 6 ++++ python-virtualenv.spec | 58 +++++++++++++++++++++++---------------- virtualenv-16.7.10.tar.gz | 3 -- virtualenv-20.0.10.tar.gz | 3 ++ 4 files changed, 44 insertions(+), 26 deletions(-) delete mode 100644 virtualenv-16.7.10.tar.gz create mode 100644 virtualenv-20.0.10.tar.gz 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 From d563b0681a95d627325deb15e637f26d758c6972435366c8107e5f9b6bbfdb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Mar 2020 08:57:23 +0000 Subject: [PATCH 2/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=78 --- python-virtualenv.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 6f7ab1b..8e9d052 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -101,9 +101,10 @@ libraries either). # 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 +# test_create_no_seed - upstream notified, no idea # 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)' +%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 or test_create_no_seed)' %endif %if !%{with test} From d68da6fa55a1b84cdf76e55ca3b22e03adb12a6288d35b427948152c472a495f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 19 Mar 2020 07:06:16 +0000 Subject: [PATCH 3/5] - Update to 20.0.11: - Allow the test suite to pass even when called with the system Python - to help repackaging of the tool for Linux distributions - by :user:`gaborbernat`. (`#1721 `_) - Other minor fixes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=79 --- python-virtualenv.changes | 8 ++++++++ python-virtualenv.spec | 9 ++------- virtualenv-20.0.10.tar.gz | 3 --- virtualenv-20.0.11.tar.gz | 3 +++ 4 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 virtualenv-20.0.10.tar.gz create mode 100644 virtualenv-20.0.11.tar.gz diff --git a/python-virtualenv.changes b/python-virtualenv.changes index 63adbd4..44108b8 100644 --- a/python-virtualenv.changes +++ b/python-virtualenv.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 19 06:59:10 UTC 2020 - Tomáš Chvátal + +- Update to 20.0.11: + - Allow the test suite to pass even when called with the system Python - to help repackaging of the tool for Linux + distributions - by :user:`gaborbernat`. (`#1721 `_) + - Other minor fixes + ------------------------------------------------------------------- Fri Mar 13 11:27:16 UTC 2020 - Tomáš Chvátal diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 8e9d052..1df3e73 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -26,7 +26,7 @@ %bcond_with test %endif Name: python-virtualenv%{psuffix} -Version: 20.0.10 +Version: 20.0.11 Release: 0 Summary: Virtual Python Environment builder License: MIT @@ -98,13 +98,8 @@ libraries either). %check %if %{with test} -# 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 -# test_create_no_seed - upstream notified, no idea -# 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 or test_create_no_seed)' +%pytest %endif %if !%{with test} diff --git a/virtualenv-20.0.10.tar.gz b/virtualenv-20.0.10.tar.gz deleted file mode 100644 index 1a8ab15..0000000 --- a/virtualenv-20.0.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8512e83f1d90f8e481024d58512ac9c053bf16f54d9138520a0929396820dd78 -size 7985991 diff --git a/virtualenv-20.0.11.tar.gz b/virtualenv-20.0.11.tar.gz new file mode 100644 index 0000000..6082b1f --- /dev/null +++ b/virtualenv-20.0.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7ac634372748fa4e63e956f8e6981442747fcb4a209876b34e1ff5018d3cfe3 +size 7989583 From 51ea678ea95376e6ce7cab55275dfa86bf28091086be6b7caa987b7ec4e03d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 19 Mar 2020 07:21:58 +0000 Subject: [PATCH 4/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=80 --- python-virtualenv.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 1df3e73..a614ccc 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -32,8 +32,8 @@ 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 setuptools_scm} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 41.0.0} +BuildRequires: %{python_module setuptools_scm >= 2} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-appdirs >= 1.4.3 From add7a3666bea078109649db0892aa88342fe86cc3d365f5c4267776e0e5f551f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 16 Apr 2020 09:06:32 +0000 Subject: [PATCH 5/5] - Update to 20.0.17: * minor fixes * update of embedded modules OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=81 --- python-virtualenv.changes | 7 +++++++ python-virtualenv.spec | 2 +- virtualenv-20.0.11.tar.gz | 3 --- virtualenv-20.0.17.tar.gz | 3 +++ 4 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 virtualenv-20.0.11.tar.gz create mode 100644 virtualenv-20.0.17.tar.gz diff --git a/python-virtualenv.changes b/python-virtualenv.changes index 44108b8..34a12e3 100644 --- a/python-virtualenv.changes +++ b/python-virtualenv.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Apr 16 08:31:23 UTC 2020 - Tomáš Chvátal + +- Update to 20.0.17: + * minor fixes + * update of embedded modules + ------------------------------------------------------------------- Thu Mar 19 06:59:10 UTC 2020 - Tomáš Chvátal diff --git a/python-virtualenv.spec b/python-virtualenv.spec index a614ccc..b05e42d 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -26,7 +26,7 @@ %bcond_with test %endif Name: python-virtualenv%{psuffix} -Version: 20.0.11 +Version: 20.0.17 Release: 0 Summary: Virtual Python Environment builder License: MIT diff --git a/virtualenv-20.0.11.tar.gz b/virtualenv-20.0.11.tar.gz deleted file mode 100644 index 6082b1f..0000000 --- a/virtualenv-20.0.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7ac634372748fa4e63e956f8e6981442747fcb4a209876b34e1ff5018d3cfe3 -size 7989583 diff --git a/virtualenv-20.0.17.tar.gz b/virtualenv-20.0.17.tar.gz new file mode 100644 index 0000000..fa230ce --- /dev/null +++ b/virtualenv-20.0.17.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8364ec469084046c779c9a11ae6340094e8a0bf1d844330fc55c1cefe67c172 +size 7991942