From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1154465-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 021BD138350 for <garchives@archives.gentoo.org>; Sat, 21 Mar 2020 16:32:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D7C5E0C7D; Sat, 21 Mar 2020 16:32:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 119ACE0C7D for <gentoo-commits@lists.gentoo.org>; Sat, 21 Mar 2020 16:32:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE4CF34F114 for <gentoo-commits@lists.gentoo.org>; Sat, 21 Mar 2020 16:32:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4BBBF18C for <gentoo-commits@lists.gentoo.org>; Sat, 21 Mar 2020 16:32:19 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1584808332.f0ccf9183accb507056b47c3a2bb66c717da149b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pip/pip-19.3.1-r1.ebuild X-VCS-Directories: dev-python/pip/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f0ccf9183accb507056b47c3a2bb66c717da149b X-VCS-Branch: master Date: Sat, 21 Mar 2020 16:32:19 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fa2251c4-c4f2-4cc6-b10c-1275ed450c63 X-Archives-Hash: 9d37eaef1089ab4d4477e1858cbab981 commit: f0ccf9183accb507056b47c3a2bb66c717da149b Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Mar 21 16:26:22 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Mar 21 16:32:12 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ccf918 dev-python/pip: Remove redundant version Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pip/pip-19.3.1-r1.ebuild | 118 ------------------------------------ 1 file changed, 118 deletions(-) diff --git a/dev-python/pip/pip-19.3.1-r1.ebuild b/dev-python/pip/pip-19.3.1-r1.ebuild deleted file mode 100644 index 8a4b3636238..00000000000 --- a/dev-python/pip/pip-19.3.1-r1.ebuild +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 ) -PYTHON_REQ_USE="ssl(+),threads(+)" - -inherit bash-completion-r1 distutils-r1 multiprocessing - -SETUPTOOLS_PV="41.4.0" -WHEEL_PV="0.33.6" - -DESCRIPTION="Installs python packages -- replacement for easy_install" -HOMEPAGE="https://pip.pypa.io/ https://pypi.org/project/pip/ https://github.com/pypa/pip/" -SRC_URI=" - https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz - test? ( - https://files.pythonhosted.org/packages/py2.py3/s/setuptools/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl - https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-${WHEEL_PV}-py2.py3-none-any.whl - ) -" -# PyPI archive does not have tests, so we need to download from GitHub. -# setuptools & wheel .whl files are required for testing, exact version is not very important. - -LICENSE="MIT" -KEYWORDS="amd64 arm64 ~hppa ~sparc ~x86" -SLOT="0" -IUSE="test -vanilla" - -# disable-system-install patch breaks tests -RESTRICT="!vanilla? ( test ) !test? ( test )" - -RDEPEND=" - >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] -" -DEPEND=" - ${RDEPEND} - test? ( - dev-python/freezegun[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pretend[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/scripttest[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - ) -" - -python_prepare_all() { - local PATCHES=( - "${FILESDIR}/${PN}-19.3-disable-version-check.patch" - ) - if ! use vanilla; then - PATCHES+=( "${FILESDIR}/pip-19.3.1-disable-system-install.patch" ) - fi - distutils-r1_python_prepare_all - - if use test; then - mkdir tests/data/common_wheels/ - cp "${DISTDIR}"/setuptools-${SETUPTOOLS_PV}-py2.py3-none-any.whl tests/data/common_wheels/ || die - cp "${DISTDIR}"/wheel-${WHEEL_PV}-py2.py3-none-any.whl tests/data/common_wheels/ || die - fi -} - -python_test() { - # pip test suite likes to test installed version of pip, both the module and the executable. - # Here we install it into a temporary dir and add to PATHs in a subshell. - EPYTHON_ROOT="${T}/${EPYTHON}_root" - esetup.py install --root "${EPYTHON_ROOT}" - - if [[ ${EPYTHON} == python2* ]]; then - # These tests just fail on Python 2. - EXCLUDE_TESTS=( or pep518_uses_build_env or install_package_with_root or install_editable_with_prefix - or install_from_current_directory_into_usersite or install_user_wheel - or uninstall_from_usersite_with_dist_in_global_site - or uninstall_editable_from_usersite - or build_env_isolation - ) - fi - - ( - export PATH="${EPYTHON_ROOT}/usr/bin:$PATH" - export PYTHONPATH="${EPYTHON_ROOT}/$(python_get_sitedir)" - - # Disable VCS and network tests. - # version_check tests are excluded since we explicitly disable this feature entirely. - # uninstall test just fails, likely because of our test environment setup. - python -m pytest -v \ - -k "not (svn or git or bazaar or mercurial or version_check or uninstall_non_local_distutils ${EXCLUDE_TESTS[*]})" \ - -m "not network" \ - || die - ) -} - -python_install_all() { - # Prevent dbus auto-launch - # https://bugs.gentoo.org/692178 - export DBUS_SESSION_BUS_ADDRESS="disabled:" - - local DOCS=( AUTHORS.txt docs/html/**/*.rst ) - distutils-r1_python_install_all - - COMPLETION="${T}"/completion.tmp - - # 'pip completion' command embeds full $0 into completion script, which confuses - # 'complete' and causes QA warning when running as "${PYTHON} -m pip". - # This trick sets correct $0 while still calling just installed pip. - local pipcmd='import sys; sys.argv[0] = "pip"; import pip.__main__; sys.exit(pip.__main__._main())' - - ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die - newbashcomp "${COMPLETION}" ${PN} - - ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die - insinto /usr/share/zsh/site-functions - newins "${COMPLETION}" _pip -}