diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-11 05:34:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-11 05:34:35 +0000 |
commit | e644f875e1d27155e8829b8f7385a8b2d790bcce (patch) | |
tree | 34f399ec8067712dc6b5416ac39685d1999649c7 /dev-python/uvicorn | |
parent | 0771aa27d30f102abe2c5733a138ffe570da4d15 (diff) |
gentoo auto-resync : 11:02:2024 - 05:34:35
Diffstat (limited to 'dev-python/uvicorn')
-rw-r--r-- | dev-python/uvicorn/Manifest | 2 | ||||
-rw-r--r-- | dev-python/uvicorn/uvicorn-0.27.1.ebuild | 75 |
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest index e93fbe2309b3..d59216f9682e 100644 --- a/dev-python/uvicorn/Manifest +++ b/dev-python/uvicorn/Manifest @@ -1,3 +1,5 @@ DIST uvicorn-0.27.0.gh.tar.gz 718371 BLAKE2B a8e5504f673add3e0babb2fefa9d045adc34062b7746c1149c1a7a467073495f07d26b23f0d81678698f41d7887eb28aeaffe29f29706c84be39d5b8f3d85b1b SHA512 2337223e30dcc89a32babfce6b381f53225df3ea319e13ae8b758b4a1801ec49a1e8c2caa148757fe715504b75934a6a75156c6e7146fb21335905f1425f89fa +DIST uvicorn-0.27.1.gh.tar.gz 718990 BLAKE2B a520bcb2cde4ed6125c0d64b06d3d301471c1722f7642adb09320b6a6386fe6206a501f171ed4bfe4f95f333c323d1e9f65efc89c1669abc398a57ad0ad27b16 SHA512 57946b71e3f332a9c549ec48ea25375d5ddad4e7f0d5b406690569ed492c305d8441b3ded5386d6d3295e62007cfcd2ae2f0816266cf493391e813db3ef44109 EBUILD uvicorn-0.27.0-r1.ebuild 1800 BLAKE2B 5557757a14b43a185a03f7ef1e7633a58c1b5a60ca70f7f43e73819a17676195939d444ae58bbf854142b77d571bf904ca94afc4a166387a78eef83ad3a5f8a1 SHA512 770843b6a50257f9d09fbbbf0115da4a8ffefe5e3b138d725f6928f19ebdb430ed8d14e6909e369b2f43f2d754319e5fd310d54f6177d38de66d340e47829a43 +EBUILD uvicorn-0.27.1.ebuild 1808 BLAKE2B 9ad5cace42000ee0c1779dfe353b9a2675dd86397070e6abc41eb0e619b9cdc9d2a5b339556dd003d167d47911ec7df4e84cfcda165c85d5f743c54546bea233 SHA512 cf8cd230e44839df8e4fac2a2a747e2a70bd6429b124200b918dc99aa95da9ed619a54b01c175c399288b1d09fe70c53da155d7dccd5f1c5cf9b4ad572176171 MISC metadata.xml 451 BLAKE2B af9be617c95128297e3455b503e198e13c373244094f6aa9c80837945c3f9f023f1874efa28d4ffa8b241feb9a4e8c7f3d3534e96966733bd5593bffb90904a5 SHA512 4d76bab5c20f7cad81fa56a28c9be07bf2c2ebc412fc647f073215d437a2550eca247b8419df71d04200d0fdf545520684db0b6f4953e73848f69a4f4ad6931e diff --git a/dev-python/uvicorn/uvicorn-0.27.1.ebuild b/dev-python/uvicorn/uvicorn-0.27.1.ebuild new file mode 100644 index 000000000000..29532bb99775 --- /dev/null +++ b/dev-python/uvicorn/uvicorn-0.27.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +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.21.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 ~ia64 ~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}] + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + test? ( + dev-python/a2wsgi[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + dev-python/pyyaml[${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}] + ) + ) +" + +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 + ) + 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 +} |