Hello community, here is the log from the commit of package python-virtualenv for openSUSE:Factory checked in at 2013-07-29 21:11:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-virtualenv (Old) and /work/SRC/openSUSE:Factory/.python-virtualenv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-virtualenv" Changes: -------- --- /work/SRC/openSUSE:Factory/python-virtualenv/python-virtualenv.changes 2013-03-17 10:13:35.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-virtualenv.new/python-virtualenv.changes 2013-07-29 21:12:01.000000000 +0200 @@ -1,0 +2,39 @@ +Mon Jul 29 15:28:21 UTC 2013 - [email protected] + +- 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 - [email protected] + +- Use update-alternatives for parallel-installability with Python3 version + +------------------------------------------------------------------- +Mon Jul 29 14:29:55 UTC 2013 - [email protected] + +- 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) + +------------------------------------------------------------------- Old: ---- virtualenv-1.9.1.tar.bz2 New: ---- virtualenv-1.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-virtualenv.spec ++++++ --- /var/tmp/diff_new_pack.MMzoXF/_old 2013-07-29 21:12:02.000000000 +0200 +++ /var/tmp/diff_new_pack.MMzoXF/_new 2013-07-29 21:12:02.000000000 +0200 @@ -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 @@ %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 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
