mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/virtualenv: Bump to 21.3.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,3 +2,5 @@ DIST virtualenv-20.39.1.tar.gz 5870061 BLAKE2B 30fb2c107616c080935ede0ea2e72e5b7
|
||||
DIST virtualenv-20.39.1.tar.gz.provenance 9445 BLAKE2B 39909e09db2ab5b8fdd9a192943e3e8279a16efd2c55a88dca6c2f76bb86b78d569d6e9a8a6ef8415a6805d42a0967f0862609eb9a59a5ef7bf35dbfb3a55a51 SHA512 6c7f752fc702cfb00005215186fc6062a30f319d5d22457abc7a98ee9fbc8e7e466aa6b0af319ff3a98dde013e98759f16100003012c00e644ae91982ceaf157
|
||||
DIST virtualenv-21.3.0.tar.gz 7614069 BLAKE2B fb7a290013284aced812db3101d767876b3fc2ced24afd7f246d2859aed4ff90e94f7a093fa4f2d2cbebcdf719085bd991ae9fdb6c5b2dfb7a2ed3301b0757fc SHA512 34a9aceb0524563527cb03b5e6ba89320e5b18db6849fd9fb965ed8a268d161eb24477f31140c56535881ef55b3552c2828f62b3ec0144c61e4893685d63e972
|
||||
DIST virtualenv-21.3.0.tar.gz.provenance 9425 BLAKE2B 00eeaae90e82280ae4aae553f7ca9839f3b3040970e6e2c4891ee5e8831c0fef3965e57af13ee5c27926cbb80fbfee0efc2dc5d9ffa6ad173f1ddc78645dac59 SHA512 c0ae0f1c862596be9c669ba1d97b5f7d0f713efdb1e48d0cecb1ca968205f71754c5a86cfa2c0ba39be8d5ae6b9b11677fa3990d3027067b687eb7e377c9e92f
|
||||
DIST virtualenv-21.3.1.tar.gz 7613791 BLAKE2B a62d25304dfb3feff7932b7135ff5c6c9f536a9548c171387201d88d931d5ea33d39c3da92efe0a9a62ca3d77cd9905126030f8e58ad919effd47fb291cd1b52 SHA512 2e445492b2c02e47c57db39bdf7d3506dcf09958a73a814c4629e1e32281d9ca337c381cc61b3da46b583f08a77d7729eb3a655471b0f70196cff90daf4f24a0
|
||||
DIST virtualenv-21.3.1.tar.gz.provenance 9480 BLAKE2B 5322a3f210b2dbf92684bf0d2e99a9326b375e46135c1c7f3281b94a71d417cff696ea919b1602e61ae16d92642e3dc629c3948c609b115a0a45502fa8f2135e SHA512 665acafd07adb9594a8be6696987eceaa3702bc850c29c27f7e203cb56666fc3715a5419bb49e2b219756b1c880412afc314f7528c9ae2230501fa40fa99d4e8
|
||||
|
||||
136
dev-python/virtualenv/virtualenv-21.3.1.ebuild
Normal file
136
dev-python/virtualenv/virtualenv-21.3.1.ebuild
Normal file
@@ -0,0 +1,136 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYPI_VERIFY_REPO=https://github.com/pypa/virtualenv
|
||||
PYTHON_TESTED=( python3_{11..14} pypy3_11 )
|
||||
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Virtual Python Environment builder"
|
||||
HOMEPAGE="
|
||||
https://virtualenv.pypa.io/en/stable/
|
||||
https://pypi.org/project/virtualenv/
|
||||
https://github.com/pypa/virtualenv/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/distlib-0.3.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/filelock-3.24.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-3.9.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-discovery-1.2.2[${PYTHON_USEDEP}]
|
||||
|
||||
dev-python/ensurepip-pip
|
||||
>=dev-python/ensurepip-setuptools-70.1
|
||||
dev-python/ensurepip-wheel
|
||||
"
|
||||
# coverage is used somehow magically in virtualenv, maybe it actually
|
||||
# tests something useful
|
||||
BDEPEND="
|
||||
dev-python/hatch-vcs[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
>=dev-python/pip-22.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-67.8[${PYTHON_USEDEP}]
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
|
||||
' "${PYTHON_TESTED[@]}")
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/time-machine[${PYTHON_USEDEP}]
|
||||
' python3_{11..14})
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pytest-freezer-0.4.6[${PYTHON_USEDEP}]
|
||||
' 'pypy3*')
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# use wheels from ensurepip bundle
|
||||
"${FILESDIR}/${PN}-21.2.4-ensurepip.patch"
|
||||
)
|
||||
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# workaround test failures due to warnings from setuptools-scm, sigh
|
||||
echo '[tool.setuptools_scm]' >> pyproject.toml || die
|
||||
|
||||
# remove useless pins
|
||||
sed -i -e 's:,<[=0-9.]*::' pyproject.toml || die
|
||||
|
||||
# remove bundled wheels
|
||||
rm src/virtualenv/seed/wheels/embed/*.whl || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
|
||||
einfo "Skipping testing on ${EPYTHON}"
|
||||
return
|
||||
fi
|
||||
|
||||
local EPYTEST_DESELECT=(
|
||||
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
|
||||
# tests for old wheels with py3.7 support
|
||||
tests/unit/seed/embed/test_pip_invoke.py::test_base_bootstrap_via_pip_invoke
|
||||
tests/unit/seed/wheels/test_wheels_util.py::test_wheel_not_support
|
||||
# broken by different wheel versions in ensurepip
|
||||
tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest_string
|
||||
tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_exact
|
||||
tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest_none
|
||||
tests/unit/seed/wheels/test_acquire.py::test_download_wheel_bad_output
|
||||
# hangs on a busy system, sigh
|
||||
tests/unit/test_util.py::test_reentrant_file_lock_is_thread_safe
|
||||
# TODO
|
||||
tests/unit/create/via_global_ref/test_build_c_ext.py::test_can_build_c_extensions
|
||||
# random resource leaks or xdist
|
||||
tests/unit/test_file_limit.py::test_too_many_open_files
|
||||
# Internet
|
||||
tests/unit/create/test_creator.py::test_create_distutils_cfg
|
||||
# we do not use bundled wheels
|
||||
tests/unit/seed/wheels/test_bundle.py::test_every_wheel_on_disk_has_sha256
|
||||
)
|
||||
case ${EPYTHON} in
|
||||
pypy3.11)
|
||||
EPYTEST_DESELECT+=(
|
||||
# these don't like the executable called pypy3.11?
|
||||
tests/unit/activation/test_bash.py::test_bash
|
||||
tests/unit/activation/test_fish.py::test_fish
|
||||
tests/unit/discovery/py_info/test_py_info.py::test_fallback_existent_system_executable
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
local -x TZ=UTC
|
||||
local EPYTEST_PLUGINS=( pytest-{mock,rerunfailures} )
|
||||
if [[ ${EPYTHON} == pypy3* ]]; then
|
||||
EPYTEST_PLUGINS+=( pytest-freezer )
|
||||
else
|
||||
EPYTEST_PLUGINS+=( time-machine )
|
||||
fi
|
||||
local EPYTEST_RERUNS=5
|
||||
local EPYTEST_TIMEOUT=180
|
||||
local EPYTEST_XDIST=1
|
||||
epytest -o addopts=
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
# remove bundled wheels, we're using ensurepip bundle instead
|
||||
find "${ED}" -name '*.whl' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user