SHA256
1
0
forked from pool/python-pip

- update to 20.0.2

- add setuptools-45.1.0-py3-none-any.whl for testsuite
 * Fix a regression in generation of compatibility tags
 * Rename an internal module, to avoid ImportErrors due to improper uninstallation
 * Switch to a dedicated CLI tool for vendoring dependencies.
 * Remove wheel tag calculation from pip and use packaging.tags. This should provide more tags ordered better than in prior releases.
 *  Deprecate setup.py-based builds that do not generate an .egg-info directory.
 *  The pip>=20 wheel cache is not retro-compatible with previous versions. Until pip 21.0, pip will continue to take advantage of existing legacy cache entries.
 *  Deprecate undocumented --skip-requirements-regex option.
 *  Deprecate passing install-location-related options via --install-option.
 *  Use literal "abi3" for wheel tag on CPython 3.x, to align with PEP 384 which only defines it for this platform.
 *  Remove interpreter-specific major version tag e.g. cp3-none-any from consideration. This behavior was not documented strictly, and this tag in particular is not useful. Anyone with a use case can create an issue with pypa/packaging.
 *  Wheel processing no longer permits wheels containing more than one top-level .dist-info directory.
 *  Support for the git+git@ form of VCS requirement is being deprecated and will be removed in pip 21.0. Switch to git+https:// or git+ssh://. git+git:// also works but its use is discouraged as it is insecure.
 *  Default to doing a user install (as if --user was passed) when the main site-packages directory is not writeable and user site-packages are enabled.
 *  Warn if a path in PATH starts with tilde during pip install.
 *  Cache wheels built from Git requirements that are considered immutable, because they point to a commit hash.
 *  Add option --no-python-version-warning to silence warnings related to deprecation of Python versions.
 *  Cache wheels that pip wheel built locally, matching what pip install does. This particularly helps performance in workflows where pip wheel is used for building before installing. Users desiring the original behavior can use pip wheel --no-cache-dir
 *  Display CA information in pip debug.
 *  Show only the filename (instead of full URL), when downloading from PyPI.
 *  Suggest a more robust command to upgrade pip itself to avoid confusion when the current pip command is not available as pip.
 *  Define all old pip console script entrypoints to prevent import issues in stale wrapper scripts.
 *  The build step of pip wheel now builds all wheels to a cache first, then copies them to the wheel directory all at once. Before, it built them to a temporary directory and moved them to the wheel directory one by one.
 *  Expand ~ prefix to user directory in path options, configs, and environment variables. Values that may be either URL or path are not currently supported, to avoid ambiguity:
   --find-links
   --constraint, -c
   --requirement, -r
   --editable, -e
 *  Correctly handle system site-packages, in virtual environments created with venv (PEP 405).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=76
This commit is contained in:
Ondřej Súkup 2020-02-05 10:27:04 +00:00 committed by Git OBS Bridge
parent ed5c541dc1
commit 5c90bd62cc
6 changed files with 64 additions and 20 deletions

View File

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

3
20.0.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00bdc118df4552f654a5ccf0bd3ff1a7d101ee7d7ac899fe9a752363b3f2f070
size 6445047

View File

@ -1,13 +0,0 @@
Index: pip-19.1.1/tests/unit/test_wheel.py
===================================================================
--- pip-19.1.1.orig/tests/unit/test_wheel.py
+++ pip-19.1.1/tests/unit/test_wheel.py
@@ -378,7 +378,7 @@ def test_check_compatibility():
# test raises with correct error
with pytest.raises(UnsupportedWheel) as e:
wheel.check_compatibility(higher_v, name)
- assert 'is not compatible' in str(e)
+ assert 'is not compatible' in str(e.value)
# Should only log.warning - minor version is greater
higher_v = (vc[0], vc[1] + 1)

View File

@ -1,4 +1,53 @@
-------------------------------------------------------------------
Wed Feb 5 10:19:17 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 20.0.2
- add setuptools-45.1.0-py3-none-any.whl for testsuite
* Fix a regression in generation of compatibility tags
* Rename an internal module, to avoid ImportErrors due to improper uninstallation
* Switch to a dedicated CLI tool for vendoring dependencies.
* Remove wheel tag calculation from pip and use packaging.tags. This should provide more tags ordered better than in prior releases.
* Deprecate setup.py-based builds that do not generate an .egg-info directory.
* The pip>=20 wheel cache is not retro-compatible with previous versions. Until pip 21.0, pip will continue to take advantage of existing legacy cache entries.
* Deprecate undocumented --skip-requirements-regex option.
* Deprecate passing install-location-related options via --install-option.
* Use literal "abi3" for wheel tag on CPython 3.x, to align with PEP 384 which only defines it for this platform.
* Remove interpreter-specific major version tag e.g. cp3-none-any from consideration. This behavior was not documented strictly, and this tag in particular is not useful. Anyone with a use case can create an issue with pypa/packaging.
* Wheel processing no longer permits wheels containing more than one top-level .dist-info directory.
* Support for the git+git@ form of VCS requirement is being deprecated and will be removed in pip 21.0. Switch to git+https:// or git+ssh://. git+git:// also works but its use is discouraged as it is insecure.
* Default to doing a user install (as if --user was passed) when the main site-packages directory is not writeable and user site-packages are enabled.
* Warn if a path in PATH starts with tilde during pip install.
* Cache wheels built from Git requirements that are considered immutable, because they point to a commit hash.
* Add option --no-python-version-warning to silence warnings related to deprecation of Python versions.
* Cache wheels that pip wheel built locally, matching what pip install does. This particularly helps performance in workflows where pip wheel is used for building before installing. Users desiring the original behavior can use pip wheel --no-cache-dir
* Display CA information in pip debug.
* Show only the filename (instead of full URL), when downloading from PyPI.
* Suggest a more robust command to upgrade pip itself to avoid confusion when the current pip command is not available as pip.
* Define all old pip console script entrypoints to prevent import issues in stale wrapper scripts.
* The build step of pip wheel now builds all wheels to a cache first, then copies them to the wheel directory all at once. Before, it built them to a temporary directory and moved them to the wheel directory one by one.
* Expand ~ prefix to user directory in path options, configs, and environment variables. Values that may be either URL or path are not currently supported, to avoid ambiguity:
--find-links
--constraint, -c
--requirement, -r
--editable, -e
* Correctly handle system site-packages, in virtual environments created with venv (PEP 405).
* Fix case sensitive comparison of pip freeze when used with -r option.
* Enforce PEP 508 requirement format in pyproject.toml build-system.requires.
* Make ensure_dir() also ignore ENOTEMPTY as seen on Windows.
* Fix building packages which specify backend-path in pyproject.toml.
* Do not attempt to run setup.py clean after a pep517 build error, since a setup.py may not exist in that case.
* Fix passwords being visible in the index-url in "Downloading <url>" message.
* Change method from shutil.remove to shutil.rmtree in noxfile.py.
* Skip running tests which require subversion, when svn isn't installed
* Fix not sending client certificates when using --trusted-host.
* Make sure pip wheel never outputs pure python wheels with a python implementation tag. Better fix/workaround for #3025 by using a per-implementation wheel cache instead of caching pure python wheels with an implementation tag in their name.
* Include subdirectory URL fragments in cache keys.
* Fix typo in warning message when any of --build-option, --global-option and --install-option is used in requirements.txt
* Fix the logging of cached HTTP response shown as downloading.
* Effectively disable the wheel cache when it is not writable, as is the case with the http cache.
* Correctly handle relative cache directory provided via --cache-dir.
*
-------------------------------------------------------------------
Fri Oct 18 11:28:38 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- Update to version 19.3.1

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pip
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,14 +26,14 @@
%bcond_with test
%endif
Name: python-pip%{psuffix}
Version: 19.3.1
Version: 20.0.2
Release: 0
Summary: A Python package management system
License: MIT
URL: http://www.pip-installer.org
Source: https://github.com/pypa/pip/archive/%{version}.tar.gz
Source1: setuptools-45.1.0-py3-none-any.whl
Patch0: pip-shipped-requests-cabundle.patch
Patch1: pytest5.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -48,6 +48,8 @@ BuildArch: noarch
%if %{with test}
# Test requirements:
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Werkzeug}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module mock}
@ -70,7 +72,10 @@ pip-installable as well.
%prep
%setup -q -n pip-%{version}
%patch0 -p1
%patch1 -p1
%if %{with test}
mkdir -p tests/data/common_wheels
cp %{SOURCE1} tests/data/common_wheels/
%endif
# remove shebangs verbosely (if only sed would offer a verbose mode...)
for f in $(find src -name \*.py -exec grep -l '^#!%{_bindir}/env' {} \;); do
sed -i 's|^#!%{_bindir}/env .*$||g' $f

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:68e7fd3508687f94367f1aa090a3ed921cd045a60b73d8b0aa1f305199a0ca28
size 583923