1 |
commit: 07231c9da1550cf063ae005a5a3cb580a7e4f387 |
2 |
Author: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 13 20:29:19 2019 +0000 |
4 |
Commit: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 13 20:30:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07231c9d |
7 |
|
8 |
dev-python/pip: bump to 19.2.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.12 |
11 |
Signed-off-by: Maxim Koltsov <maksbotan <AT> gentoo.org> |
12 |
|
13 |
dev-python/pip/Manifest | 1 + |
14 |
dev-python/pip/pip-19.2.2.ebuild | 97 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest |
18 |
index 2b01c043541..cf37dbb3c4e 100644 |
19 |
--- a/dev-python/pip/Manifest |
20 |
+++ b/dev-python/pip/Manifest |
21 |
@@ -1,5 +1,6 @@ |
22 |
DIST pip-10.0.1.tar.gz 1246072 BLAKE2B e08607be43e1d7b9c7bbc12dff73bc3170953f48f8f7439a0b27b9d540f23eb3bca7873211a5f1448b5cedd6e8e12983af6fa4666bba3ac4700059d170036733 SHA512 983cce8375ff0304263209c69be16e5be7a58af340b8c3ffddd64fcea130b2f8f8a98305ab31e9c3eed9a0d039c73777c88bde3bf2ea1e184fa3e0a2faa97fd4 |
23 |
DIST pip-19.1.tar.gz 6320747 BLAKE2B 9b69fcdef751d6938a7c67f44692afa7088f660ab1e0ae113d21d0f48b4e29f43e0f0bcc137cf16ac0324ea3b500bd2a84234823f8d82556d6727f68139aab4b SHA512 0d2442c22c41133118353ba98f45260f0615a891725b2a069d8fbf26ec4033cc7297bb671944c3dcc1f68800b91e92e58fb407ca5a333382e20ac4bb5c9e0cb6 |
24 |
+DIST pip-19.2.2.tar.gz 6381643 BLAKE2B 3c7d3c070d9bc52557b67c8fc34274d8c769179e01758b63d69c5da48d94a5980ecba62f8b74135ee2f08b4686f8835dee5da5d30fc12af0044f7f0180b3f50b SHA512 ca634925e21aba338aa65f80d258833c6622b4c1d85eaf827fa5439aed62d7c6d64fde91cfebc05bd83eb215b019b690379cf5c4ac85a2f32d6357e6bd95fd88 |
25 |
DIST pip-9.0.1.tar.gz 1197370 BLAKE2B 3618161690d5e0a38d141f9b51baea4aaa3fdc225664ef180bbeecf6e2df95e9ea4f97c63fe3a68f84f4fb5ebcc74e316827253c7e07b03565e58113bbaa918a SHA512 ee59efb4b009ff6543b7afdea99b9cbbee1981ecc03af586acda76674024d3b66dab23049e68f3da9448734984619fc1eaba6e965c9dd3d731973376c8a42e25 |
26 |
DIST setuptools-41.0.1-py2.py3-none-any.whl 575966 BLAKE2B 332986453a35e4ec36ab2bdb80a8b0a70ffe4fec1bb874f481b0d8e31016a26d53070f90d0eea9030b8c48a1f9bc21a54d8a5a2b70096e1f8db84d42449903e4 SHA512 c84ddf1d1ea90216b2c475f3e4879f4e6792a859adf61db70d67f49a35f2cb4df6fd6d93049881e6d2a8d914768edfcd091475206bb5da3ac66c41c4b9147102 |
27 |
DIST wheel-0.33.1-py2.py3-none-any.whl 21496 BLAKE2B 41bb9ed91d43f94209a010c286d541da9d68b9e727ec8a339fe3c24fb806746b1de5b62c6cd26d2c2841be17406e1f99353b6d172f5258540faeba014945e9e8 SHA512 761ad8cb96557b146642871e1f8ce75849a9828193d992a19d072236b9f8452ab54907a3b82bc7441f75f036155ae21b7450120e0c4c19aa5100b58337945ac0 |
28 |
|
29 |
diff --git a/dev-python/pip/pip-19.2.2.ebuild b/dev-python/pip/pip-19.2.2.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..1d2a8c7a372 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/pip/pip-19.2.2.ebuild |
34 |
@@ -0,0 +1,97 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) |
41 |
+PYTHON_REQ_USE="ssl(+),threads(+)" |
42 |
+ |
43 |
+inherit bash-completion-r1 distutils-r1 multiprocessing |
44 |
+ |
45 |
+SETUPTOOLS_PV="41.0.1" |
46 |
+WHEEL_PV="0.33.1" |
47 |
+ |
48 |
+DESCRIPTION="Installs python packages -- replacement for easy_install" |
49 |
+HOMEPAGE="https://pip.pypa.io/ https://pypi.org/project/pip/ https://github.com/pypa/pip/" |
50 |
+SRC_URI=" |
51 |
+ https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
52 |
+ test? ( |
53 |
+ https://files.pythonhosted.org/packages/py2.py3/s/setuptools/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl |
54 |
+ https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-${WHEEL_PV}-py2.py3-none-any.whl |
55 |
+ ) |
56 |
+" |
57 |
+# PyPI archive does not have tests, so we need to download from GitHub. |
58 |
+# setuptools & wheel .whl files are required for testing, exact version is not very important. |
59 |
+ |
60 |
+LICENSE="MIT" |
61 |
+KEYWORDS="~amd64 ~x86" |
62 |
+SLOT="0" |
63 |
+IUSE="test -vanilla" |
64 |
+ |
65 |
+# disable-system-install patch breaks tests |
66 |
+RESTRICT="!vanilla? ( test )" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] |
70 |
+" |
71 |
+DEPEND=" |
72 |
+ ${RDEPEND} |
73 |
+ test? ( |
74 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
75 |
+ dev-python/mock[${PYTHON_USEDEP}] |
76 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
77 |
+ <dev-python/pytest-4[${PYTHON_USEDEP}] |
78 |
+ dev-python/pytest-cov[${PYTHON_USEDEP}] |
79 |
+ <dev-python/pytest-rerunfailures-7.0[${PYTHON_USEDEP}] |
80 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
81 |
+ <dev-python/pytest-xdist-1.28.0[${PYTHON_USEDEP}] |
82 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
83 |
+ dev-python/scripttest[${PYTHON_USEDEP}] |
84 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
85 |
+ ) |
86 |
+" |
87 |
+ |
88 |
+python_prepare_all() { |
89 |
+ local PATCHES=( |
90 |
+ "${FILESDIR}/${PN}-19.1-disable-version-check.patch" |
91 |
+ ) |
92 |
+ if ! use vanilla; then |
93 |
+ PATCHES+=( "${FILESDIR}/pip-19.1-disable-system-install.patch" ) |
94 |
+ fi |
95 |
+ distutils-r1_python_prepare_all |
96 |
+ |
97 |
+ if use test; then |
98 |
+ mkdir tests/data/common_wheels/ |
99 |
+ cp "${DISTDIR}"/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl tests/data/common_wheels/ || die |
100 |
+ cp "${DISTDIR}"/wheel-${WHEEL_PV}-py2.py3-none-any.whl tests/data/common_wheels/ || die |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+python_test () { |
105 |
+ # Exclude tests that fail for some reason. Some of these failures may be Gentoo-specific. |
106 |
+ python -m pytest \ |
107 |
+ -n $(makeopts_jobs) \ |
108 |
+ --timeout 300 \ |
109 |
+ -k "not (svn or git or bazaar or mercurial or test_pep518_uses_build_env or test_install_package_with_root or test_install_editable_with_prefix or install_from_user or install_user_conflict or upgrade_user_conflict or build_env_isolation or config_file_venv_option or get_legacy_build_wheel or install_user_wheel or uninstall_non_local_distutils or install_from_current_directory_into_usersite or uninstall_editable_from_usersite)" \ |
110 |
+ -m "not network" \ |
111 |
+ || die |
112 |
+} |
113 |
+ |
114 |
+python_install_all() { |
115 |
+ local DOCS=( AUTHORS.txt docs/html/**/*.rst ) |
116 |
+ distutils-r1_python_install_all |
117 |
+ |
118 |
+ COMPLETION="${T}"/completion.tmp |
119 |
+ |
120 |
+ # 'pip completion' command embeds full $0 into completion script, which confuses |
121 |
+ # 'complete' and causes QA warning when running as "${PYTHON} -m pip". |
122 |
+ # This trick sets correct $0 while still calling just installed pip. |
123 |
+ local pipcmd='import sys; sys.argv[0] = "pip"; import pip.__main__; sys.exit(pip.__main__._main())' |
124 |
+ |
125 |
+ ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die |
126 |
+ newbashcomp "${COMPLETION}" ${PN} |
127 |
+ |
128 |
+ ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die |
129 |
+ insinto /usr/share/zsh/site-functions |
130 |
+ newins "${COMPLETION}" _pip |
131 |
+} |