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: Tue, 29 Nov 2022 06:59:53
Message-Id: 1669705182.6a73eebf76ed394c3e85f9892f40e6373a59ef56.mgorny@gentoo
1 commit: 6a73eebf76ed394c3e85f9892f40e6373a59ef56
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 06:14:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 06:59:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a73eebf
7
8 dev-python/virtualenv: Bump to 20.17.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.17.0.ebuild | 107 ++++++++++++++++++++++++
14 2 files changed, 108 insertions(+)
15
16 diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
17 index ac5bae1f731f..0cf00daa5510 100644
18 --- a/dev-python/virtualenv/Manifest
19 +++ b/dev-python/virtualenv/Manifest
20 @@ -1,3 +1,4 @@
21 DIST virtualenv-20.16.5.tar.gz 12223925 BLAKE2B 4f87f955d2d2c2b722d7a3699a74dc06aff7f2898203e87e607d1cabf182954fdf5eb2ba847d7b5641ded88e068d6e133441082703f8d874fbb92583f72eb6b1 SHA512 2d4f96057eb8fea5da07126bbc656306b8ebc2db1c82a84b784fcb82cd1959a571dc1f016dead9561e1d073a8b06e10f2e225d6484b363b960adaa64239826d3
22 DIST virtualenv-20.16.6.tar.gz 12233333 BLAKE2B 3165de2c5350185f06ad2c1b105987b6bca421d5172a07dbef6486a285c2c5e7f8e095901241c894daec11f2e9bc565ddb2a7605eb5ff5ec9f84ea77296ab206 SHA512 24ca5038cc4e9cd72cf99a8bd4b96bda10cdc8deae2e6e7a0bef5000fd8fbeda87c4fda21aeb3b109a3763e47e0a7c7a5f383914a1bb1edcd8ed6791117d91cb
23 DIST virtualenv-20.16.7.tar.gz 12268638 BLAKE2B 59403066eaa717532f672d5367916dda69c53e075c09eec62c2cdc1eaf3d642c206b4cf4959f498776b2c6022a88a42c21f2f8308a1efe9c2d03fb0f4ca634a2 SHA512 975298181696c4636a9567c29b4da5bad703d35fcf2a110cc24146e5bf7afe63b3fcb1f1601586b03bc0deef08c2278577bedf40cb21a7e07841986a9215dc69
24 +DIST virtualenv-20.17.0.tar.gz 12269523 BLAKE2B 0aca62cbe7467b8afa17c6189439cbc9141c8e3d471674a65d3624180bf7bef199a5860b56be1659c4c9b40c065bad9ff8b879b85d785aff97a6b63ff7b428a9 SHA512 28318a33b168c2226e703951b9205d48fd0349fa8407f265cdba97d9d12d7aec6bfe209f1de4f115eb860ced0a3c0323ab6bd5ac9b88f72342e95daeed839524
25
26 diff --git a/dev-python/virtualenv/virtualenv-20.17.0.ebuild b/dev-python/virtualenv/virtualenv-20.17.0.ebuild
27 new file mode 100644
28 index 000000000000..e4891355eb78
29 --- /dev/null
30 +++ b/dev-python/virtualenv/virtualenv-20.17.0.ebuild
31 @@ -0,0 +1,107 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Virtual Python Environment builder"
43 +HOMEPAGE="
44 + https://virtualenv.pypa.io/en/stable/
45 + https://pypi.org/project/virtualenv/
46 + https://github.com/pypa/virtualenv/
47 +"
48 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
49 +
50 +LICENSE="MIT"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
52 +SLOT="0"
53 +
54 +RDEPEND="
55 + >=dev-python/distlib-0.3.6[${PYTHON_USEDEP}]
56 + >=dev-python/filelock-3.4.1[${PYTHON_USEDEP}]
57 + >=dev-python/platformdirs-2.4[${PYTHON_USEDEP}]
58 + >=dev-python/setuptools-63.2.0[${PYTHON_USEDEP}]
59 +"
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-22.2.1[${PYTHON_USEDEP}]
68 + >=dev-python/pytest-freezegun-0.4.2[${PYTHON_USEDEP}]
69 + >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
70 + >=dev-python/pytest-timeout-2.1[${PYTHON_USEDEP}]
71 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
72 + dev-python/wheel[${PYTHON_USEDEP}]
73 + >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
74 + )
75 +"
76 +
77 +# (unpackaged deps)
78 +#distutils_enable_sphinx docs \
79 +# dev-python/sphinx-argparse \
80 +# dev-python/sphinx_rtd_theme \
81 +# dev-python/towncrier
82 +distutils_enable_tests pytest
83 +
84 +src_configure() {
85 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
86 +}
87 +
88 +python_test() {
89 + local EPYTEST_DESELECT=(
90 + tests/unit/activation/test_xonsh.py
91 + tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
92 + tests/unit/create/test_creator.py::test_cross_major
93 + # tests failing without python2 installed
94 + "tests/unit/create/test_creator.py::test_py_pyc_missing[True-False]"
95 + "tests/unit/create/test_creator.py::test_py_pyc_missing[False-False]"
96 + )
97 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
98 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-isolated]'
99 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-global]'
100 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-isolated]'
101 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-global]'
102 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-venv-copies-isolated]'
103 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-venv-copies-global]'
104 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-venv-copies-isolated]'
105 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-venv-copies-global]'
106 + 'tests/unit/create/test_creator.py::test_zip_importer_can_import_setuptools'
107 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9-64-bin-]'
108 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9--bin-]'
109 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10-64-bin-]'
110 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10--bin-]'
111 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7-64-bin-]'
112 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7--bin-]'
113 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3-64-bin-]'
114 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3--bin-]'
115 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9-64-bin-]'
116 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9--bin-]'
117 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10-64-bin-]'
118 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10--bin-]'
119 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7-64-bin-]'
120 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7--bin-]'
121 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3-64-bin-]'
122 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3--bin-]'
123 + )
124 + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
125 + # TODO
126 + tests/unit/discovery/py_info/test_py_info.py::test_py_info_setuptools
127 + tests/unit/discovery/py_info/test_py_info.py::test_custom_venv_install_scheme_is_prefered
128 + tests/unit/discovery/py_info/test_py_info.py::test_fallback_existent_system_executable
129 + )
130 +
131 + epytest
132 +}
133 +
134 +pkg_postinst() {
135 + elog "Please note that while virtualenv package no longer supports"
136 + elog "Python 2.7, you can still create py2.7 virtualenvs via:"
137 + elog " $ virtualenv -p 2.7 ..."
138 +}