Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/virtualenv/
Date: Wed, 31 Aug 2022 18:07:12
Message-Id: 1661969213.b034a37d4bbdfca85ee876cdff9470ac84374f0b.arthurzam@gentoo
1 commit: b034a37d4bbdfca85ee876cdff9470ac84374f0b
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 17:55:25 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 18:06:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b034a37d
7
8 dev-python/virtualenv: add 20.16.4
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/virtualenv/Manifest | 1 +
13 dev-python/virtualenv/virtualenv-20.16.4.ebuild | 106 ++++++++++++++++++++++++
14 2 files changed, 107 insertions(+)
15
16 diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
17 index 6dd1c1fbff34..7d02a34ba4c3 100644
18 --- a/dev-python/virtualenv/Manifest
19 +++ b/dev-python/virtualenv/Manifest
20 @@ -1 +1,2 @@
21 DIST virtualenv-20.16.3.tar.gz 12219368 BLAKE2B 00a7d38db3e9d929e5f01eb020436cf5b917a10bca876ef4abe7a07f5e86a1b1930ed42acbac96d80375a78b660a70872ba6048c673a4ad4d51cafb7824d8f6d SHA512 d3a90bab9862ea2a70e1dc429dff98a729425858a2153281cba4ecaf13107e6c3a43781e8c96b1f2a6c1ddd797de86bcfee8129a698e45d20eed76432efba5a6
22 +DIST virtualenv-20.16.4.tar.gz 12223823 BLAKE2B 0ca7eafe9bfdfbf2c3b48c2bed454e55a38912c63f326720f14074e21a43ca05b4bd2ca916053e0bed1f3679e5f869771eda28b7ad0d8a87e6fcef149eba4ec0 SHA512 3319962368e5e7f9b79a3c91e909504adf4782fab63e6c25abd15168d6e859df41ebbfa8de94a8b28281cab67dc7cebd12f7289b6d522d6e873caa480dab5cda
23
24 diff --git a/dev-python/virtualenv/virtualenv-20.16.4.ebuild b/dev-python/virtualenv/virtualenv-20.16.4.ebuild
25 new file mode 100644
26 index 000000000000..fe3fd6720779
27 --- /dev/null
28 +++ b/dev-python/virtualenv/virtualenv-20.16.4.ebuild
29 @@ -0,0 +1,106 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Virtual Python Environment builder"
41 +HOMEPAGE="
42 + https://virtualenv.pypa.io/en/stable/
43 + https://pypi.org/project/virtualenv/
44 + https://github.com/pypa/virtualenv/
45 +"
46 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
50 +SLOT="0"
51 +
52 +RDEPEND="
53 + >=dev-python/distlib-0.3.5[${PYTHON_USEDEP}]
54 + >=dev-python/filelock-3.4.1[${PYTHON_USEDEP}]
55 + >=dev-python/platformdirs-2.4[${PYTHON_USEDEP}]
56 + >=dev-python/setuptools-63.2.0[${PYTHON_USEDEP}]
57 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
58 +"
59 +# coverage is used somehow magically in virtualenv, maybe it actually
60 +# tests something useful
61 +BDEPEND="
62 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
63 + test? (
64 + dev-python/coverage[${PYTHON_USEDEP}]
65 + dev-python/flaky[${PYTHON_USEDEP}]
66 + >=dev-python/pip-22.2.1[${PYTHON_USEDEP}]
67 + >=dev-python/pytest-freezegun-0.4.2[${PYTHON_USEDEP}]
68 + >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
69 + >=dev-python/pytest-timeout-2.1[${PYTHON_USEDEP}]
70 + dev-python/wheel[${PYTHON_USEDEP}]
71 + >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
72 + )
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 + # tests failing without python2 installed
92 + "tests/unit/create/test_creator.py::test_py_pyc_missing[True-False]"
93 + "tests/unit/create/test_creator.py::test_py_pyc_missing[False-False]"
94 + )
95 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
96 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-isolated]'
97 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-global]'
98 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-isolated]'
99 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-global]'
100 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-venv-copies-isolated]'
101 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-venv-copies-global]'
102 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-venv-copies-isolated]'
103 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-venv-copies-global]'
104 + 'tests/unit/create/test_creator.py::test_zip_importer_can_import_setuptools'
105 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9-64-bin-]'
106 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9--bin-]'
107 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10-64-bin-]'
108 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10--bin-]'
109 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7-64-bin-]'
110 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7--bin-]'
111 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3-64-bin-]'
112 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3--bin-]'
113 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9-64-bin-]'
114 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9--bin-]'
115 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10-64-bin-]'
116 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10--bin-]'
117 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7-64-bin-]'
118 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7--bin-]'
119 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3-64-bin-]'
120 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3--bin-]'
121 + )
122 + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
123 + # TODO
124 + tests/unit/discovery/py_info/test_py_info.py::test_py_info_setuptools
125 + tests/unit/discovery/py_info/test_py_info.py::test_custom_venv_install_scheme_is_prefered
126 + )
127 +
128 + epytest
129 +}
130 +
131 +pkg_postinst() {
132 + elog "Please note that while virtualenv package no longer supports"
133 + elog "Python 2.7, you can still create py2.7 virtualenvs via:"
134 + elog " $ virtualenv -p 2.7 ..."
135 +}