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: Wed, 29 Dec 2021 23:15:07
Message-Id: 1640819694.79bff9ba68228649023bf1628c241ac64e8234c3.mgorny@gentoo
1 commit: 79bff9ba68228649023bf1628c241ac64e8234c3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 29 22:48:54 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 29 23:14:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79bff9ba
7
8 dev-python/virtualenv: Bump to 20.11.2
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.11.2.ebuild | 98 +++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
17 index c571b96f5701..1899cf67a8c6 100644
18 --- a/dev-python/virtualenv/Manifest
19 +++ b/dev-python/virtualenv/Manifest
20 @@ -1,2 +1,3 @@
21 DIST virtualenv-20.10.0.tar.gz 9007218 BLAKE2B 1fd37b38679b7375c1eb6e9644418b1653cb6a8dab194c8553fa113cf4a801a7c1d5e6490067767cfb198a0ef2b5ab9cf166783b9c6fac0b2c8b538949c11804 SHA512 df940aa29801a39d39be46d3518a99e93efb2113650abf81d00b4545183ec6806823ce8b754c5a3c951cb64e941944421046c709ed3de6a925489e5ac1988d48
22 DIST virtualenv-20.11.1.tar.gz 9952979 BLAKE2B d8e44f5a8fedfca4eed79798be74ccfca86af2cacc076d797832028363c2d5269194e711d4511a415420285bc408373a641248a5a96cfaea326f60e023129d65 SHA512 c378bd088d9f2f6a07128d6d04b71554ad7c4de6227baea68ea486c8e10c99c40818eb9bf98cb4c950e64d0aeed4d2be40c101fbd6005d48d2eccaea0382d581
23 +DIST virtualenv-20.11.2.tar.gz 9953645 BLAKE2B 8bd0e5bee4fad2cdb13b1ce3e018191ef69993c9d1c66332c74908483802b2d1aff1ea1ef9acd4d94b17cacc9ae4c4014ded6ac0e7df4ea807d050d1243d5464 SHA512 18f9c6e50aa6d7b7060163b23332d7e9140199e525f7fb4efe99e84dfb298413889f4516b6e942d3e05a667774093ed521cc757a67a1698138cb793b9798a46f
24
25 diff --git a/dev-python/virtualenv/virtualenv-20.11.2.ebuild b/dev-python/virtualenv/virtualenv-20.11.2.ebuild
26 new file mode 100644
27 index 000000000000..dc6456e35f41
28 --- /dev/null
29 +++ b/dev-python/virtualenv/virtualenv-20.11.2.ebuild
30 @@ -0,0 +1,98 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} 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 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
51 +SLOT="0"
52 +
53 +RDEPEND="
54 + >=dev-python/backports-entry_points_selectable-1.0.4[${PYTHON_USEDEP}]
55 + >=dev-python/distlib-0.3.1[${PYTHON_USEDEP}]
56 + >=dev-python/filelock-3[${PYTHON_USEDEP}]
57 + >=dev-python/platformdirs-2[${PYTHON_USEDEP}]
58 + >=dev-python/setuptools-41[${PYTHON_USEDEP}]
59 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]"
60 +# coverage is used somehow magically in virtualenv, maybe it actually
61 +# tests something useful
62 +BDEPEND="
63 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
64 + test? (
65 + dev-python/coverage[${PYTHON_USEDEP}]
66 + dev-python/flaky[${PYTHON_USEDEP}]
67 + >=dev-python/pip-20.0.2[${PYTHON_USEDEP}]
68 + >=dev-python/pytest-freezegun-0.4.1[${PYTHON_USEDEP}]
69 + >=dev-python/pytest-mock-2.0.0[${PYTHON_USEDEP}]
70 + >=dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}]
71 + dev-python/wheel[${PYTHON_USEDEP}]
72 + >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
73 + )"
74 +
75 +# (unpackaged deps)
76 +#distutils_enable_sphinx docs \
77 +# dev-python/sphinx-argparse \
78 +# dev-python/sphinx_rtd_theme \
79 +# dev-python/towncrier
80 +distutils_enable_tests pytest
81 +
82 +src_configure() {
83 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
84 +}
85 +
86 +python_test() {
87 + local EPYTEST_DESELECT=(
88 + tests/unit/activation/test_xonsh.py
89 + tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
90 + tests/unit/create/test_creator.py::test_cross_major
91 + )
92 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
93 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-isolated]'
94 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-global]'
95 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-isolated]'
96 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-global]'
97 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-venv-copies-isolated]'
98 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-venv-copies-global]'
99 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-venv-copies-isolated]'
100 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-venv-copies-global]'
101 + 'tests/unit/create/test_creator.py::test_zip_importer_can_import_setuptools'
102 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9-64-bin-]'
103 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9--bin-]'
104 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10-64-bin-]'
105 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10--bin-]'
106 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7-64-bin-]'
107 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7--bin-]'
108 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3-64-bin-]'
109 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3--bin-]'
110 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9-64-bin-]'
111 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9--bin-]'
112 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10-64-bin-]'
113 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10--bin-]'
114 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7-64-bin-]'
115 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7--bin-]'
116 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3-64-bin-]'
117 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3--bin-]'
118 + )
119 +
120 + distutils_install_for_testing
121 + epytest
122 +}
123 +
124 +pkg_postinst() {
125 + elog "Please note that while virtualenv package no longer supports"
126 + elog "Python 2.7, you can still create py2.7 virtualenvs via:"
127 + elog " $ virtualenv -p 2.7 ..."
128 +}