mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
dev-python/yarl: Bump to 1.25.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST yarl-1.24.5.tar.gz 228679 BLAKE2B 81e0d83e7ebd56602fba4b9e8a0c4b98269d11fdc64d0e72ff7fe1c9f7872784cabbbe6ce10596f73939c08253c0d238dff303c2302911b589e6a7ac47015b90 SHA512 0805b94ab2d69bd906a8f4a6a65b65e0cc11e0eaec473d40e9d363664c48a25dbd5cb0a5d4ed14b5ec965c2e5a17c766788b3d08f82a836876e80e2c9a012cb3
|
||||
DIST yarl-1.24.5.tar.gz.provenance 9424 BLAKE2B e0b509817c88266a0a6eebe00da6bec206b0c3c18e7d2d13e39b39b0d2dd2611d9a766380375e67b51ba4c0a046db07b59b6f182bccd8fb1748811110970b820 SHA512 f5d551cc2484ed7c27b4e40e118cb3f96755ff4b8d8cdda036c1fdf8c542fd71456183719f749f42a973069ed90d4543398eeba1707b2700e1a2bc5c08a92a08
|
||||
DIST yarl-1.25.1.tar.gz 246245 BLAKE2B b9cc73e56ac526f9e703c0c60808f25c557a1a1c285920b220966cc6a2627265f0f034d7ea72546a07b5775c2e282e11b0179f935407c3f0df95ba13f59bdd2b SHA512 d7a8ecaeaef036c622b97d610a607ad55481e427957e9291a3e2035f3df0552024f1d57cb97465d7bb62faf2a2ae13661912325f77af99c80830280658988f52
|
||||
DIST yarl-1.25.1.tar.gz.provenance 9512 BLAKE2B 1b7d8431fd2687c8b07dc938746c6901accb1a3be1b1c079df2fed08241b8dd0b1a83817b361549f71a033ecac8eb844ef05a6bf70607610ce3e22f7f0d560de SHA512 85c8f4a4651788a3f304fe83119e4c074ad6e5b9491217e583e2d3eb78a61eaf39403385c11ef05b643899e3dc466878d9bf9ae8a5cc27a85e434f1b9f1de807
|
||||
|
||||
75
dev-python/yarl/yarl-1.25.1.ebuild
Normal file
75
dev-python/yarl/yarl-1.25.1.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_{12..15} python3_{14..15}t )
|
||||
|
||||
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