commit:     2361b9bf6b857a87d0c133549e3cfc7a15ee072a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 03:20:23 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 04:06:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2361b9bf

dev-python/uvicorn: Bump to 0.34.3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/uvicorn/Manifest              |  1 +
 dev-python/uvicorn/uvicorn-0.34.3.ebuild | 87 ++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest
index 2562aa0b3856..92726c1f288d 100644
--- a/dev-python/uvicorn/Manifest
+++ b/dev-python/uvicorn/Manifest
@@ -1,2 +1,3 @@
 DIST uvicorn-0.31.1.gh.tar.gz 728604 BLAKE2B 
4f8f4e34bc6b13f6f0866a6890855a5b3bf9aad179de2fdeab40fdb017f76acfaa1cb7c9bd97d55d2ea5cd513afc3b6857ae0613912f6be55dc1d17cf810b213
 SHA512 
2ceab852cd7819fee592cf2507fa9ce8cc80f19dec0492fec621e6eded4a47edecbe4fe559a8474dacff260546ba146e33af9cab964e121356797fdc9a2dae28
 DIST uvicorn-0.34.2.gh.tar.gz 709898 BLAKE2B 
8316b0f51f0a833ae42eaf235839761019e20e80e1bf9a81d79f90c814fc214b0a346b81d98b6734f2b132c8641e96b1ef43c137906b55fcd8d4c825d607626e
 SHA512 
e8d4dbf182a47431ab9485a8f1072b327c2adb97e4489dcad08835d2759241539971192781cffe4cbb12ff68e70b040e07ad60fe274aa1d62320ad0d63278e64
+DIST uvicorn-0.34.3.gh.tar.gz 709829 BLAKE2B 
160af2a0d85d02745fe608aac5c1e3589a5e8fee1e69607764a7bce563f05dd09bda2a7502f1dee595ef594d1d389a3070802c0bbeadf9590f9b834b5de2ba4a
 SHA512 
22858af8e7c8ec80aca7d8a4a450213526752a96aaacd8d7016d7589aa3577e01ba36cdf3684820c3dc34be0a313e7ca5dec87acb7b3dc0ec0375ae00aa95d10

diff --git a/dev-python/uvicorn/uvicorn-0.34.3.ebuild 
b/dev-python/uvicorn/uvicorn-0.34.3.ebuild
new file mode 100644
index 000000000000..169363b9352d
--- /dev/null
+++ b/dev-python/uvicorn/uvicorn-0.34.3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Lightning-fast ASGI server implementation"
+HOMEPAGE="
+       https://www.uvicorn.org/
+       https://github.com/encode/uvicorn/
+       https://pypi.org/project/uvicorn/
+"
+# as of 0.28.0, no tests in sdist
+SRC_URI="
+       https://github.com/encode/uvicorn/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+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/anyio[${PYTHON_USEDEP}]
+               >=dev-python/httptools-0.6.3[${PYTHON_USEDEP}]
+               >=dev-python/httpx-0.28[${PYTHON_USEDEP}]
+               dev-python/pytest-mock[${PYTHON_USEDEP}]
+               dev-python/pytest-rerunfailures[${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_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
+                       )
+                       ;;
+               python3.14*)
+                       EPYTEST_DESELECT+=(
+                               # TODO
+                               tests/test_auto_detection.py::test_loop_auto
+                       )
+                       ;;
+       esac
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -p anyio -p pytest_mock -p rerunfailures --reruns=5
+}
+
+pkg_postinst() {
+       optfeature "auto reload on file changes" dev-python/watchfiles
+}

Reply via email to