summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-12-22 05:57:47 +0100
committerMichał Górny <mgorny@gentoo.org>2025-12-22 06:08:34 +0100
commit83818a21df948de623a58a678a97829ac1ed0b3d (patch)
tree0ce2460d13df3a1e71c5129561bcd7c6b6688f3f /dev-python
parent36431647776a28ad1c22395d78d00bc64354ef8f (diff)
downloadgentoo-83818a21df948de623a58a678a97829ac1ed0b3d.tar.gz
gentoo-83818a21df948de623a58a678a97829ac1ed0b3d.tar.bz2
gentoo-83818a21df948de623a58a678a97829ac1ed0b3d.zip
dev-python/uvicorn: Bump to 0.40.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/uvicorn/Manifest2
-rw-r--r--dev-python/uvicorn/uvicorn-0.40.0.ebuild75
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest
index e1716c89e921..fdc494fc0b44 100644
--- a/dev-python/uvicorn/Manifest
+++ b/dev-python/uvicorn/Manifest
@@ -1,2 +1,4 @@
DIST uvicorn-0.38.0.tar.gz 80605 BLAKE2B b7dd7f9bcb5b72f1cbf381bb263dbcbe6aa4d3c252540e64f60ee471e248480995525e646bc852487d37bc768be7072e7b7b20f9f7a7efd6022dc3ed88d0d57f SHA512 29b1a838cef63f90839fac7799723ed56711f21d4016437b62363fd9f45f76ea683d2be9ec7491f6c79a05159d0b5814e0e9247c67dc92342577c24ae392fdd7
DIST uvicorn-0.38.0.tar.gz.provenance 9257 BLAKE2B 94b9804d3740ac2db01c4715fa60b413e4af12f70a4e955ced6326ef06b2d43f1d5dca96f833e951a108521b9d8aeb27d3c6061b586cf180eaf777efc3be38d2 SHA512 a4cdfe7406e4d15398edd958c553eaff1d36692b2cc368be59ace7495ed14d62a172afada542122896eecdd5f81ea185976e4a13a4c6fbf2de5f7171328254a4
+DIST uvicorn-0.40.0.tar.gz 81761 BLAKE2B 9b71d6d56a81f265f10293434813f08e34456221627e52ab680e4889b664daaa9be2cf46437d5ca992e933c7e493362f92bf3c8621f6477d8503a2ffdd5ce35c SHA512 b56f625577509e46724a91881d7d1e5242ac50bd686f5cdbeb1973f7be48c85c1cda8d7275eb04bc0241c221f11820e31f7e4d3ad949a9793b81f8492d667cb7
+DIST uvicorn-0.40.0.tar.gz.provenance 9247 BLAKE2B 3cd0b5a8913ad854adb4d043928c51dfa04486919c842ff1b63467cf19e66165762837c8038cb5615f0b46836d57e897be80dcefa327996d03da4657fdd3ab47 SHA512 234dcb974a066fa655502ab231ef19cfb8d776e861ba256dc038cafb447d88a7a9469d82fd3a99f11136b2b3a03202b6ba423e1a0981ad3f40a7b1a1136cc787
diff --git a/dev-python/uvicorn/uvicorn-0.40.0.ebuild b/dev-python/uvicorn/uvicorn-0.40.0.ebuild
new file mode 100644
index 000000000000..4c364eeeef3b
--- /dev/null
+++ b/dev-python/uvicorn/uvicorn-0.40.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYPI_VERIFY_REPO=https://github.com/Kludex/uvicorn
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1 optfeature pypi
+
+DESCRIPTION="Lightning-fast ASGI server implementation"
+HOMEPAGE="
+ https://www.uvicorn.org/
+ https://github.com/Kludex/uvicorn/
+ https://pypi.org/project/uvicorn/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="test-rust"
+
+RDEPEND="
+ >=dev-python/asgiref-3.4.0[${PYTHON_USEDEP}]
+ >=dev-python/click-7.0[${PYTHON_USEDEP}]
+ >=dev-python/h11-0.8[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/a2wsgi[${PYTHON_USEDEP}]
+ >=dev-python/httptools-0.6.3[${PYTHON_USEDEP}]
+ >=dev-python/httpx-0.28[${PYTHON_USEDEP}]
+ dev-python/python-dotenv[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ >=dev-python/websockets-10.4[${PYTHON_USEDEP}]
+ dev-python/wsproto[${PYTHON_USEDEP}]
+ test-rust? (
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/trustme[${PYTHON_USEDEP}]
+ dev-python/watchfiles[${PYTHON_USEDEP}]
+ )
+ )
+"
+
+EPYTEST_PLUGINS=( anyio pytest-mock )
+EPYTEST_RERUNS=5
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # too long path for unix socket
+ tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers
+ # TODO
+ 'tests/protocols/test_http.py::test_close_connection_with_multiple_requests[httptools]'
+ 'tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default_on_websockets[httptools-max=defaults sent=defaults+1]'
+ 'tests/protocols/test_websocket.py::test_send_binary_data_to_server_bigger_than_default_on_websockets[h11-max=defaults sent=defaults+1]'
+ )
+ case ${EPYTHON} in
+ pypy3*)
+ # TODO
+ EPYTEST_DESELECT+=(
+ tests/middleware/test_logging.py::test_running_log_using_fd
+ )
+ ;;
+ esac
+
+ epytest
+}
+
+pkg_postinst() {
+ optfeature "auto reload on file changes" dev-python/watchfiles
+}