1
0
python-virtualenv/python-virtualenv.spec

95 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-virtualenv
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-virtualenv
- Update to 16.7.5: * fix powershell activation when sourced (#1398) * fix regression - sh activation script not working under sh (only bash) (#1396) * activate.ps1 syntax and style updated to follow PSStyleAnalyzer rules (#1371) * Allow creating virtual environments for 3.xy. (#1385) * Report error when running activate scripts directly * Extend the LICENSE search paths list by lib64/pythonX.Y to support Linux vendors who install their Python to /usr/lib64/pythonX.Y * Raise an error if the target path contains the operating systems path separator (using this would break our activation scripts) * Drop Jython support * Add tests covering prompt manipulation during activation/deactivation, and harmonize behavior of all supported shells - Update to 16.4.3: * Revert the symlink fix, causing debian packaging issues. (#1390) * Fix license() builtin by copying the LICENSE file into the virtualenv - by asottile. (#1317) * fixes the scenario where the python base install is symlinked with relative symlinks (#490) * Use importlib over imp in virtualenv.py for python >= 3.4 - by Anthony Sottile (#1293) * Copy or link PyPy header files instead of include directory itself (#1302) * Allow virtualenv creation with older pip not having config command correspondingly disabling configuration related features (such as pip cert setting) in this case. (#1303) * Use importlib over deprecated imp` in ``distutils/__init__.py for python 3 - by Anthony Sottile (#955) * Preserve cert option defined in pip.conf or environment variable. (#1273) * fixed a ResourceWarning: unclosed file in call_subprocess() - by Mickaël Schoentgen (#1277) * pre-import some built-in modules in site.py on PyPy according to PyPy's site.py - by microdog (#1281) * Copy files from sys.exec_prefix only if it is really different path than used prefix, bugfix for #1270 (#1282) * copyfile handles relative symlinks and symlinks to symlinks, avoiding problems when Python was installed using stow or homebrew. (#268) * Fix preserving of original path when using fish and a subshell. (#904) * Drop the source layout of the project, going back to how the source was laid out before 16.1.0. (#1241) * Fix bootstrap script generation broken with 16.0.0. Support now both CPython, pypy, jython. (#1244) * lib64 symlink is again relative (as was with < 16.1.0). (#1248) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=70
2019-09-16 12:44:26 +02:00
Version: 16.7.5
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
BuildRequires: %{python_module mock}
- Update to 16.7.5: * fix powershell activation when sourced (#1398) * fix regression - sh activation script not working under sh (only bash) (#1396) * activate.ps1 syntax and style updated to follow PSStyleAnalyzer rules (#1371) * Allow creating virtual environments for 3.xy. (#1385) * Report error when running activate scripts directly * Extend the LICENSE search paths list by lib64/pythonX.Y to support Linux vendors who install their Python to /usr/lib64/pythonX.Y * Raise an error if the target path contains the operating systems path separator (using this would break our activation scripts) * Drop Jython support * Add tests covering prompt manipulation during activation/deactivation, and harmonize behavior of all supported shells - Update to 16.4.3: * Revert the symlink fix, causing debian packaging issues. (#1390) * Fix license() builtin by copying the LICENSE file into the virtualenv - by asottile. (#1317) * fixes the scenario where the python base install is symlinked with relative symlinks (#490) * Use importlib over imp in virtualenv.py for python >= 3.4 - by Anthony Sottile (#1293) * Copy or link PyPy header files instead of include directory itself (#1302) * Allow virtualenv creation with older pip not having config command correspondingly disabling configuration related features (such as pip cert setting) in this case. (#1303) * Use importlib over deprecated imp` in ``distutils/__init__.py for python 3 - by Anthony Sottile (#955) * Preserve cert option defined in pip.conf or environment variable. (#1273) * fixed a ResourceWarning: unclosed file in call_subprocess() - by Mickaël Schoentgen (#1277) * pre-import some built-in modules in site.py on PyPy according to PyPy's site.py - by microdog (#1281) * Copy files from sys.exec_prefix only if it is really different path than used prefix, bugfix for #1270 (#1282) * copyfile handles relative symlinks and symlinks to symlinks, avoiding problems when Python was installed using stow or homebrew. (#268) * Fix preserving of original path when using fish and a subshell. (#904) * Drop the source layout of the project, going back to how the source was laid out before 16.1.0. (#1241) * Fix bootstrap script generation broken with 16.0.0. Support now both CPython, pypy, jython. (#1244) * lib64 symlink is again relative (as was with < 16.1.0). (#1248) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=70
2019-09-16 12:44:26 +02:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pypiserver}
BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
- Update to 16.7.5: * fix powershell activation when sourced (#1398) * fix regression - sh activation script not working under sh (only bash) (#1396) * activate.ps1 syntax and style updated to follow PSStyleAnalyzer rules (#1371) * Allow creating virtual environments for 3.xy. (#1385) * Report error when running activate scripts directly * Extend the LICENSE search paths list by lib64/pythonX.Y to support Linux vendors who install their Python to /usr/lib64/pythonX.Y * Raise an error if the target path contains the operating systems path separator (using this would break our activation scripts) * Drop Jython support * Add tests covering prompt manipulation during activation/deactivation, and harmonize behavior of all supported shells - Update to 16.4.3: * Revert the symlink fix, causing debian packaging issues. (#1390) * Fix license() builtin by copying the LICENSE file into the virtualenv - by asottile. (#1317) * fixes the scenario where the python base install is symlinked with relative symlinks (#490) * Use importlib over imp in virtualenv.py for python >= 3.4 - by Anthony Sottile (#1293) * Copy or link PyPy header files instead of include directory itself (#1302) * Allow virtualenv creation with older pip not having config command correspondingly disabling configuration related features (such as pip cert setting) in this case. (#1303) * Use importlib over deprecated imp` in ``distutils/__init__.py for python 3 - by Anthony Sottile (#955) * Preserve cert option defined in pip.conf or environment variable. (#1273) * fixed a ResourceWarning: unclosed file in call_subprocess() - by Mickaël Schoentgen (#1277) * pre-import some built-in modules in site.py on PyPy according to PyPy's site.py - by microdog (#1281) * Copy files from sys.exec_prefix only if it is really different path than used prefix, bugfix for #1270 (#1282) * copyfile handles relative symlinks and symlinks to symlinks, avoiding problems when Python was installed using stow or homebrew. (#268) * Fix preserving of original path when using fish and a subshell. (#904) * Drop the source layout of the project, going back to how the source was laid out before 16.1.0. (#1241) * Fix bootstrap script generation broken with 16.0.0. Support now both CPython, pypy, jython. (#1244) * lib64 symlink is again relative (as was with < 16.1.0). (#1248) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=70
2019-09-16 12:44:26 +02:00
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%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.
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
libraries can break the application.
Also, what if you cant install packages into the global site-packages
directory? For instance, on a shared host.
In all these cases, virtualenv can help you. It creates an environment that
has its own installation directories, that doesnt share libraries with other
virtualenv environments (and optionally doesnt use the globally installed
libraries either).
%prep
%setup -q -n virtualenv-%{version}
%build
%python_build
%install
%python_install
- Update to 16.7.5: * fix powershell activation when sourced (#1398) * fix regression - sh activation script not working under sh (only bash) (#1396) * activate.ps1 syntax and style updated to follow PSStyleAnalyzer rules (#1371) * Allow creating virtual environments for 3.xy. (#1385) * Report error when running activate scripts directly * Extend the LICENSE search paths list by lib64/pythonX.Y to support Linux vendors who install their Python to /usr/lib64/pythonX.Y * Raise an error if the target path contains the operating systems path separator (using this would break our activation scripts) * Drop Jython support * Add tests covering prompt manipulation during activation/deactivation, and harmonize behavior of all supported shells - Update to 16.4.3: * Revert the symlink fix, causing debian packaging issues. (#1390) * Fix license() builtin by copying the LICENSE file into the virtualenv - by asottile. (#1317) * fixes the scenario where the python base install is symlinked with relative symlinks (#490) * Use importlib over imp in virtualenv.py for python >= 3.4 - by Anthony Sottile (#1293) * Copy or link PyPy header files instead of include directory itself (#1302) * Allow virtualenv creation with older pip not having config command correspondingly disabling configuration related features (such as pip cert setting) in this case. (#1303) * Use importlib over deprecated imp` in ``distutils/__init__.py for python 3 - by Anthony Sottile (#955) * Preserve cert option defined in pip.conf or environment variable. (#1273) * fixed a ResourceWarning: unclosed file in call_subprocess() - by Mickaël Schoentgen (#1277) * pre-import some built-in modules in site.py on PyPy according to PyPy's site.py - by microdog (#1281) * Copy files from sys.exec_prefix only if it is really different path than used prefix, bugfix for #1270 (#1282) * copyfile handles relative symlinks and symlinks to symlinks, avoiding problems when Python was installed using stow or homebrew. (#268) * Fix preserving of original path when using fish and a subshell. (#904) * Drop the source layout of the project, going back to how the source was laid out before 16.1.0. (#1241) * Fix bootstrap script generation broken with 16.0.0. Support now both CPython, pypy, jython. (#1244) * lib64 symlink is again relative (as was with < 16.1.0). (#1248) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=70
2019-09-16 12:44:26 +02:00
%python_expand fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/virtualenv
%check
- Update to 16.7.5: * fix powershell activation when sourced (#1398) * fix regression - sh activation script not working under sh (only bash) (#1396) * activate.ps1 syntax and style updated to follow PSStyleAnalyzer rules (#1371) * Allow creating virtual environments for 3.xy. (#1385) * Report error when running activate scripts directly * Extend the LICENSE search paths list by lib64/pythonX.Y to support Linux vendors who install their Python to /usr/lib64/pythonX.Y * Raise an error if the target path contains the operating systems path separator (using this would break our activation scripts) * Drop Jython support * Add tests covering prompt manipulation during activation/deactivation, and harmonize behavior of all supported shells - Update to 16.4.3: * Revert the symlink fix, causing debian packaging issues. (#1390) * Fix license() builtin by copying the LICENSE file into the virtualenv - by asottile. (#1317) * fixes the scenario where the python base install is symlinked with relative symlinks (#490) * Use importlib over imp in virtualenv.py for python >= 3.4 - by Anthony Sottile (#1293) * Copy or link PyPy header files instead of include directory itself (#1302) * Allow virtualenv creation with older pip not having config command correspondingly disabling configuration related features (such as pip cert setting) in this case. (#1303) * Use importlib over deprecated imp` in ``distutils/__init__.py for python 3 - by Anthony Sottile (#955) * Preserve cert option defined in pip.conf or environment variable. (#1273) * fixed a ResourceWarning: unclosed file in call_subprocess() - by Mickaël Schoentgen (#1277) * pre-import some built-in modules in site.py on PyPy according to PyPy's site.py - by microdog (#1281) * Copy files from sys.exec_prefix only if it is really different path than used prefix, bugfix for #1270 (#1282) * copyfile handles relative symlinks and symlinks to symlinks, avoiding problems when Python was installed using stow or homebrew. (#268) * Fix preserving of original path when using fish and a subshell. (#904) * Drop the source layout of the project, going back to how the source was laid out before 16.1.0. (#1241) * Fix bootstrap script generation broken with 16.0.0. Support now both CPython, pypy, jython. (#1244) * lib64 symlink is again relative (as was with < 16.1.0). (#1248) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=70
2019-09-16 12:44:26 +02:00
# 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)'
%post
%python_install_alternative virtualenv
%postun
%python_uninstall_alternative virtualenv
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/virtualenv*
%python_alternative %{_bindir}/virtualenv
%pycache_only %{python_sitelib}/__pycache__
%changelog