homeassistant 2024.10.0_beta4

This commit is contained in:
Xavier FORESTIER
2024-10-16 19:41:35 +02:00
parent 53cf05a5d9
commit 8913105d1b
13 changed files with 1101 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
DIST aiohttp-3.10.7.tar.gz 7538967 BLAKE2B c022b01ec3b2bb6549b00c43231692b643be9cda4af3c82748f55c813f12a0f16963c086fa99746e0f9bd8f95f5c1570b647ab0ca9f30aed501b563a6de773f6 SHA512 bfef47dfe14a7cc23f2962abfede36105b5061d3c537b4309b09d83ced545ff9f2e0a2f3713cac30ac5ce31ca951dbc6d1beafa571254a0a84b1f1f8d6ed6831
DIST aiohttp-3.9.4.tar.gz 7500720 BLAKE2B 1f41e481590425c16ef9e797ecc78e08d00fda65b40c38e34226ada969f3114cae3f6953980d23b0e96e284f6e49fd0a84aa93c6b7a666d60690e9a9fd9c41b2 SHA512 e26e7148602d72c77fe46e0596614b448f38a9014834a72c4131d8b315dbbd401ce4e1a403ef35ea7a9ba7fafaddc42031d38b93b45464accdedf26ba99fc960
EBUILD aiohttp-3.10.7.ebuild 3236 BLAKE2B e5d9a8592472994fbc06eed4c17a41ed2c1b0d849021af184c371d88b31f7fcfcac5508c4420269a0eae7904cb61bcade485f4c9f78201cc1e6041e3b82ece54 SHA512 113bbfc2b890208a577749cfa3edd77a17c8be90915e4211341bba3d2eb01d06be450e30073584b0475f2c5f52114888cc227316552f2ec774cf5b04cedd6450
EBUILD aiohttp-3.9.4.ebuild 3259 BLAKE2B 08ba30a5bd706695ffd130dd085f591f596cd196c3b0c3554ce33c688739cbba5e4c7b9640d94125121e10b19a7a256f56094d2b4460e15793ea4dbedad7ac5e SHA512 bc2ca560e34d1697638db24b20084fab3fd6cd87eda9ebe0c7af71205c725cf427b2970fe4594544ddc72bb4a5442371536bf4424f20e4cacd1d2df3deb0c79c
MISC metadata.xml 490 BLAKE2B 5233af0b5e2668b1eb62278b05b62f24f1ab90f6d05b20dd9f1c5b54b846919c3fa28b843df28f5bfa320996d46de0e74c7a28bd0bef02aaaca14b1cec52baba SHA512 9b701c5c5a22b6aa94977a67bc40f3dc9df8337556952658a2a17ecaaa471cd7f7b5b8bf3a0088208087677555f0cbb8760c091b03b96ee70affe3e2b84cf6d5

View File

@@ -0,0 +1,123 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="HTTP client/server for asyncio"
HOMEPAGE="
https://github.com/aio-libs/aiohttp/
https://pypi.org/project/aiohttp/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="+native-extensions test-rust"
RDEPEND="
>=dev-python/aiodns-3.2.0[${PYTHON_USEDEP}]
>=dev-python/aiohappyeyeballs-2.3.0[${PYTHON_USEDEP}]
>=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}]
>=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
dev-python/brotlicffi[${PYTHON_USEDEP}]
>=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}]
>=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
>=dev-python/yarl-1.12.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
<dev-python/async-timeout-5[${PYTHON_USEDEP}]
>=dev-python/async-timeout-4.0[${PYTHON_USEDEP}]
' 3.10)
"
BDEPEND="
native-extensions? (
dev-python/cython[${PYTHON_USEDEP}]
)
test? (
dev-python/freezegun[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-python/re-assert[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/time-machine[${PYTHON_USEDEP}]
' 'python3*')
test-rust? (
dev-python/trustme[${PYTHON_USEDEP}]
)
)
"
DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
# increase the timeout a little
sed -e '/abs=/s/0.001/0.01/' -i tests/test_helpers.py || die
# xfail_strict fails on py3.10
sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die
sed -i -e 's:-Werror::' Makefile || die
distutils-r1_src_prepare
}
python_configure() {
if [[ ! -d tools && ${EPYTHON} != pypy3 ]] && use native-extensions
then
# workaround missing files
mkdir tools || die
> requirements/cython.txt || die
> tools/gen.py || die
chmod +x tools/gen.py || die
# force rehashing first
emake requirements/.hash/cython.txt.hash
> .update-pip || die
> .install-cython || die
emake cythonize
fi
}
python_compile() {
# implicitly disabled for pypy3
if ! use native-extensions; then
local -x AIOHTTP_NO_EXTENSIONS=1
fi
distutils-r1_python_compile
}
python_test() {
local EPYTEST_IGNORE=(
# proxy is not packaged
tests/test_proxy_functional.py
# python_on_whales is not packaged
tests/autobahn/test_autobahn.py
)
local EPYTEST_DESELECT=(
# Internet
tests/test_client_session.py::test_client_session_timeout_zero
# broken by irrelevant deprecation warnings
tests/test_circular_imports.py::test_no_warnings
)
# upstream unconditionally blocks building C extensions
# on PyPy3 but the test suite needs an explicit switch
if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then
local -x AIOHTTP_NO_EXTENSIONS=1
fi
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin
rm -rf aiohttp || die
epytest -m "not internal and not dev_mode" \
-p rerunfailures --reruns=5
}