mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/yarl: Bump to 1.24.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST yarl-1.23.0.tar.gz 194676 BLAKE2B aeef8f23358fcd9a003f5bb78e220197cb4c9eb3f77c594a2d0de887541ab0ea342054b4ee07981ebcf93815f72b447e254c93bd7d433030dbaea1961184b3bb SHA512 b696d996a335a27590579142c90d0787965801df023e867ed7bda2d0e21b5bdf8ff34673a236e5fdbb1cbb492798173a6f7fefc8b3c1fb30677516762d7fb89e
|
||||
DIST yarl-1.23.0.tar.gz.provenance 9221 BLAKE2B b38cc0d9d8d3d5cb564dea65b98ff28b0b8d6547393b343581389ed096d9365d5bb394d3a7b1dee40ab86fd486febb3dd0d1663ca6b7d0949f61ed0eb6292400 SHA512 27ba254d9262ba4ae43de0fcc7dbc67085ae84402d4c94dfe48350dc3a1f4cdc7e898a39bfc723cf2e1246b76de1be8f3f77362d9614eb8a00029e595b539f31
|
||||
DIST yarl-1.24.2.tar.gz 210798 BLAKE2B 24307407fe04c59e33a34bc4c8a529f47966328a592134fc7af3c8fe7170404f5bc7cf0886c05b6d26fae62e7f42470491e92161d71ceb6757998f13a9724942 SHA512 1804d105d20d828c29827cf593aecabb3369af3a5edb62c46af4daa54bb39e452b815258e2a5e6a9fcfcd2485d93e4354822549abd3de29cd681aa0d04e46aab
|
||||
DIST yarl-1.24.2.tar.gz.provenance 9271 BLAKE2B 2cecf60ef6c52ab36fd04d243d854dcff16f7d37228b941d2ceda934a4a65ed94eb3d8e73f93df7e51cb84cd52a71c701b1f251667c6e17ea597bcef9430f86a SHA512 8bbdecb0632757b2e63428d2ba12dc600366583ec3e41bc7409a57c0ae939d09cfb6b0273a1d015e6bdcc480d82954a23571d2fde0c00b0f3b484fb83c8efd4c
|
||||
|
||||
75
dev-python/yarl/yarl-1.24.2.ebuild
Normal file
75
dev-python/yarl/yarl-1.24.2.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=standalone
|
||||
PYPI_VERIFY_REPO=https://github.com/aio-libs/yarl
|
||||
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Yet another URL library"
|
||||
HOMEPAGE="
|
||||
https://github.com/aio-libs/yarl/
|
||||
https://pypi.org/project/yarl/
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="+native-extensions"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/idna-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/multidict-4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/propcache-0.2.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
native-extensions? (
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
)
|
||||
dev-python/expandvars[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( hypothesis )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# override insane flag defaults
|
||||
cat >> packaging/pep517_backend/_cython_configuration.py <<-EOF || die
|
||||
@contextmanager
|
||||
def patched_env(*args, **kwargs):
|
||||
yield
|
||||
EOF
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
local -x YARL_NO_EXTENSIONS=0
|
||||
if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then
|
||||
YARL_NO_EXTENSIONS=1
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_IGNORE=(
|
||||
# benchmarks
|
||||
tests/test_quoting_benchmarks.py
|
||||
tests/test_url_benchmarks.py
|
||||
)
|
||||
|
||||
local opts=()
|
||||
# note different boolean logic than for backend (sigh)
|
||||
local -x YARL_NO_EXTENSIONS=
|
||||
if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then
|
||||
YARL_NO_EXTENSIONS=1
|
||||
fi
|
||||
|
||||
rm -rf yarl || die
|
||||
epytest -o addopts= "${opts[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user