1
0

Accepting request 480672 from home:tbechtold:branches:devel:languages:python

- Merge python-virtualenv-doc.spec into python-virtualenv.spec

- update to 15.1.0:
  * Support Python 3.6.
  * Upgrade setuptools to 28.0.0.
  * Upgrade pip to 9.0.1.
  * Don't install pre-release versions of pip, setuptools, or wheel from PyPI.
- Switch to singlespec approach

OBS-URL: https://build.opensuse.org/request/show/480672
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=54
This commit is contained in:
Jan Matejek 2017-03-20 14:42:07 +00:00 committed by Git OBS Bridge
parent 188bfb63a3
commit 4883e778af
6 changed files with 52 additions and 177 deletions

View File

@ -1,72 +0,0 @@
-------------------------------------------------------------------
Tue Mar 8 03:45:37 UTC 2016 - arun@gmx.de
- specfile:
* update copyright
- update to version 15.0.0:
* Remove the virtualenv-N.N script from the package; this can no
longer be correctly created from a wheel installation. Resolves
#851, #692
* Remove accidental runtime dependency on pip by extracting
certificate in the subprocess.
* Upgrade setuptools 20.2.2.
* Upgrade pip to 8.1.0.
- changes from version 14.0.6:
* Upgrade setuptools to 20.0
* Upgrade wheel to 0.29.0
* Fix an error where virtualenv didnt pass in a working ssl
certificate for pip, causing “weird” errors related to ssl.
- changes from version 14.0.5:
* Homogenize drive letter casing for both prefixes and
filenames. #858
- changes from version 14.0.4:
* Upgrade setuptools to 19.6.2
* Revert ac4ea65; only correct drive letter case. Fixes #856, #815
- changes from version 14.0.3:
* Upgrade setuptools to 19.6.1
- changes from version 14.0.2:
* Upgrade setuptools to 19.6
* Supress any errors from unset on different shells (PR #843)
* Normalize letter case for prefix path checking. Fixes #837
- changes from version 14.0.1:
* Upgrade from pip 8.0.0 to 8.0.2.
* Fix the default of --(no-)download to default to downloading.
- changes from version 14.0.0:
* BACKWARDS INCOMPATIBLE Drop support for Python 3.2.
* Upgrade setuptools to 19.4
* Upgrade wheel to 0.26.0
* Upgrade pip to 8.0.0
* Upgrade argparse to 1.4.0
* Added support for python-config script (PR #798)
* Updated activate.fish (PR #589) (PR #799)
* Account for a site.pyo correctly in some python implementations
(PR #759)
* Properly restore an empty PS1 (#407)
* Properly remove pydoc when deactivating
* Remove workaround for very old Mageia / Mandriva linuxes (PR #472)
* Added a space after virtualenv name in the prompt: (env) $PS1
* Make sure not to run a user install when creating the virtualenv
(PR #803)
* Remove virtualenv.pys path from sys.path when executing with a
new python. Fixes issue #779, #763 (PR #805)
* Remove use of () in .bat files so Program Files (x86) works #35
* Download new releases of the preinstalled software from PyPI when
there are new releases available. This behavior can be disabled
using --no-download.
* Make --no-setuptools, --no-pip, and --no-wheel independent of each
other.
-------------------------------------------------------------------
Wed Jul 29 12:41:42 UTC 2015 - toddrme2178@gmail.com
- Split documentation into subpackage to avoid
dependency loop

View File

@ -1,77 +0,0 @@
#
# spec file for package python-virtualenv-doc
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
Name: python-virtualenv-doc
Version: 15.0.0
Release: 0
Url: http://www.virtualenv.org/
Summary: Documentation for python-virtualenv
License: MIT
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
# Documentation requirements
BuildRequires: python-Sphinx
Requires: python-setuptools
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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
/usr/lib/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).
This package provides the documentation and help files for python-virtualenv.
%prep
%setup -q -n virtualenv-%{version}
%build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
mkdir -p %{buildroot}%{_docdir}/python-virtualenv
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-virtualenv/
%files
%defattr(-,root,root,-)
%doc LICENSE.txt
%{_docdir}/python-virtualenv/
%changelog

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Mar 16 15:56:54 UTC 2017 - tbechtold@suse.com
- Merge python-virtualenv-doc.spec into python-virtualenv.spec
-------------------------------------------------------------------
Thu Mar 16 14:58:46 UTC 2017 - tbechtold@suse.com
- update to 15.1.0:
* Support Python 3.6.
* Upgrade setuptools to 28.0.0.
* Upgrade pip to 9.0.1.
* Don't install pre-release versions of pip, setuptools, or wheel from PyPI.
- Switch to singlespec approach
-------------------------------------------------------------------
Tue Mar 8 03:45:37 UTC 2016 - arun@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-virtualenv
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -16,24 +16,25 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-virtualenv
Version: 15.0.0
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.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
Source: https://pypi.io/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
Requires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
Requires(post): update-alternatives
Requires(postun): update-alternatives
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
virtualenv is a tool to create isolated Python environments.
@ -57,35 +58,43 @@ has its own installation directories, that doesnt share libraries with other
virtualenv environments (and optionally doesnt use the globally installed
libraries either).
%package -n %{name}-doc
Summary: Documentation for python-virtualenv
Group: Development/Languages/Python
Provides: %{python_module virtualenv-doc = %{version}}
%description -n %{name}-doc
virtualenv is a tool to create isolated Python environments.
This package contains the documentation.
%prep
%setup -q -n virtualenv-%{version}
%build
python setup.py build
%python_build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# create update-alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/virtualenv %{buildroot}%{_bindir}/virtualenv
touch %{buildroot}%{_sysconfdir}/alternatives/virtualenv
%python_install
%python_clone -a %{buildroot}%{_bindir}/virtualenv
%post
update-alternatives \
--install %{_bindir}/virtualenv virtualenv %{_bindir}/virtualenv-%{py_ver} 20
%python_install_alternative virtualenv
%preun
if [ $1 -eq 0 ] ; then
update-alternatives --remove virtualenv %{_bindir}/virtualenv-%{py_ver}
fi
%python_uninstall_alternative virtualenv
%files
%files %python_files
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{_bindir}/virtualenv
%{_bindir}/virtualenv-%{py_ver}
%{python_sitelib}/virtualenv*
%ghost %{_sysconfdir}/alternatives/virtualenv
%python_alternative %{_bindir}/virtualenv
%pycache_only %{python_sitelib}/__pycache__
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc LICENSE.txt
%doc build/sphinx/html
%changelog

View File

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

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

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