1 |
commit: e92fe8cc6455f1cf9c7eb5ffa7292e194a2e4903 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 3 14:48:47 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 3 17:00:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e92fe8cc |
7 |
|
8 |
dev-python/virtualenv: Bump to 20.0.32 |
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.0.32.ebuild | 93 +++++++++++++++++++++++++ |
14 |
2 files changed, 94 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest |
17 |
index 233bd9f78d2..f4e59f25331 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.31.tar.gz 8300305 BLAKE2B 1574b553b2bc8e05bf00584379f80c1e5c0ee9798595255830059eedea62f02f02d216c421aa2cb312bc9e60694f6a409d0c2495858a89fc1ad7aaddea7965ff SHA512 46220bda37b3b860e44c4d0775a89c22a7ba775287f05438d1d3698201cc213a05b2718ef40be302627005ae349dc59a3141c7a30cc1dab6dc81f7692c7f16a5 |
23 |
+DIST virtualenv-20.0.32.tar.gz 8282189 BLAKE2B 91cfece89079cf05bab406e86a7b4d89ff65b058682f989c1a87ed63ffd9a06447983935a05409e1f8116c45434fe5b4040ed713ae01c17887050709af26a422 SHA512 6080a395df16cc4d38a3afa90337fe0f60ce1d6906c4d62f461c90c67df2967a27144def0891407a96405d7b1ca8b838a0daeed4ccc775ffee35f7dc14f54598 |
24 |
|
25 |
diff --git a/dev-python/virtualenv/virtualenv-20.0.32.ebuild b/dev-python/virtualenv/virtualenv-20.0.32.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a734981f18b |
28 |
--- /dev/null |
29 |
+++ b/dev-python/virtualenv/virtualenv-20.0.32.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 |
+} |