commit:     2b0e30d278d5945ad8a45548fb556d828296c06a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 12 04:39:03 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct 12 04:59:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b0e30d2

dev-python/yarl: Bump to 1.15.0

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

 dev-python/yarl/Manifest           |  1 +
 dev-python/yarl/yarl-1.15.0.ebuild | 60 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/dev-python/yarl/Manifest b/dev-python/yarl/Manifest
index b88c694963e6..8abe715a7ba3 100644
--- a/dev-python/yarl/Manifest
+++ b/dev-python/yarl/Manifest
@@ -2,4 +2,5 @@ DIST yarl-1.11.1.tar.gz 162095 BLAKE2B 
2fc83033411ec3c1d2a8c4f6b2cbd1fab977a7dd5
 DIST yarl-1.12.1.tar.gz 163223 BLAKE2B 
9d295c9e018ef15f3b089327006ea7dda7689b6ad7730caa716265cb5fd433fbc2bfd61f30be3f53a28a77102c4e04d87b2f4684aaaa3979f2e9f5e4dba8da6b
 SHA512 
3e27c9ee9c416b4c8eb68ec425cba5d913cc7193670a0abb454551170c711b50b96bd6e10cee9fa34456e57d6a9d18852082a3789243b123ed22c9838b8e9eac
 DIST yarl-1.13.1.tar.gz 165912 BLAKE2B 
dfe4f9ac09c66d05b6d072cd6676d1753f97224d556dbd22601e544569d5e852b073c1a89e4ba471177c530ec580fb74700b9e6e21730c548e434ef75933b6bf
 SHA512 
8fccb36dbb019d02fc50f006a3a59decd413abfc6387fd7c1220444f4f79412be1d5119c32fd668b3d553fbaf4de64b9135345e8300c7fa025d892c847955f88
 DIST yarl-1.14.0.tar.gz 166127 BLAKE2B 
7974896144ef23309aead8935f18fe717e39b982bc75eb3c828eaf9a1d01b413c2bbb270344160a396927fc32571928c67eae46146920cc6908e2e3f74e90cd8
 SHA512 
8cc9d1aaa6fcccdfce5ea0a0ac3f89b81c5719568b76e66637e9a7baa0637770523f86495f70e28f94f166579e77d72afd708cef1306dafcd8093c7fb2a1d3f0
+DIST yarl-1.15.0.tar.gz 167065 BLAKE2B 
2daae4ee528501cc00e4e967bce32b15585a827463b76ef8c27db3808dc3bfeac93de8eec0e2a9af28d3622d70a40ce66845c69744ad49dda7205e93d047f614
 SHA512 
25a2b2434204e29f4fc4ef438efda0747aedc3e703a8164f9aa5fee809d8d01895f3b0a9aa4de1d3deaa719d940b2b5e681360e47d8e3704200bffdf5e7151a8
 DIST yarl-1.9.4.tar.gz 141869 BLAKE2B 
367eac4674bf1190122f10bb1dc1c4f3d5e4263e1d95ff2b871067d55a894dc19a6bb5a6c673d1bed28b3c5f77c704799568edfe639d50f0ae10313eb847352d
 SHA512 
e4f7917f1625b40125abae9a13d61795f97e8cf489735e15cf58476e97c3bcf840b1452482f1f7a737fbb2bdd1dc7bbcfa882d0a7f76a27dfb3aea72b7a66c82

diff --git a/dev-python/yarl/yarl-1.15.0.ebuild 
b/dev-python/yarl/yarl-1.15.0.ebuild
new file mode 100644
index 000000000000..d06c598c12e4
--- /dev/null
+++ b/dev-python/yarl/yarl-1.15.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 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 )
+
+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.0[${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 -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