From 77499bad92de28ab8762f8ce16b6301dc743d4b3b9b962a1c3c6bfbc21e5b465 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 29 Jul 2013 14:47:58 +0000 Subject: [PATCH] - Update to version 1.4: * **BACKWARD INCOMPATIBLE** pip now only installs stable versions by default, and offers a new --pre option to also find pre-release and development versions. (Pull #834) * **BACKWARD INCOMPATIBLE** Dropped support for Python 2.5. The minimum supported Python version for pip 1.4 is Python 2.6. * Added support for installing and building wheel archives. Thanks Daniel Holth, Marcus Smith, Paul Moore, and Michele Lacchia (Pull #845) * Applied security patch to pip's ssl support related to certificate DNS wildcard matching (http://bugs.python.org/issue17980). * To satisfy pip's setuptools requirement, pip now recommends setuptools>=0.8, not distribute. setuptools and distribute are now merged into one project called 'setuptools'. (Pull #1003) * pip will now warn when installing a file that is either hosted externally to the index or cannot be verified with a hash. In the future pip will default to not installing them and will require the flags --allow-external NAME, and --allow-insecure NAME respectively. (Pull #985) * If an already-downloaded or cached file has a bad hash, re-download it rather than erroring out. (Issue #963). * pip bundle and support for installing from pybundle files is now considered deprecated and will be removed in pip v1.5. * Fixed a number of issues (#413, #709, #634, #602, and #939) related to cleaning up and not reusing build directories. (Pull #865, #948) * Added a User Agent so that pip is identifiable in logs. (Pull #901) * Added ssl and --user support to get-pip.py. Thanks Gabriel de Perthuis. (Pull #895) * Fixed the proxy support, which was broken in pip 1.3.x (Pull #840) * Fixed issue #32 - pip fails when server does not send content-type header. Thanks Hugo Lopes Tavares and Kelsey Hightower (Pull #872). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=26 --- pip-1.3.1.tar.gz | 3 --- pip-1.4.tar.gz | 3 +++ python-pip.changes | 60 +++++++++++++++++++++++++++++++++++++--------- python-pip.spec | 30 ++++++++++++++++++----- 4 files changed, 76 insertions(+), 20 deletions(-) delete mode 100644 pip-1.3.1.tar.gz create mode 100644 pip-1.4.tar.gz diff --git a/pip-1.3.1.tar.gz b/pip-1.3.1.tar.gz deleted file mode 100644 index 3a33900..0000000 --- a/pip-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:145eaa5d1ea1b062663da1f3a97780d7edea4c63c68a37c463b1deedf7bb4957 -size 247594 diff --git a/pip-1.4.tar.gz b/pip-1.4.tar.gz new file mode 100644 index 0000000..8c53f6c --- /dev/null +++ b/pip-1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fd43cbf07d95ddcecbb795c97a1674b3ddb711bb4a67661284a5aa765aa1b97 +size 443790 diff --git a/python-pip.changes b/python-pip.changes index f09b38c..7b3e562 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Mon Jul 29 14:49:27 UTC 2013 - speilicke@suse.com + +- Update to version 1.4: + * **BACKWARD INCOMPATIBLE** pip now only installs stable versions by default, + and offers a new --pre option to also find pre-release and development + versions. (Pull #834) + * **BACKWARD INCOMPATIBLE** Dropped support for Python 2.5. The minimum + supported Python version for pip 1.4 is Python 2.6. + * Added support for installing and building wheel archives. + Thanks Daniel Holth, Marcus Smith, Paul Moore, and Michele Lacchia + (Pull #845) + * Applied security patch to pip's ssl support related to certificate DNS + wildcard matching (http://bugs.python.org/issue17980). + * To satisfy pip's setuptools requirement, pip now recommends setuptools>=0.8, + not distribute. setuptools and distribute are now merged into one project + called 'setuptools'. (Pull #1003) + * pip will now warn when installing a file that is either hosted externally to + the index or cannot be verified with a hash. In the future pip will default + to not installing them and will require the flags --allow-external NAME, and + --allow-insecure NAME respectively. (Pull #985) + * If an already-downloaded or cached file has a bad hash, re-download it rather + than erroring out. (Issue #963). + * pip bundle and support for installing from pybundle files is now + considered deprecated and will be removed in pip v1.5. + * Fixed a number of issues (#413, #709, #634, #602, and #939) related to + cleaning up and not reusing build directories. (Pull #865, #948) + * Added a User Agent so that pip is identifiable in logs. (Pull #901) + * Added ssl and --user support to get-pip.py. Thanks Gabriel de Perthuis. + (Pull #895) + * Fixed the proxy support, which was broken in pip 1.3.x (Pull #840) + * Fixed issue #32 - pip fails when server does not send content-type header. + Thanks Hugo Lopes Tavares and Kelsey Hightower (Pull #872). + * "Vendorized" distlib as pip.vendor.distlib (https://distlib.readthedocs.org/). + * Fixed git VCS backend with git 1.8.3. (Pull #967) +- Require setuptools instead of distribute again (merged upstream) +- Use update-alternatives for parallel-installability with Python3 + ------------------------------------------------------------------- Fri Mar 8 13:12:37 UTC 2013 - alexandre@exatati.com.br @@ -44,7 +82,7 @@ Fri Mar 8 13:12:37 UTC 2013 - alexandre@exatati.com.br * Added support for --no-index in requirements files. * Added "pip show" command to get information about an installed package. Fixes #131. Thanks Kelsey Hightower and Rafael Caricio. - * Added `--root` option for "pip install" to specify root + * Added --root option for "pip install" to specify root directory. Behaves like the same option in distutils but also plays nice with pip's egg-info. Thanks Przemek Wrzos. (Issue #253 / Pull #693) @@ -67,15 +105,15 @@ Sat Sep 8 22:31:31 UTC 2012 - os-dev@jacraig.com * Use a temporary directory as the default build location outside of a virtualenv. Fixes issues #339 and #381. * Added support for specifying extras with local editables. - * Added ``--egg`` flag to request egg-style rather than flat installation. + * Added --egg flag to request egg-style rather than flat installation. Refs issue #3. - * Fixed issue #510 - prevent e.g. ``gmpy2-2.0.tar.gz`` from matching a - request to ``pip install gmpy``; sdist filename must begin with full + * Fixed issue #510 - prevent e.g. gmpy2-2.0.tar.gz from matching a + request to pip install gmpy; sdist filename must begin with full project name followed by a dash. * Fixed issue #504 - allow package URLS to have querystrings. * Fixed issue #58 - pip freeze now falls back to non-editable format rather than blowing up if it can't determine the origin repository of an editable. - * Added a `__main__.py` file to enable `python -m pip` on Python versions + * Added a __main__.py file to enable python -m pip on Python versions that support it. * Fixed issue #487 - upgrade from VCS url of project that does exist on index. @@ -83,13 +121,13 @@ Sat Sep 8 22:31:31 UTC 2012 - os-dev@jacraig.com on index. * Fixed issue #427 - clearer error message on a malformed VCS url. * Added support for using any of the built in guaranteed algorithms in - ``hashlib`` as a checksum hash. + hashlib as a checksum hash. * Fixed issue #321 - Raise an exception if current working directory can't be found or accessed. * Fixed issue #82 - Removed special casing of the user directory and use the Python default instead. * Fixed #436 - Only warn about version conflicts if there is actually one. - This re-enables using ``==dev`` in requirements files. + This re-enables using ==dev in requirements files. * Moved tests to be run on Travis CI: http://travis-ci.org/pypa/pip * Added a better help formatter. - Remove %check section: there is no test directory so it won't get executed. @@ -161,17 +199,17 @@ Sat Sep 17 13:04:36 UTC 2011 - ocefpaf@gmail.com - Update to 1.0.2 * Fixed docs issues. - * Fixed issue #295 - Reinstall a package when using the ``install -I`` + * Fixed issue #295 - Reinstall a package when using the install -I option * Fixed issue #283 - Finds a Git tag pointing to same commit as origin/master * Fixed issue #279 - Use absolute path for path to docs in setup.py * Fixed issue #320 - Correctly handle exceptions on Python3. - * Fixed issue #314 - Correctly parse ``--editable`` lines in requirements + * Fixed issue #314 - Correctly parse --editable lines in requirements files - Updates from 1.0.1 * Start to use git-flow. - * Fixed issue #274 - `find_command` should not raise AttributeError + * Fixed issue #274 - find_command should not raise AttributeError * Fixed issue #273 - respect Content-Disposition header. * Fixed issue #233 - pathext handling on Windows. * Fixed issue #252 - svn+svn protocol. @@ -184,7 +222,7 @@ Sat Sep 17 13:04:36 UTC 2011 - ocefpaf@gmail.com * Fixed finding of VCS binaries to not be fooled by same-named directories. * Fixed uninstall of packages from system Python for users of Debian/Ubuntu python-setuptools package (workaround until fixed in Debian and Ubuntu). - * Added `get-pip.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py + * Added get-pip.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py - Updates from 0.8.3 * Fixed issue #14 - No uninstall-on-upgrade with URL package. * Fixed issue #163 - Egg name not properly resolved. diff --git a/python-pip.spec b/python-pip.spec index 4861a48..efb3038 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -17,7 +17,7 @@ Name: python-pip -Version: 1.3.1 +Version: 1.4 Release: 0 Url: http://www.pip-installer.org Summary: Pip installs packages. Python packages. An easy_install replacement @@ -26,8 +26,10 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -BuildRequires: python-distribute -Requires: python-distribute +BuildRequires: python-setuptools +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 @@ -49,10 +51,26 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%pre +# Since /usr/bin/pip 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}/pip ]] && rm -f %{_bindir}/pip +exit 0 + +%post +update-alternatives --install %{_bindir}/pip pip %{_bindir}/pip-%{py_ver} 20 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove pip %{_bindir}/pip-%{py_ver} +fi + %files %defattr(-,root,root,-) -%doc AUTHORS.txt LICENSE.txt docs/* -%{_bindir}/pip* -%{python_sitelib}/* +%doc AUTHORS.txt CHANGES.txt LICENSE.txt README.rst +%ghost %{_bindir}/pip +%{_bindir}/pip-%{py_ver} +%{python_sitelib}/pip-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/pip %changelog