mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/virtualenv: Bump to 21.3.0
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.2.4.tar.gz 5850742 BLAKE2B 1aa6aee759d79e1d108d8564f1a797daf67d078a8ceb6ce3fa706788a3c1eaa8a8ee590320dc3de404061024e80ccc1925df94ed18b7998133c37237096725af SHA512 59cd373c7b149ab83609f2a331fb6ffa95792647d939d129b661cb12aa02686e1b789ccdf2ecf9ab959e3645c42df303ddb5a277e0600b156f6567f797fc49ff
|
||||
DIST virtualenv-21.2.4.tar.gz.provenance 9343 BLAKE2B 5458056abadcd9cf65f307c82460dab3501e38a9f4d688a0dd3c718e9b3aa401357fd45a1b679cacca9675fd501ba115d2fda76929bfe753ba644f4d1eb24571 SHA512 dc4ad98f34b6e4f15943ec3a8bc07d0335d60943cacb7f1ed08f6a5c0ee34c115c304ffb34a2fd89c19f3d1c59db9f3ee24e3c6a39d7c90f8e251f60d4d7bcb8
|
||||
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
|
||||
|
||||
136
dev-python/virtualenv/virtualenv-21.3.0.ebuild
Normal file
136
dev-python/virtualenv/virtualenv-21.3.0.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 ~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