Skip to content

Commit 961c91b

Browse files
committed
dev-python/aiohttp: new package, add 3.9.4
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3217 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 81d3242 commit 961c91b

File tree

4 files changed

+144
-2
lines changed

4 files changed

+144
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
617617

618618
## Licenses
619619
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
620-
There are 1978 Ebuilds in total, 1967 of them have in total 1986 (42 different) licenses assigned.
620+
There are 1979 Ebuilds in total, 1968 of them have in total 1987 (42 different) licenses assigned.
621621

622622
|License| Ebuilds using it|
623623
|-------|-----|
624624
|MIT|1122|
625-
|Apache-2.0|446|
625+
|Apache-2.0|447|
626626
|GPL-3|129|
627627
|BSD|111|
628628
|LGPL-3|26|

dev-python/aiohttp/Manifest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DIST aiohttp-3.9.4.tar.gz 7500720 BLAKE2B 1f41e481590425c16ef9e797ecc78e08d00fda65b40c38e34226ada969f3114cae3f6953980d23b0e96e284f6e49fd0a84aa93c6b7a666d60690e9a9fd9c41b2 SHA512 e26e7148602d72c77fe46e0596614b448f38a9014834a72c4131d8b315dbbd401ce4e1a403ef35ea7a9ba7fafaddc42031d38b93b45464accdedf26ba99fc960
2+
EBUILD aiohttp-3.9.4.ebuild 3259 BLAKE2B 08ba30a5bd706695ffd130dd085f591f596cd196c3b0c3554ce33c688739cbba5e4c7b9640d94125121e10b19a7a256f56094d2b4460e15793ea4dbedad7ac5e SHA512 bc2ca560e34d1697638db24b20084fab3fd6cd87eda9ebe0c7af71205c725cf427b2970fe4594544ddc72bb4a5442371536bf4424f20e4cacd1d2df3deb0c79c
3+
MISC metadata.xml 490 BLAKE2B 5233af0b5e2668b1eb62278b05b62f24f1ab90f6d05b20dd9f1c5b54b846919c3fa28b843df28f5bfa320996d46de0e74c7a28bd0bef02aaaca14b1cec52baba SHA512 9b701c5c5a22b6aa94977a67bc40f3dc9df8337556952658a2a17ecaaa471cd7f7b5b8bf3a0088208087677555f0cbb8760c091b03b96ee70affe3e2b84cf6d5
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Copyright 1999-2024 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_{11..12} )
9+
10+
inherit distutils-r1 pypi
11+
12+
DESCRIPTION="HTTP client/server for asyncio"
13+
HOMEPAGE="
14+
https://github.com/aio-libs/aiohttp/
15+
https://pypi.org/project/aiohttp/
16+
"
17+
18+
LICENSE="Apache-2.0"
19+
SLOT="0"
20+
KEYWORDS="amd64 arm arm64 x86"
21+
IUSE="test-rust speedups"
22+
23+
RDEPEND="
24+
>=dev-python/aiohappyeyeballs-2.3.0[${PYTHON_USEDEP}]
25+
>=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}]
26+
>=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
27+
dev-python/brotlicffi[${PYTHON_USEDEP}]
28+
>=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}]
29+
>=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
30+
>=dev-python/yarl-1.0[${PYTHON_USEDEP}]
31+
$(python_gen_cond_dep '
32+
<dev-python/async-timeout-5[${PYTHON_USEDEP}]
33+
>=dev-python/async-timeout-4.0[${PYTHON_USEDEP}]
34+
' 3.10)
35+
speedups? (
36+
>=dev-python/aiodns-3.2.0[${PYTHON_USEDEP}]
37+
dev-python/brotlipy[${PYTHON_USEDEP}]
38+
dev-python/brotlicffi[${PYTHON_USEDEP}]
39+
)
40+
"
41+
BDEPEND="
42+
dev-python/cython[${PYTHON_USEDEP}]
43+
test? (
44+
dev-python/freezegun[${PYTHON_USEDEP}]
45+
www-servers/gunicorn[${PYTHON_USEDEP}]
46+
dev-python/pytest-forked[${PYTHON_USEDEP}]
47+
dev-python/pytest-mock[${PYTHON_USEDEP}]
48+
dev-python/pytest-xdist[${PYTHON_USEDEP}]
49+
dev-python/re-assert[${PYTHON_USEDEP}]
50+
$(python_gen_cond_dep '
51+
dev-python/time-machine[${PYTHON_USEDEP}]
52+
' 'python3*')
53+
test-rust? (
54+
dev-python/trustme[${PYTHON_USEDEP}]
55+
)
56+
)
57+
"
58+
59+
DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
60+
61+
EPYTEST_XDIST=1
62+
distutils_enable_tests pytest
63+
64+
src_prepare() {
65+
# increase the timeout a little
66+
sed -e '/abs=/s/0.001/0.01/' -i tests/test_helpers.py || die
67+
# xfail_strict fails on py3.10
68+
sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die
69+
sed -i -e 's:-Werror::' Makefile || die
70+
71+
distutils-r1_src_prepare
72+
}
73+
74+
python_configure_all() {
75+
# workaround missing files
76+
mkdir tools || die
77+
> requirements/cython.txt || die
78+
> tools/gen.py || die
79+
chmod +x tools/gen.py || die
80+
# force rehashing first
81+
emake requirements/.hash/cython.txt.hash
82+
> .update-pip || die
83+
> .install-cython || die
84+
emake cythonize
85+
}
86+
87+
python_test() {
88+
local EPYTEST_IGNORE=(
89+
# proxy is not packaged
90+
tests/test_proxy_functional.py
91+
# python_on_whales is not packaged
92+
tests/autobahn/test_autobahn.py
93+
)
94+
95+
local EPYTEST_DESELECT=(
96+
# Internet
97+
tests/test_client_session.py::test_client_session_timeout_zero
98+
# broken by irrelevant deprecation warnings
99+
tests/test_circular_imports.py::test_no_warnings
100+
# TODO
101+
tests/test_client_session.py::test_request_tracing_url_params
102+
# fragile timing test
103+
tests/test_imports.py::test_import_time
104+
# crash in time-machine
105+
# https://github.com/aio-libs/aiohttp/issues/7851
106+
# https://github.com/adamchainz/time-machine/issues/403
107+
tests/test_cookiejar.py::TestCookieJarSafe::test_max_age
108+
)
109+
110+
case ${EPYTHON} in
111+
pypy3)
112+
# upstream unconditionally blocks building C extensions
113+
# on PyPy3 but the test suite needs an explicit switch,
114+
# sigh
115+
local -x AIOHTTP_NO_EXTENSIONS=1
116+
;;
117+
esac
118+
119+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
120+
local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin,pytest_forked
121+
rm -rf aiohttp || die
122+
epytest --forked
123+
}

dev-python/aiohttp/metadata.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>[email protected]</email>
6+
<name>Zac Medico</name>
7+
</maintainer>
8+
<maintainer type="project">
9+
<email>[email protected]</email>
10+
<name>Python</name>
11+
</maintainer>
12+
<upstream>
13+
<remote-id type="pypi">aiohttp</remote-id>
14+
<remote-id type="github">aio-libs/aiohttp</remote-id>
15+
</upstream>
16+
</pkgmetadata>

0 commit comments

Comments
 (0)