commit:     3cf8f3aa7c43c3776c30c3ff6c798ee33abb5b47
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 10 01:13:52 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 10 01:28:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cf8f3aa

dev-python/yarl: Bump to 1.20.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/yarl/Manifest           |  1 +
 dev-python/yarl/yarl-1.20.1.ebuild | 66 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-python/yarl/Manifest b/dev-python/yarl/Manifest
index 7f75c734b272..10ad0908e4f7 100644
--- a/dev-python/yarl/Manifest
+++ b/dev-python/yarl/Manifest
@@ -1,3 +1,4 @@
 DIST yarl-1.18.3.tar.gz 181062 BLAKE2B 
41e0e6173bb257b643d7678e3011af7ea7f6ac8100bd68aae6e5a9af95e36ae95f83c516a11169fd1d1d669742b3a8878267533c81289ec56a66bb0d53b2db25
 SHA512 
1686c5ef1b5f3e1cebd121abb7916e45f4a9b08d941a80c34861e87f6121187ee7a553a373405a9fef2332177adf55ffe89bc9a3cabbf24e31905357fdeceba3
 DIST yarl-1.19.0.tar.gz 184396 BLAKE2B 
08e1e1d3aac39a1bace97f3d38f33dfa335309a6a809227d830497fb6fff6c506ff8457ec68de5cfc57f3661e190ecd78fbe2481af7e419d5d889d8f496852e0
 SHA512 
95cf1f26be8497e39ce150672ac95ff36a4a695b8fbb902edb4811b601cc3f73cf8b72b45625afe957649b7a49d08588db0a7b91b46c449c64c9e55fcbda8e23
 DIST yarl-1.20.0.tar.gz 185258 BLAKE2B 
9ffe4d715bcadfa061e4fae7de7c5124c3442abc659cc112b19e02da89691ce13ee434cec1b96be139aca9abbe45afe13d8931a03cea7b41857d43f38cf5f62c
 SHA512 
826bd2d95a8de05630a597b2427a3c37e50b6d44a73d7003ffb20add68abed4742fb5102c7bdfdb69509b39e7e63bf506ffa0f22138715bf9c8c1a3836bb7607
+DIST yarl-1.20.1.tar.gz 186428 BLAKE2B 
904bc2fba743d7cc0f313166477ff93288816853d7831ed25b3589749878b78c5c10ccb0bb8d11cbad66cea8c5c8eab4fa32ff0542351cf1351a7de5c235ebd6
 SHA512 
2e7d2c69ddf07f04468b40dc929f5c54bcc3026386fa5fe98bc7f8b8f8aafee05d1df00a42377767e8a9e839f76b8cf569b8e373b3e94af6a954e68a4031fcc1

diff --git a/dev-python/yarl/yarl-1.20.1.ebuild 
b/dev-python/yarl/yarl-1.20.1.ebuild
new file mode 100644
index 000000000000..bda5d39f49b2
--- /dev/null
+++ b/dev-python/yarl/yarl-1.20.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=standalone
+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}]
+       test? (
+               dev-python/hypothesis[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+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 -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       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[@]}"
+}

Reply via email to