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