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: Sun, 01 Aug 2021 12:25:15
Message-Id: 1627820347.701b2e54c22ed1d86a08fe4a6a9919659c9de907.mgorny@gentoo
1 commit: 701b2e54c22ed1d86a08fe4a6a9919659c9de907
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 1 09:50:49 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 1 12:19:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=701b2e54
7
8 dev-python/virtualenv: Bump to 20.7.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.7.0.ebuild | 97 ++++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
17 index 72e15fcdbb7..db0e37a80dd 100644
18 --- a/dev-python/virtualenv/Manifest
19 +++ b/dev-python/virtualenv/Manifest
20 @@ -1,2 +1,3 @@
21 DIST virtualenv-20.4.7.tar.gz 10625204 BLAKE2B 1233ea45f771fb425b99c966904e2c5444e5fcb617b1d7cd34cdac097ee15566b7f4c841d444393723ed369193f33bef90ea7caa5b3c20aaf65fbde2f865abf7 SHA512 a554fb32cc46cb1cef2a2655bdae598efb52a4e71223eb10d9a36b124390546250aa11cf7da991a41ef4697523ec4562a31e35b5ab7ee8aba748ea4ff28e088b
22 DIST virtualenv-20.6.0.tar.gz 8700762 BLAKE2B 718bbfda175ab4ef0820ba66b480060c0371c54a3e6c622c816d8c30141951c85b4f461fa03f71912a767b8d6a40733ab253062466e38a4a2e18b3169812e6a1 SHA512 7eff570f407a4986336d5a34bdcab1621d953aa6900d41962a85a5a44d7b68d378cda4a1bc1ddbfbc468580e051a98c37be17b0a52babbb00166718a987a591c
23 +DIST virtualenv-20.7.0.tar.gz 8714219 BLAKE2B 81b5ee144614a7c854e03599270d03454f991520e8381b98ef01b64e91bb7520a3949e5af9710ceb6292be6b7b7e3738ed7a08324b5ada37f8f4941b408fb425 SHA512 af0f993045013814d9397419fc9d789a1ad64dc53818cbeceb5146e418a8535f76b74ed36b4b164d6974660be77de91cda244eb70b810c8c9fb522ba1088813a
24
25 diff --git a/dev-python/virtualenv/virtualenv-20.7.0.ebuild b/dev-python/virtualenv/virtualenv-20.7.0.ebuild
26 new file mode 100644
27 index 00000000000..26beb3bd35e
28 --- /dev/null
29 +++ b/dev-python/virtualenv/virtualenv-20.7.0.ebuild
30 @@ -0,0 +1,97 @@
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="~amd64 ~hppa ~mips ~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 + $(python_gen_cond_dep '
61 + >=dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}]
62 + ' pypy3)"
63 +# coverage is used somehow magically in virtualenv, maybe it actually
64 +# tests something useful
65 +BDEPEND="
66 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
67 + test? (
68 + dev-python/coverage[${PYTHON_USEDEP}]
69 + dev-python/flaky[${PYTHON_USEDEP}]
70 + >=dev-python/pip-20.0.2[${PYTHON_USEDEP}]
71 + >=dev-python/pytest-freezegun-0.4.1[${PYTHON_USEDEP}]
72 + >=dev-python/pytest-mock-2.0.0[${PYTHON_USEDEP}]
73 + >=dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}]
74 + dev-python/wheel[${PYTHON_USEDEP}]
75 + >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
76 + )"
77 +
78 +# (unpackaged deps)
79 +#distutils_enable_sphinx docs \
80 +# dev-python/sphinx-argparse \
81 +# dev-python/sphinx_rtd_theme \
82 +# dev-python/towncrier
83 +distutils_enable_tests pytest
84 +
85 +src_configure() {
86 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
87 +}
88 +
89 +python_test() {
90 + local deselect=(
91 + tests/unit/activation/test_xonsh.py
92 + tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
93 + tests/unit/create/test_creator.py::test_cross_major
94 + )
95 + [[ ${EPYTHON} == pypy3 ]] && 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_zip_importer_can_import_setuptools'
101 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9-64-bin-]'
102 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9--bin-]'
103 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10-64-bin-]'
104 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.10--bin-]'
105 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7-64-bin-]'
106 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7--bin-]'
107 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3-64-bin-]'
108 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3--bin-]'
109 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9-64-bin-]'
110 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9--bin-]'
111 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10-64-bin-]'
112 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.10--bin-]'
113 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7-64-bin-]'
114 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7--bin-]'
115 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3-64-bin-]'
116 + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3--bin-]'
117 + )
118 +
119 + distutils_install_for_testing
120 + epytest ${deselect[@]/#/--deselect }
121 +}
122 +
123 +pkg_postinst() {
124 + elog "Please note that while virtualenv package no longer supports"
125 + elog "Python 2.7, you can still create py2.7 virtualenvs via:"
126 + elog " $ virtualenv -p 2.7 ..."
127 +}