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: Fri, 17 Sep 2021 08:31:28
Message-Id: 1631867476.dd880b5def244fd24cea16f345edbd29e79078a3.mgorny@gentoo
1 commit: dd880b5def244fd24cea16f345edbd29e79078a3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 17 07:55:38 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 17 08:31:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd880b5d
7
8 dev-python/virtualenv: Bump to 20.8.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.8.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 0da5e4b2ef6..e4abcc5f19f 100644
18 --- a/dev-python/virtualenv/Manifest
19 +++ b/dev-python/virtualenv/Manifest
20 @@ -3,3 +3,4 @@ DIST virtualenv-20.6.0.tar.gz 8700762 BLAKE2B 718bbfda175ab4ef0820ba66b480060c03
21 DIST virtualenv-20.7.0.tar.gz 8714219 BLAKE2B 81b5ee144614a7c854e03599270d03454f991520e8381b98ef01b64e91bb7520a3949e5af9710ceb6292be6b7b7e3738ed7a08324b5ada37f8f4941b408fb425 SHA512 af0f993045013814d9397419fc9d789a1ad64dc53818cbeceb5146e418a8535f76b74ed36b4b164d6974660be77de91cda244eb70b810c8c9fb522ba1088813a
22 DIST virtualenv-20.7.1.tar.gz 8714303 BLAKE2B 9ba0714fa842a4d4dc07f8a47536ad95f049c7d4149be7d859af55e6f26aef5d61c80399a8e03de183b7e170ac47eab6bee263c5d3df79eac6a00c63cb368873 SHA512 4d0127ef38655c6370c874a99dc3a92f2d1e50428496878e64aaf52a944f54fb6fc8397c1b4943c40c7cd5c19ee93cccfab735f38d3dcc202372e1081f0ea23f
23 DIST virtualenv-20.7.2.tar.gz 8715517 BLAKE2B 306de1bb6e4aa1c888c28161abb33f7016da47a82bba7181687b99127998e82a67e24961610bcbea8a3cad8e7f218e7c76d62de26a74e2bbdf163ab76021bc41 SHA512 6ae91a0cd5cd4da000d0175762515b1b9af80e273d56293d9d57b3faf63ff72001c8d1b3326c1f9dfcea8a4a157c1f62332a2a02b84e25ac4bd3850b0d39aebc
24 +DIST virtualenv-20.8.0.tar.gz 8706991 BLAKE2B fe605a57ccded505a4f89a0b8410cd492fe165dca5b73a818422b14fadd3c3951b753e59a33a1f94dc4ed5c584ef32eae352cc92a0b71570dbdc2388ff792d62 SHA512 7666d3298d732017631fe6199256910becc91fdbfd259dfc32ca74471ed65055fa9e36e8451bd624af287b5a4611659d84e607b3669fd6183ca599929db88666
25
26 diff --git a/dev-python/virtualenv/virtualenv-20.8.0.ebuild b/dev-python/virtualenv/virtualenv-20.8.0.ebuild
27 new file mode 100644
28 index 00000000000..7e18c125fda
29 --- /dev/null
30 +++ b/dev-python/virtualenv/virtualenv-20.8.0.ebuild
31 @@ -0,0 +1,97 @@
32 +# Copyright 1999-2021 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 ~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 + $(python_gen_cond_dep '
62 + >=dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}]
63 + ' pypy3)"
64 +# coverage is used somehow magically in virtualenv, maybe it actually
65 +# tests something useful
66 +BDEPEND="
67 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
68 + test? (
69 + dev-python/coverage[${PYTHON_USEDEP}]
70 + dev-python/flaky[${PYTHON_USEDEP}]
71 + >=dev-python/pip-20.0.2[${PYTHON_USEDEP}]
72 + >=dev-python/pytest-freezegun-0.4.1[${PYTHON_USEDEP}]
73 + >=dev-python/pytest-mock-2.0.0[${PYTHON_USEDEP}]
74 + >=dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}]
75 + dev-python/wheel[${PYTHON_USEDEP}]
76 + >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
77 + )"
78 +
79 +# (unpackaged deps)
80 +#distutils_enable_sphinx docs \
81 +# dev-python/sphinx-argparse \
82 +# dev-python/sphinx_rtd_theme \
83 +# dev-python/towncrier
84 +distutils_enable_tests pytest
85 +
86 +src_configure() {
87 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
88 +}
89 +
90 +python_test() {
91 + local deselect=(
92 + tests/unit/activation/test_xonsh.py
93 + tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
94 + tests/unit/create/test_creator.py::test_cross_major
95 + )
96 + [[ ${EPYTHON} == pypy3 ]] && deselect+=(
97 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-isolated]'
98 + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-global]'
99 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-isolated]'
100 + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-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 ${deselect[@]/#/--deselect }
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 +}