Hello community, here is the log from the commit of package python-virtualenv for openSUSE:Factory checked in at 2018-07-23 17:58:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-virtualenv (Old) and /work/SRC/openSUSE:Factory/.python-virtualenv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-virtualenv" Mon Jul 23 17:58:56 2018 rev:32 rq:624537 version:15.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-virtualenv/python-virtualenv.changes 2018-02-22 14:58:04.883425500 +0100 +++ /work/SRC/openSUSE:Factory/.python-virtualenv.new/python-virtualenv.changes 2018-07-23 17:58:58.093082745 +0200 @@ -1,0 +2,11 @@ +Sun Jul 22 10:26:27 UTC 2018 - [email protected] + +- Enable tests, skip upstream failing one + +------------------------------------------------------------------- +Fri Jul 20 16:29:52 UTC 2018 - [email protected] + +- Fix failure of virtualenv --always-copy (bsc#1102096): + * pypa-virtualenv-1189.patch + +------------------------------------------------------------------- New: ---- pypa-virtualenv-1189.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-virtualenv.spec ++++++ --- /var/tmp/diff_new_pack.zmozwx/_old 2018-07-23 17:58:58.705081983 +0200 +++ /var/tmp/diff_new_pack.zmozwx/_new 2018-07-23 17:58:58.709081977 +0200 @@ -20,20 +20,20 @@ Name: python-virtualenv Version: 15.1.0 Release: 0 -Url: http://www.virtualenv.org/ Summary: Virtual Python Environment builder License: MIT Group: Development/Languages/Python -Source: https://pypi.io/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{python_module devel} +URL: http://www.virtualenv.org/ +Source: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz +Patch01: pypa-virtualenv-1189.patch +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires: python Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch - %python_subpackages %description @@ -42,7 +42,7 @@ 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 -/usr/lib/python2.4/site-packages (or whatever your platforms standard location +%{_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. @@ -60,6 +60,7 @@ %prep %setup -q -n virtualenv-%{version} +%patch01 -p1 %build %python_build @@ -68,15 +69,19 @@ %python_install %python_clone -a %{buildroot}%{_bindir}/virtualenv +%check +# test broken upstream https://github.com/pypa/virtualenv/issues/530 +%python_expand py.test-%{$python_bin_suffix} -k 'not test_always_copy_option' -vv + %post %python_install_alternative virtualenv %postun %python_uninstall_alternative virtualenv -%files %python_files -%defattr(-,root,root,-) -%doc LICENSE.txt README.rst +%files %{python_files} +%license LICENSE.txt +%doc README.rst %{python_sitelib}/virtualenv* %python_alternative %{_bindir}/virtualenv %pycache_only %{python_sitelib}/__pycache__ ++++++ pypa-virtualenv-1189.patch ++++++ >From 786675a83f494202cb9522d57a98e5ddc0d7405e Mon Sep 17 00:00:00 2001 From: Ashley Whetter <[email protected]> Date: Tue, 3 Jul 2018 10:48:19 -0700 Subject: [PATCH] Fixed failure to copy on platforms that use lib64 The current behaviour attempts to copy a "lib" folder from the current directory, instead of copying the "lib" folder inside the virtualenv. Therefore the copying would fail. This fixes that by always copying the "lib" folder from the virtualenv. --- virtualenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualenv.py b/virtualenv.py index c008a395..34c2f6a1 100755 --- a/virtualenv.py +++ b/virtualenv.py @@ -1559,7 +1559,7 @@ def fix_lib64(lib_dir, symlink=True): if symlink: os.symlink('lib', lib64_link) else: - copyfile('lib', lib64_link) + copyfile(lib_dir, lib64_link) def resolve_interpreter(exe): """
