dev-python/uvicorn: new package, add 0.29.0

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2024-10-26 11:38:17 +02:00
parent 9230591294
commit 4da367c92b
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
4 changed files with 96 additions and 2 deletions

View File

@ -606,14 +606,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 2124 Ebuilds in total, 2113 of them have in total 2140 (42 different) licenses assigned.
There are 2125 Ebuilds in total, 2114 of them have in total 2141 (42 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|1225|
|Apache-2.0|484|
|GPL-3|131|
|BSD|111|
|BSD|112|
|LGPL-3|24|
|GPL-2|23|
|GPL-3+|17|

View File

@ -0,0 +1,3 @@
DIST uvicorn-0.29.0.gh.tar.gz 719202 BLAKE2B 15a1e9d001e00805d9efe89c1b46416f6556d944ec5a32fb31c8368d4c0e1e32155169e9b5754c7d56a3ee86a1b7edddcf0d9a641abf74fdb89c1332ebd289af SHA512 bb37940acc2eba2a649d07ba44890400332e5ad873ac03c6740c1bc730068ede39c2e6d9aefb0f100ec261d7ed2eef1596c99a060fd8000cff874b25bdbbbdfa
EBUILD uvicorn-0.29.0.ebuild 1734 BLAKE2B ffff52486cf3015f066e9c5c9f618f82dda36797f93959a56c1a176e740568f4d08d2717597d806ad141c483553a6bdd9b620ccaf04f396eeb0223ebb0e9b790 SHA512 d31ba429ac8d753122eb38e222f3c262158bb4a4321351d4bd78011f80675684ee1b0195ee23b1167e6d5c1f2d3feed1ca8e2d1d45f83c4b5e708cfa887e0559
MISC metadata.xml 507 BLAKE2B df61a4b5b914ef182ba5066ccba3adc4e2224d0b7b0ab8b295ae2e5128c1ab4d81292633f3a7b74806d5a70c8712c74555d9a1a58ec95cdb0beafaaafdeb6561 SHA512 5c3dfe542110f205196e2828aa9b827bdab39d45c2070da9e9df93339bb8f55ba30cbaf338ec1cd38481a4a7880f70f4b53c8b89bd84a4194ed68abc8f5fc1db

View File

@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">uvicorn</remote-id>
<remote-id type="github">encode/uvicorn</remote-id>
<maintainer status="unknown">
<email>tom@tomchristie.com</email>
<name>Tom Christie</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,75 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{11..13} )
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="amd64 arm arm64 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
}