commit:     7b07bebd7ffcdb5880c6187a848cf7abf5bdb323
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  6 05:17:16 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr  6 05:17:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b07bebd

dev-python/yarl: Bump to 1.19.0

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

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

diff --git a/dev-python/yarl/Manifest b/dev-python/yarl/Manifest
index c6c7fb5e9c37..276635a671e9 100644
--- a/dev-python/yarl/Manifest
+++ b/dev-python/yarl/Manifest
@@ -1 +1,2 @@
 DIST yarl-1.18.3.tar.gz 181062 BLAKE2B 
41e0e6173bb257b643d7678e3011af7ea7f6ac8100bd68aae6e5a9af95e36ae95f83c516a11169fd1d1d669742b3a8878267533c81289ec56a66bb0d53b2db25
 SHA512 
1686c5ef1b5f3e1cebd121abb7916e45f4a9b08d941a80c34861e87f6121187ee7a553a373405a9fef2332177adf55ffe89bc9a3cabbf24e31905357fdeceba3
+DIST yarl-1.19.0.tar.gz 184396 BLAKE2B 
08e1e1d3aac39a1bace97f3d38f33dfa335309a6a809227d830497fb6fff6c506ff8457ec68de5cfc57f3661e190ecd78fbe2481af7e419d5d889d8f496852e0
 SHA512 
95cf1f26be8497e39ce150672ac95ff36a4a695b8fbb902edb4811b601cc3f73cf8b72b45625afe957649b7a49d08588db0a7b91b46c449c64c9e55fcbda8e23

diff --git a/dev-python/yarl/yarl-1.19.0.ebuild 
b/dev-python/yarl/yarl-1.19.0.ebuild
new file mode 100644
index 000000000000..44a020ca0521
--- /dev/null
+++ b/dev-python/yarl/yarl-1.19.0.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_{10..13} pypy3 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