Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pipenv/
Date: Mon, 12 Oct 2020 12:40:01
Message-Id: 1602506389.eaac4bad6e9370a759887dd33d02f17ebc004a1e.juippis@gentoo
1 commit: eaac4bad6e9370a759887dd33d02f17ebc004a1e
2 Author: Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
3 AuthorDate: Thu Oct 1 21:20:28 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 12 12:39:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaac4bad
7
8 dev-python/pipenv: bump version to 2020.8.13
9
10 Package-Manager: Portage-3.0.4, Repoman-2.3.23
11 Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17742
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 dev-python/pipenv/Manifest | 1 +
16 dev-python/pipenv/pipenv-2020.8.13.ebuild | 51 +++++++++++++++++++++++++++++++
17 2 files changed, 52 insertions(+)
18
19 diff --git a/dev-python/pipenv/Manifest b/dev-python/pipenv/Manifest
20 index 85e36860fe5..0019ce0e16b 100644
21 --- a/dev-python/pipenv/Manifest
22 +++ b/dev-python/pipenv/Manifest
23 @@ -1 +1,2 @@
24 DIST pipenv-2020.6.2.tar.gz 11571734 BLAKE2B bc50535f215b11d284eeec546722a144cfdfeeab6abab8eae51c727c054865f274ac970dc61c23cce7db19ac28a77e44a84453743ba2dc75068feb3a47a19190 SHA512 671765b9e77a18039668eb500989de45c8bd4f15948ee914eb241985098562ebd382168a535a449ac5d216f07327b6787eb8f828b5a6499ef6e77fe5a036441e
25 +DIST pipenv-2020.8.13.tar.gz 11573493 BLAKE2B ac6c6f0336f0c675f73fbecfdefe158eb2a53b5aa4559850b3c9a050404d9d18b0ff2ca3cb62031da027937244a6bbb0d4c1ec433073e429518ec0ea908cb12e SHA512 90ccaf386bc68d856ee9c645084cb65c4213902a8c87e2059cc2274b88d922c3b02c58c15d05945e1f61e8b816ef92a11672cadaf125143bd5019ab25ff0b19e
26
27 diff --git a/dev-python/pipenv/pipenv-2020.8.13.ebuild b/dev-python/pipenv/pipenv-2020.8.13.ebuild
28 new file mode 100644
29 index 00000000000..d9f0436d554
30 --- /dev/null
31 +++ b/dev-python/pipenv/pipenv-2020.8.13.ebuild
32 @@ -0,0 +1,51 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +DISTUTILS_USE_SETUPTOOLS=rdepend
39 +PYTHON_COMPAT=( python3_6 python3_7 python3_8 )
40 +
41 +inherit distutils-r1
42 +
43 +MY_PV=${PV/_beta/b}
44 +DESCRIPTION="Python Development Workflow for Humans"
45 +HOMEPAGE="https://github.com/pypa/pipenv https://pypi.org/project/pipenv/"
46 +SRC_URI="https://github.com/pypa/pipenv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}"/${PN}-${MY_PV}
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
52 +IUSE="test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="
56 + dev-python/certifi[${PYTHON_USEDEP}]
57 + >=dev-python/pip-18.0[${PYTHON_USEDEP}]
58 + dev-python/virtualenv[${PYTHON_USEDEP}]
59 + >=dev-python/virtualenv-clone-0.2.5[${PYTHON_USEDEP}]
60 + "
61 +
62 +BDEPEND="
63 + test? (
64 + ${RDEPEND}
65 + dev-python/flaky[${PYTHON_USEDEP}]
66 + dev-python/mock[${PYTHON_USEDEP}]
67 + <dev-python/pytest-5[${PYTHON_USEDEP}]
68 + dev-python/pytz[${PYTHON_USEDEP}]
69 + )"
70 +
71 +src_prepare() {
72 + # remove vendored version of PyYAML that is backported to Python2
73 + # this should be removed when upstream removes support for Python2
74 + rm -vR "${S}/${PN}/patched/yaml2/" || die
75 + # disable running of unittests in parallel with xdist
76 + sed -i 's/addopts = -ra -n auto/;&/g' setup.cfg
77 + sed -i 's/plugins = xdist/;&/g' setup.cfg
78 + distutils-r1_src_prepare
79 +}
80 +
81 +python_test() {
82 + pytest -vvv -x -m "not cli and not needs_internet" tests/unit/ || die
83 +}