Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/virtualenv/
Date: Sun, 25 Oct 2020 20:40:27
Message-Id: 1603658417.29fcd54a49581f41449315ce77c58b9bfc18f403.mgorny@gentoo
1 commit: 29fcd54a49581f41449315ce77c58b9bfc18f403
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 25 20:27:55 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 25 20:40:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29fcd54a
7
8 dev-python/virtualenv: Bump to 20.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/virtualenv/Manifest | 1 +
13 dev-python/virtualenv/virtualenv-20.1.0.ebuild | 93 ++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
17 index 4702e3f6988..f24f1608ab6 100644
18 --- a/dev-python/virtualenv/Manifest
19 +++ b/dev-python/virtualenv/Manifest
20 @@ -1,2 +1,3 @@
21 DIST virtualenv-16.7.10.tar.gz 5116776 BLAKE2B 42f0a4b4330850b504f8febd991ef6ecdcbb0821efdd94ca324a8cc34a68a760a8a98de97f0cb2384d8e6cbb0ce8f261995c6433886444e29b75ba0ce09ca12c SHA512 f06d7c354ce1910f04dbcbe1a77e60392653bbe4f638bafbe9284454db2c0e5d63cf9159201d0916fc01aaba91d45fb733b63096c38517fcd83fd00ed8b26d28
22 DIST virtualenv-20.0.35.tar.gz 8283086 BLAKE2B 66d6b22d9928bf3925c8911e24fa1ba22d1276518c23e0d951c58cca0cb34f67e5053f27882ab9eafbdba040a893861eadb40497398d9deaacb45c461bfa01cc SHA512 066cefbf9c6c77277a1c97c8cf555a8b4411784ad289c058f107872be15e9dd4ef9ac6e4ec64143e0b30512d9f454408e18e434ef8f9b2bfe3e6456fade71251
23 +DIST virtualenv-20.1.0.tar.gz 8284462 BLAKE2B 4356c9c49f7bd2dbb6cf8998be5cd3970804bdec5e3c1223439700f4b5597cd843cdb17b722d54f0181094296247d1f2d4c27980679602b94020fdf1e95dd73f SHA512 740bf8ba30d836c240d248dd2fa31a8702cfa8f96a6192dd6430dbeff3ebbf0fe67d4fd2439ed4961869731520b097783a29381eae3f81f6700b6050b75422c8
24
25 diff --git a/dev-python/virtualenv/virtualenv-20.1.0.ebuild b/dev-python/virtualenv/virtualenv-20.1.0.ebuild
26 new file mode 100644
27 index 00000000000..a734981f18b
28 --- /dev/null
29 +++ b/dev-python/virtualenv/virtualenv-20.1.0.ebuild
30 @@ -0,0 +1,93 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{6..9} pypy3 )
37 +DISTUTILS_USE_SETUPTOOLS=manual
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Virtual Python Environment builder"
42 +HOMEPAGE="
43 + https://virtualenv.pypa.io/en/stable/
44 + https://pypi.org/project/virtualenv/
45 + https://github.com/pypa/virtualenv/
46 +"
47 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
51 +SLOT="0"
52 +IUSE="test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="
56 + >=dev-python/appdirs-1.4.3[${PYTHON_USEDEP}]
57 + >=dev-python/distlib-0.3.1[${PYTHON_USEDEP}]
58 + >=dev-python/filelock-3[${PYTHON_USEDEP}]
59 + >=dev-python/setuptools-41[${PYTHON_USEDEP}]
60 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
61 + $(python_gen_cond_dep '
62 + >=dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}]
63 + ' python3_{6,7} pypy3)
64 + $(python_gen_cond_dep '
65 + >=dev-python/importlib_resources-1.0[${PYTHON_USEDEP}]
66 + ' python3_6 pypy3)"
67 +# coverage is used somehow magically in virtualenv, maybe it actually
68 +# tests something useful
69 +BDEPEND="
70 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
71 + test? (
72 + ${RDEPEND}
73 + $(python_gen_cond_dep '
74 + dev-python/coverage[${PYTHON_USEDEP}]
75 + dev-python/flaky[${PYTHON_USEDEP}]
76 + >=dev-python/pip-20.0.2[${PYTHON_USEDEP}]
77 + >=dev-python/pytest-5[${PYTHON_USEDEP}]
78 + >=dev-python/pytest-freezegun-0.4.1[${PYTHON_USEDEP}]
79 + >=dev-python/pytest-mock-2.0.0[${PYTHON_USEDEP}]
80 + >=dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}]
81 + dev-python/wheel[${PYTHON_USEDEP}]
82 + >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
83 + ' 'python3*')
84 + )"
85 +
86 +distutils_enable_sphinx docs \
87 + dev-python/sphinx_rtd_theme \
88 + dev-python/towncrier
89 +
90 +src_prepare() {
91 + # we don't have xonsh
92 + rm tests/unit/activation/test_xonsh.py || die
93 + # require internet
94 + sed -e 's:test_seed_link_via_app_data:_&:' \
95 + -i tests/unit/seed/embed/test_boostrap_link_via_app_data.py || die
96 + # TODO: investigate
97 + sed -e 's:test_cross_major:_&:' \
98 + -i tests/unit/create/test_creator.py || die
99 +
100 + distutils-r1_src_prepare
101 +}
102 +
103 +src_configure() {
104 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
105 +}
106 +
107 +python_test() {
108 + if [[ ${EPYTHON} == pypy3 ]]; then
109 + # TODO: skip with better granularity
110 + ewarn "Skipping broken tests on pypy3"
111 + return
112 + fi
113 +
114 + distutils_install_for_testing
115 +
116 + pytest -vv || die "Tests fail with ${EPYTHON}"
117 +}
118 +
119 +pkg_postinst() {
120 + elog "Please note that while virtualenv package no longer supports"
121 + elog "Python 2.7, you can still create py2.7 virtualenvs via:"
122 + elog " $ virtualenv -p 2.7 ..."
123 +}