dev-python/hypercorn: add py3.9

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2021-02-17 19:03:29 +01:00
parent 16125e7a3a
commit cdfdde61a6
2 changed files with 19 additions and 28 deletions

View File

@@ -1 +1 @@
DIST hypercorn-0.11.1.tar.gz 148921 BLAKE2B 6fb35ee4a3da6a5a348dc5d923a79f8536b557ae91e9cb2c2c75a4f70bfb970562d80714b600463b5012ebf0b3859e7628b50d2fa992ba256958b13c17b99278 SHA512 6ea9ae3df1f268f2032de06fc392b98c8dc6df16fa7bc49956592de5a45eb991de5af4a8ac7612f932eab29633d4708a5cef34440b0b2be528478e4326e62b1b
DIST hypercorn-0.11.2.tar.gz 150475 BLAKE2B fa2c2572fe61aa09bfa62691ac18a8d0149a2e31dda82c77c4fc6ff2720739a824e05ff754d9aec9c499e6c02fb77e1f0a2bd4e3efbb3154730fc369f91b949c SHA512 7d90f654445cc3db6cec001ac8523513dec78bd8bce03ddfb56cd46b999c6d5b4f44a7853f2e88673c3e288c104adae3d105c8c8147f306656136cbb9771b289

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
EAPI=7
PYTHON_COMPAT=( python3_{7,8} )
PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
DOCS_BUILDER="sphinx"
@@ -41,7 +41,6 @@ BDEPEND="
>=dev-python/mock-4[${PYTHON_USEDEP}]
<dev-python/pytest-6[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
@@ -49,28 +48,20 @@ BDEPEND="
distutils_enable_tests pytest
#python_prepare_all() {
# # do not install LICENSE to /usr/
# sed -i -e '/data_files/d' setup.py || die
#
# # Remove pytest-cov dep
# sed -i -e '21,22d' setup.cfg || die
#
# distutils-r1_python_prepare_all
#}
python_prepare_all() {
# do not install LICENSE to /usr/
sed -i -e '/data_files/d' setup.py || die
#pkg_postinst() {
# optfeature "asyncio event loop on top of libuv" dev-python/uvloop
# optfeature "websockets support using wsproto" dev-python/wsproto
# optfeature "websockets support using websockets" dev-python/websockets
# optfeature "httpstools package for http protocol" dev-python/httptools
# optfeature "efficient debug reload" dev-python/watchgod
#}
# Remove pytest-cov dep
sed -i -e '/addopts/d' setup.cfg || die
#python_test() {
# pytest -vv \
# --deselect tests/protocols/test_http.py::test_supported_upgrade_request[H11Protocol] \
# --deselect tests/protocols/test_http.py::test_supported_upgrade_request[HttpToolsProtocol] \
# --deselect tests/protocols/test_websocket.py::test_invalid_upgrade[WSProtocol] \
# || die
#}
distutils-r1_python_prepare_all
}
pkg_postinst() {
optfeature "asyncio event loop on top of libuv" dev-python/uvloop
optfeature "websockets support using wsproto" dev-python/wsproto
optfeature "websockets support using websockets" dev-python/websockets
optfeature "httpstools package for http protocol" dev-python/httptools
optfeature "efficient debug reload" dev-python/watchgod
}