Skip to content

Commit 95076aa

Browse files
committed
dev-python/yarl: re-add 1.9.2 from main repo
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/2545 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent c6b8e7d commit 95076aa

File tree

3 files changed

+59
-47
lines changed

3 files changed

+59
-47
lines changed

dev-python/yarl/Manifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
DIST yarl-1.8.1.gh.tar.gz 109912 BLAKE2B c7390b78abb5074dd29e96848a77fdb31f6224e99d2bcfd5a28a8bd08881f5ff82cf55b2f54c97324d005a0fb3823732a9ed6bd3f1d837e4ac2341b89e2adb30 SHA512 267523216832c2bc83d92a42e621ff519d427e20c1ee84ac657e13f696a2df2259c837486f192d87944f5ebb834beea60ace791eb4c9c632fd7e552eb5dadf1b
2-
EBUILD yarl-1.8.1.ebuild 910 BLAKE2B 68d8fc7b158dd40cb8dd08f9a2b39544b17ade53772f742ddf951d29dfcb55daee99bada90676a797d8ace257092842d72cd3cb3abfab2fe99203cbf6d4b0a88 SHA512 ecf4dcc5136ed7fa3c2a3c937d61466993cfef4e0408086a253340deabe8f46e9cfe56bfc8cdce8560cf12ba84d9904515ec4d783ed85d49ac04daf7ac01ba2e
1+
DIST yarl-1.9.2.tar.gz 184673 BLAKE2B bb94131059d0cfaf88f04d62a44181245ebcb660cb44904f0b7e8d497905a16d0026aeff454b8179fab5342c6bf9c8d6aadade0d9f7c70321c71bbcc3998e9a3 SHA512 ffbb6df94220bb1561333f1ad69a70334328e2273ec5e91c2741f6fd5ca2f6dd38d5b5f617728797fce490accc2394a406a5f9b5b665af4746746229af0d7c5f
2+
EBUILD yarl-1.9.2.ebuild 1270 BLAKE2B 526c1a8b931ca8579917d32fc1a14e4b78dc4189aaf2147ab34e88a1ffac019fc9777f39b9bb3bf9054a17800745ae084229c6f9f64d230b6534ca3638ad4dff SHA512 4224cbfbad20b9450c3654659754c9868f02eb87ee9623c6da075564cf488681c80666208e0d7c8576d51cadcfa140fcdcf91b568a826bbf9862ec490bdde77c
33
MISC metadata.xml 510 BLAKE2B b71d4ef6572b9b92c69edb95ca9db8c207ad5f98a7e9c6efc594406d2166700ea248472ba0940ec831c92337f1941d630b4852fcbd824d4b769a5add93c7803d SHA512 b6aa9af1d899f091ba0e8d7aa7a3f778d0e195d769c42c4a40ef9badd568241f0e0c682493ecdd5989af75e3f7774f6a4530df513cdbc96659960ae7f1da1873

dev-python/yarl/yarl-1.8.1.ebuild

Lines changed: 0 additions & 45 deletions
This file was deleted.

dev-python/yarl/yarl-1.9.2.ebuild

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_EXT=1
7+
DISTUTILS_USE_PEP517=setuptools
8+
PYTHON_COMPAT=( python3_{10..12} )
9+
10+
inherit distutils-r1 pypi
11+
12+
DESCRIPTION="Yet another URL library"
13+
HOMEPAGE="
14+
https://github.com/aio-libs/yarl/
15+
https://pypi.org/project/yarl/
16+
"
17+
18+
LICENSE="Apache-2.0"
19+
SLOT="0"
20+
KEYWORDS="amd64 arm arm64 x86"
21+
22+
RDEPEND="
23+
>=dev-python/multidict-4.0[${PYTHON_USEDEP}]
24+
>=dev-python/idna-2.0[${PYTHON_USEDEP}]
25+
"
26+
BDEPEND="
27+
dev-python/cython
28+
"
29+
30+
distutils_enable_tests pytest
31+
distutils_enable_sphinx docs \
32+
dev-python/alabaster
33+
34+
src_configure() {
35+
set -- cython -3 yarl/_quoting_c.pyx
36+
echo "${*}" >&2
37+
"${@}" || die
38+
}
39+
40+
python_test() {
41+
local EPYTEST_DESELECT=()
42+
if [[ ${EPYTHON} == python3.12 ]]; then
43+
EPYTEST_DESELECT+=(
44+
# tests for seemingly invalid addresses, unlikely to affect
45+
# real world use
46+
# https://github.com/aio-libs/yarl/issues/876
47+
tests/test_url.py::test_ipv6_zone
48+
tests/test_url.py::test_human_repr_delimiters
49+
tests/test_url_parsing.py::TestHost::test_masked_ipv4
50+
tests/test_url_parsing.py::TestHost::test_strange_ip
51+
tests/test_url_parsing.py::TestUserInfo::test_weird_user3
52+
)
53+
fi
54+
55+
cd tests || die
56+
epytest --override-ini=addopts=
57+
}

0 commit comments

Comments
 (0)