diff options
author | 2020-12-09 21:59:22 +0100 | |
---|---|---|
committer | 2020-12-13 12:44:20 +0200 | |
commit | 998ea05677d8fcc151cd33fc491e7513e06cd02f (patch) | |
tree | c7f23aeb243d12deba70a21fbdccdeff0aa35224 /dev-python/pipenv/pipenv-2020.11.15.ebuild | |
parent | dev-python/pipenv: drop old version (diff) | |
download | gentoo-998ea05677d8fcc151cd33fc491e7513e06cd02f.tar.gz gentoo-998ea05677d8fcc151cd33fc491e7513e06cd02f.tar.bz2 gentoo-998ea05677d8fcc151cd33fc491e7513e06cd02f.zip |
dev-python/pipenv: bump to version 2020.11.15
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18458
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/pipenv/pipenv-2020.11.15.ebuild')
-rw-r--r-- | dev-python/pipenv/pipenv-2020.11.15.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pipenv/pipenv-2020.11.15.ebuild b/dev-python/pipenv/pipenv-2020.11.15.ebuild new file mode 100644 index 000000000000..eade778d1d8d --- /dev/null +++ b/dev-python/pipenv/pipenv-2020.11.15.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_6 python3_7 python3_8 ) + +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}] + " + +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + )" + +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 +} |