# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_{7..9} pypy3 ) PYTHON_REQ_USE="ssl(+),threads(+)" inherit bash-completion-r1 distutils-r1 # setuptools & wheel .whl files are required for testing, # the exact version is not very important. SETUPTOOLS_WHL="setuptools-51.3.3-py3-none-any.whl" WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl" DESCRIPTION="Installs python packages -- replacement for easy_install" HOMEPAGE=" https://pip.pypa.io/en/stable/ 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/py3/s/setuptools/${SETUPTOOLS_WHL} https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL} ) " # PyPI archive does not have tests, so we need to download from GitHub. LICENSE="MIT" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos" SLOT="0" IUSE="test -vanilla" RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] " BDEPEND=" ${RDEPEND} test? ( dev-python/cryptography[${PYTHON_USEDEP}] dev-python/csv23[${PYTHON_USEDEP}] 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}] "${COMPLETION}" || die newbashcomp "${COMPLETION}" ${PN} ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die insinto /usr/share/zsh/site-functions newins "${COMPLETION}" _pip }