diff options
author | 2022-08-06 11:39:21 +0200 | |
---|---|---|
committer | 2022-09-09 10:22:56 +0300 | |
commit | 74c9d4414528f48c7ec8f910ec9f5a13da591c85 (patch) | |
tree | 00331295f44eabe0874b8e19ac0b97afedce9d4d /dev-python/pipenv | |
parent | dev-python/pyghmi: drop 1.5.48, 1.5.49, 1.5.50 (diff) | |
download | gentoo-74c9d4414528f48c7ec8f910ec9f5a13da591c85.tar.gz gentoo-74c9d4414528f48c7ec8f910ec9f5a13da591c85.tar.bz2 gentoo-74c9d4414528f48c7ec8f910ec9f5a13da591c85.zip |
dev-python/pipenv: add 2022.8.5
This versions continues the removal of bundeled packages.
The removal of bundeled packages is now being done
upstream.
This release (and previous releases not included in gentoo)
removes the following packages compared to the latest version
which was delievered in gentoo:
* funcsigs
* yaml
* crayons
* certify
* charset-normalizer
* importlib-metadata
* importlib-resources
* packaging
* urllib3
Bug: https://bugs.gentoo.org/717666
Signed-off-by: Oz N Tiram <oz.tiram@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pipenv')
-rw-r--r-- | dev-python/pipenv/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pipenv/pipenv-2022.8.5.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/pipenv/Manifest b/dev-python/pipenv/Manifest index d51b2b150e3d..532e92644f17 100644 --- a/dev-python/pipenv/Manifest +++ b/dev-python/pipenv/Manifest @@ -1 +1,2 @@ DIST pipenv-2022.6.7.gh.tar.gz 12253349 BLAKE2B d1efa1a6e38727c5b5d26c6ec6ad6dfb904ff1e8aed93416ac5bb470d87db0a8583fec8552bc53ee0277e4e7abf7d0a1068a9a3c5dfa2260dfcd0890748df4ae SHA512 2b9c42bd88d8643d07f2eb375040b5b26a88980f5f6e4ee8e99bcbbc17ab268f6dbfa582d1974d2cbfd18691dd06d8b9e3b6c25cec17d64fa3e5541529fe05fc +DIST pipenv-2022.8.5.gh.tar.gz 11841656 BLAKE2B 28869e75c1130285807b067720e696463106ed0ef1f4e685c95277d6e58e1d0371ed7afb1de4955d7a4b21b57b81163ea821e227ef26fc35b39dfc6df8dea873 SHA512 17ea8e99aaa54972baa25e2380e0a19c75f7d6cf5a8c238786f7c7c8269ef25ef316b8087483c9716e97493bcf4fe606eb9af7f082c09dd326547ec3cb4a406e diff --git a/dev-python/pipenv/pipenv-2022.8.5.ebuild b/dev-python/pipenv/pipenv-2022.8.5.ebuild new file mode 100644 index 000000000000..313e145ce0ce --- /dev/null +++ b/dev-python/pipenv/pipenv-2022.8.5.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 multiprocessing + +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}.gh.tar.gz" +S="${WORKDIR}"/${PN}-${MY_PV} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/cached-property[${PYTHON_USEDEP}] + >=dev-python/cerberus-1.3.2[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + >=dev-python/colorama-0.4.4[${PYTHON_USEDEP}] + >=dev-python/idna-3.2[${PYTHON_USEDEP}] + dev-python/iso8601[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.2[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.0.35[${PYTHON_USEDEP}] + dev-python/virtualenv-clone[${PYTHON_USEDEP}] + >=dev-python/requests-2.26.0[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] + >=dev-python/wheel-0.36.0[${PYTHON_USEDEP}] + >=dev-python/zipp-3.6.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +# IMPORTANT: The following sed command patches the vendor direcotry +# in the pipenv source. Attempts to simply bump the version of the +# package without checking that it works is likely to fail +# The vendored packages should eventually all be removed +# see: https://bugs.gentoo.org/717666 +src_prepare() { + local pkgName + local jobs=$(makeopts_jobs) + local packages=( attr cerberus cached_property click colorama idna importlib_metadata importlib_resources iso8601 pexpect dateutil pyparsing requests toml tomli tomlkit urllib3 zipp ) + for pkgName in ${packages[@]}; do + find ./ -type f -print0 | \ + xargs --max-procs="${jobs}" --null \ + sed --in-place \ + -e "s/from pipenv.vendor import ${pkgName}/import ${pkgName}/g" \ + -e "s/from pipenv.vendor.${pkgName}\(.*\) import \(\w*\)/from ${pkgName}\1 import \2/g"\ + -e "s/import pipenv.vendor.${pkgName} as ${pkgName}/import ${pkgName}/g" \ + -e "s/from .vendor import ${pkgName}/import ${pkgName}/g" || die "Failed to sed for ${pkgName}" + done + + distutils-r1_src_prepare + + # remove vendored versions + for pkgName in ${packages[@]}; do + find ./pipenv/vendor -regextype posix-extended -regex ".*${pkgName}$" -prune -exec rm -rvf {} + || die + # package names can be foo-bar, their module will be however foo_bar + find ./pipenv/vendor -regextype posix-extended -regex ".*${pkgName/_/-}" -prune -exec rm -rvf {} + || die + done + + find ./pipenv/vendor -regextype posix-extended -regex '.*cached[_-]property.*' -prune -exec rm -rvf {} + || die + + # not actually used by pipenv, but included in pipenv + rm -vR "${S}/${PN}/vendor/wheel/" || die +} + +python_test() { + epytest -m "not cli and not needs_internet" tests/unit/ +} |