diff --git a/python-virtualenv.changes b/python-virtualenv.changes index 9c072c3..7a1896f 100644 --- a/python-virtualenv.changes +++ b/python-virtualenv.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Mon Jul 29 15:28:21 UTC 2013 - speilicke@suse.com + +- Don't drop shipped setuptools / pip, they've been fetched from the + interwebs previously. It doesn't make sense to use the (currently + matching) system equivalents, it's meant to be self-contained + +------------------------------------------------------------------- +Mon Jul 29 14:39:38 UTC 2013 - speilicke@suse.com + +- Use update-alternatives for parallel-installability with Python3 version + +------------------------------------------------------------------- +Mon Jul 29 14:29:55 UTC 2013 - speilicke@suse.com + +- Update to version 1.10: + + BACKWARDS INCOMPATIBLE Dropped support for Python 2.5. The minimum supported + Python version is now Python 2.6. + + BACKWARDS INCOMPATIBLE Using virtualenv.py as an isolated script (i.e. + without an associated virtualenv_support directory) is no longer supported + for security reasons and will fail with an error. + + Along with this, --never-download is now always pinned to True, and is only + being maintained in the short term for backward compatibility (Pull #412). + + IMPORTANT Switched to the new setuptools (v0.9.7) which has been merged with + Distribute again and works for Python 2 and 3 with one codebase. The + --distribute and --setuptools options are now no-op. + + Updated to pip 1.4. + + Added support for PyPy3k + + Added the option to use a version number with the -p option to get the system + copy of that Python version (Windows only) + + Removed embedded ez_setup.py, distribute_setup.py and distribute_from_egg.py + files as part of switching to merged setuptools. + + Fixed --relocatable to work better on Windows. + + Fixed issue with readline on Windows. +- Spec clean: + + Depend on setuptools instead of distribute again + + Package README.rst + + Build HTML documentation and install it (instead of sources) + ------------------------------------------------------------------- Fri Mar 8 13:09:06 UTC 2013 - alexandre@exatati.com.br diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 424a2af..8e45928 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -16,27 +16,27 @@ # -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - Name: python-virtualenv -Version: 1.9.1 +Version: 1.10 Release: 0 Url: http://www.virtualenv.org/ Summary: Virtual Python Environment builder License: MIT Group: Development/Languages/Python -Source: virtualenv-%{version}.tar.bz2 +Source: https://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -Requires: python-distribute +# Documentation requirements +BuildRequires: python-Sphinx Requires: python-pip -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +Requires: python-setuptools +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 -%endif %description virtualenv is a tool to create isolated Python environments. @@ -62,19 +62,34 @@ libraries either). %prep %setup -q -n virtualenv-%{version} -rm virtualenv_support/*.{egg,gz} # Remove in-tree libraries that are available as packages too -sed -i "1d" virtualenv.py # Remove she-bang line for non-executable script %build python setup.py build +python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%pre +# Since /usr/bin/virtualenv became ghosted to be used with update-alternatives, we have to +# get rid of the old binary resulting from the non-update-alternativies-ified package: +[[ ! -L %{_bindir}/virtualenv ]] && rm -f %{_bindir}/virtualenv +exit 0 + +%post +update-alternatives \ + --install %{_bindir}/virtualenv virtualenv %{_bindir}/virtualenv-%{py_ver} 20 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove virtualenv %{_bindir}/virtualenv-%{py_ver} +fi + %files %defattr(-,root,root,-) -%doc AUTHORS.txt LICENSE.txt docs -%{_bindir}/virtualenv* +%doc LICENSE.txt README.rst build/sphinx/html +%ghost %{_bindir}/virtualenv +%{_bindir}/virtualenv-%{py_ver} %{python_sitelib}/virtualenv* %changelog diff --git a/virtualenv-1.10.tar.gz b/virtualenv-1.10.tar.gz new file mode 100644 index 0000000..574ebaf --- /dev/null +++ b/virtualenv-1.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0851ef23c188c819d4f6de3e82521ab1f63fa80e154d30bd823afef73f341b0 +size 1323297 diff --git a/virtualenv-1.9.1.tar.bz2 b/virtualenv-1.9.1.tar.bz2 deleted file mode 100644 index 7bd6851..0000000 --- a/virtualenv-1.9.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff1befb3852b089a288b087b932d1dc6b75ba0103b7aa3cca16bf5c1b6e8fd85 -size 1932065