You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{7,8,9} )
|
||
4 years ago
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
MY_PV=${PV/_beta/b}
|
||
|
DESCRIPTION="Python Development Workflow for Humans"
|
||
|
HOMEPAGE="https://github.com/pypa/pipenv https://pypi.org/project/pipenv/"
|
||
|
SRC_URI="https://github.com/pypa/pipenv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||
|
S="${WORKDIR}"/${PN}-${MY_PV}
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
IUSE="test"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
RDEPEND="
|
||
|
${PYTHON_DEPS}
|
||
|
dev-python/certifi[${PYTHON_USEDEP}]
|
||
|
dev-python/pip[${PYTHON_USEDEP}]
|
||
|
>=dev-python/virtualenv-20.0.35[${PYTHON_USEDEP}]
|
||
|
dev-python/virtualenv-clone[${PYTHON_USEDEP}]
|
||
4 years ago
|
"
|
||
4 years ago
|
BDEPEND="
|
||
|
${RDEPEND}
|
||
|
test? (
|
||
|
dev-python/flaky[${PYTHON_USEDEP}]
|
||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||
3 years ago
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||
4 years ago
|
dev-python/pytz[${PYTHON_USEDEP}]
|
||
4 years ago
|
)
|
||
|
"
|
||
4 years ago
|
|
||
|
src_prepare() {
|
||
|
# remove vendored version of PyYAML that is backported to Python2
|
||
|
# this should be removed when upstream removes support for Python2
|
||
|
rm -vR "${S}/${PN}/patched/yaml2/" || die
|
||
|
# disable running of unittests in parallel with xdist
|
||
|
sed -i 's/addopts = -ra -n auto/;&/g' setup.cfg || die
|
||
|
sed -i 's/plugins = xdist/;&/g' setup.cfg || die
|
||
|
distutils-r1_src_prepare
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
pytest -vvv -x -m "not cli and not needs_internet" tests/unit/ || die
|
||
|
}
|