1
0

Accepting request 672297 from home:nicolasbock:branches:devel:languages:python

- Version bump to 16.1.0
- Removed patch
  - pypa-virtualenv-1189.patch

OBS-URL: https://build.opensuse.org/request/show/672297
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=65
This commit is contained in:
Matej Cepl 2019-02-07 16:59:32 +00:00 committed by Git OBS Bridge
parent df7d030963
commit ee3b258502
5 changed files with 14 additions and 34 deletions

View File

@ -1,26 +0,0 @@
From 786675a83f494202cb9522d57a98e5ddc0d7405e Mon Sep 17 00:00:00 2001
From: Ashley Whetter <asw@dneg.com>
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):
"""

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 5 20:45:40 UTC 2019 - Nicolas Bock <nicolas.bock@suse.com>
- Version bump to 16.1.0
- Removed patch
- pypa-virtualenv-1189.patch
-------------------------------------------------------------------
Sat Aug 4 14:42:16 UTC 2018 - matwey.kornilov@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-virtualenv
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,20 +12,19 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-virtualenv
Version: 15.1.0
Version: 16.1.0
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
Patch01: pypa-virtualenv-1189.patch
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@ -61,7 +60,6 @@ libraries either).
%prep
%setup -q -n virtualenv-%{version}
%patch01 -p1
%build
%python_build
@ -71,6 +69,7 @@ libraries either).
%python_clone -a %{buildroot}%{_bindir}/virtualenv
%check
export PYTHONPATH=src
# test broken upstream https://github.com/pypa/virtualenv/issues/530
%python_expand py.test-%{$python_bin_suffix} -k 'not test_always_copy_option' -vv

View File

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

3
virtualenv-16.1.0.tar.gz Normal file
View File

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