add aiohttp-3.7.3 from main repo, still needed, fix #198

This commit is contained in:
Andreas Billmeier 2021-03-14 12:47:20 +01:00 committed by Andreas Billmeier
parent e62f90564f
commit 72efe78573
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 96 additions and 78 deletions

View File

@ -1,3 +1,6 @@
2021-03-14
* add aiohttp-3.7.3 from main repo, still needed, fix https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/198
2021-02-17
* bump HATasmota-0.2.9
* bump blinkpy-0.17.0

View File

@ -1,10 +1,10 @@
AUX aiohttp-3.0.5-tests.patch 293 BLAKE2B 3902cc0fbeee9f2284a9fee29fe8ddf86150ce6fd3343a4357a07ef421d4413571fc4f8793a7042bd4da7fbab77a82956f002d486cd4e97ae1348661a27accea SHA512 b5e620fc584d31af16ab4b96bf2b08b2827efa29fb24c321b75644d18e8cec52067a38573aae348685123af79c3d714dfda126f7114b782d222533b286b8385a
DIST aiohttp-3.5.3.tar.gz 1097382 BLAKE2B d6aa356985bed0a39b7355e9e1c5d1fd5008232014015374e3f0fdd523b9273c2f51d43379535a9d2949aff79bc81cbd597eef0ffa15586cdb1d5b39a12fa133 SHA512 4beb737a9e02700c923c756801515f603b3070a1394aec6de7e6d15f0d6e3dafca599f26ab0a2a2125d47bbfb12a7b497760eae088b20385aeb1b90c6efe3376
DIST aiohttp-3.5.4.tar.gz 1097647 BLAKE2B 27d3631cf33cc5052deecfeca23f6c052fce344d9a889b0c0c0e68d9dcc19eb56e2ef2496f025c795dea4f906a59ae579ecd489188f8c56bc41255b4f450f4bf SHA512 9bc31457029f7db5bbfe1e213c1f428bf90ac96d83b6d2c8838261a3910ab9f7632a4299618377acb1bed04b0cbb4b4f6d9ee814495c05f210ed9bb4f4c61714
DIST aiohttp-3.6.0.tar.gz 1110800 BLAKE2B 30c583c5d9079dcc3481b917b51c09e40572228a2df3acab468036f22a75fbb21963805bc37d353c82cc81fddc6da85e9ae9fa6b4a0eb0c305de5428f48a05b2 SHA512 90a0c55b5f20fc7cc14d138fca93206a7b64ac069fbd81c77b5373985236c0c09b44bd167be58129ce2e4f2bdefe59891d6d52938f9fe04c462d4aea6af67d9d
DIST aiohttp-3.6.1.tar.gz 1113678 BLAKE2B cfdf1c650ec52c7b6423f7afd40060ccd1631a407f126bf64c2a353c51f09c31bae3912b8ce9397c0c8350a2e82a98724ae58335998d1ab08ae46a49abce0251 SHA512 4939b89d45abcd655ef212ff87f66a83882fb12dffb87d62ae57afcd9517725af61f46f9b7428112e2dcd72d3a4027524967461270ede34348ff3ead47d14c9b
EBUILD aiohttp-3.5.3.ebuild 2101 BLAKE2B 6024ce73812affc1886262456fe17768fdccaca59cd0aea5712e2d0a82a53b7f2cf1ab431272cef369f011e9018b8c238a45af36e949863f1356ce2e081d66d1 SHA512 354d4db686353e4b781ddb5f5bb2b2726e4ac96a98aad57e821f0f62bda451dc3b8dc2d6b81ecb94a21df4764366a1987e4d37b852cdc484e5b12b7112c7e2fe
DIST aiohttp-3.7.3.tar.gz 1113127 BLAKE2B 47d95565db1184c6b55a1e7d7a6df8cda872e4fe621f653e3143608f51dde2c7d30d00835da357dd7ae33f4858ad5778074dfde5261331a3539a5d6776ea1a25 SHA512 d1dbbe3cbdeb1a460f5030a08a251a7bb7ae7ec038ca93ba5187b2da1fe21b80ed6513db647ef382d2d92a3d527a34dffbd37f51aa1e8b65bb36d517304b1812
EBUILD aiohttp-3.5.4.ebuild 2101 BLAKE2B 6024ce73812affc1886262456fe17768fdccaca59cd0aea5712e2d0a82a53b7f2cf1ab431272cef369f011e9018b8c238a45af36e949863f1356ce2e081d66d1 SHA512 354d4db686353e4b781ddb5f5bb2b2726e4ac96a98aad57e821f0f62bda451dc3b8dc2d6b81ecb94a21df4764366a1987e4d37b852cdc484e5b12b7112c7e2fe
EBUILD aiohttp-3.6.0.ebuild 2101 BLAKE2B 6024ce73812affc1886262456fe17768fdccaca59cd0aea5712e2d0a82a53b7f2cf1ab431272cef369f011e9018b8c238a45af36e949863f1356ce2e081d66d1 SHA512 354d4db686353e4b781ddb5f5bb2b2726e4ac96a98aad57e821f0f62bda451dc3b8dc2d6b81ecb94a21df4764366a1987e4d37b852cdc484e5b12b7112c7e2fe
EBUILD aiohttp-3.6.1.ebuild 2134 BLAKE2B 73188f68c4f8ff25c082b5ff522ed7ca21fa4f751bb19d701186329dd97a2f8cfc82e2a60106965db2b64ca4d99d7253307536aa6f4e4108efeb91be8434e18d SHA512 f43c53be98fa962a237ea1ed80d2d6540293ac2e124ac357b3e9291e2741057896cd113b6aa7295bb53de7c6a9060ec214f5d682a43870f868a216de709acb0c
EBUILD aiohttp-3.7.3.ebuild 2644 BLAKE2B c84d4c5639b808be92d6270e8aca80693506a43a6694f4018549f5661562fb4dd602c695a0c8a20de667ffbfdeecbcb90de44033689ecdc34b7e2987ddaec7ba SHA512 8db4a4d6425e0984bfaaec2e164858d9b2042369dcf551cfa3ed71a94ba8a29be358d8d9957fade12e01feaf70c697c38d0e96b9786c92e4faffb793e500e36f
MISC metadata.xml 252 BLAKE2B 507e0ddc9d50b879ff374b903b142f85d020dfd6c486aba2af84fe082c878e780edbb79188ae10104d57db0eb775c86814cc8c06891a3854c9da840a4d377050 SHA512 9470ac9c8a5a4f80e3f767e7aa198addc7b21866c63b2a310e9f41ce65817672fb77423117bdd619e99cb62322025aeadf50717e23eafabf99080fcc106820af

View File

@ -1,76 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="http client/server for asyncio"
HOMEPAGE="https://pypi.org/project/aiohttp/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="doc test"
CDEPEND="
>=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
>=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
>=dev-python/multidict-4.0.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-3.6.5[${PYTHON_USEDEP}]
>=dev-python/yarl-1.0[${PYTHON_USEDEP}]
dev-python/idna-ssl[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/cython[${PYTHON_USEDEP}]
doc? (
>=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-asyncio[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-newsfeed[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-aiohttp-theme[${PYTHON_USEDEP}]
)
test? (
${CDEPEND}
dev-python/async_generator[${PYTHON_USEDEP}]
>=dev-python/pytest-3.4.0[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
)
"
RDEPEND="${CDEPEND}"
DOCS=( CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt HISTORY.rst README.rst )
python_prepare_all() {
# skip failing tests until cause is determined
rm tests/{test_pytest_plugin.py,test_worker.py} || die
# AttributeError: 'brotli.Decompressor' object has no attribute 'flush'
sed -e 's:test_compression_brotli:_\0:' \
-e 's:test_feed_eof_no_err_brotli:_\0:' \
-i tests/test_http_parser.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
esetup.py test
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}

View File

@ -0,0 +1,91 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1 multiprocessing
DESCRIPTION="http client/server for asyncio"
HOMEPAGE="https://pypi.org/project/aiohttp/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
RDEPEND="
>=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
>=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
>=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
>=dev-python/yarl-1.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/idna-ssl[${PYTHON_USEDEP}]
' python3_6)
dev-python/typing-extensions[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
test? (
!!dev-python/pytest-aiohttp
dev-python/async_generator[${PYTHON_USEDEP}]
dev-python/brotlipy[${PYTHON_USEDEP}]
dev-python/freezegun[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-python/re-assert[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
)
"
DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
distutils_enable_tests pytest
distutils_enable_sphinx docs \
'>=dev-python/alabaster-0.6.2' \
'dev-python/sphinxcontrib-asyncio' \
'dev-python/sphinxcontrib-blockdiag' \
'dev-python/sphinxcontrib-newsfeed' \
'dev-python/sphinxcontrib-spelling' \
'dev-python/sphinx' \
'dev-python/sphinx-aiohttp-theme'
python_prepare_all() {
# Fails due to a warning
sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \
-i tests/test_multipart.py || die
# with py3.7+
sed -e 's:test_aiohttp_request_coroutine:_&:' \
-i tests/test_client_functional.py || die
# Fails due to path mismatch
sed -e 's:test_static:_&:' \
-i tests/test_route_def.py || die
# Internet
sed -e 's:test_mark_formdata_as_processed:_&:' \
-i tests/test_formdata.py || die
# newer chardet works too
sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \
-i setup.py aiohttp.egg-info/requires.txt || die
# takes a very long time, then fails
rm tests/test_pytest_plugin.py || die
distutils-r1_python_prepare_all
}
python_test() {
pushd "${BUILD_DIR}/lib" >/dev/null || die
ln -snf "${S}"/{LICENSE.txt,tests} . || die
pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \
-vv tests || die "Tests fail with ${EPYTHON}"
rm -rf .pytest_cache tests || die
popd >/dev/null || die
}