mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 01:23:23 -04:00
dev-python/uvicorn: The lightning-fast ASGI server
Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
1
dev-python/uvicorn/Manifest
Normal file
1
dev-python/uvicorn/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST uvicorn-0.11.3.tar.gz 490532 BLAKE2B 521f137ec94906d5fe9411e780551fb3f4a6eb3da2e7e49d67524b380267e1089bd778b5294f4c72e0da270aeddd89e598bb2c79251262fa528da29103eb259b SHA512 c7e5badbd57bf2962fb4ef538072bed8e509ade20ff98856dd88099adeaeb9044b35a547b9f1ade3575c6dbc4564519d69aaeca7dad95a3b463160cdd9a464a9
|
||||
9
dev-python/uvicorn/metadata.xml
Normal file
9
dev-python/uvicorn/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
57
dev-python/uvicorn/uvicorn-0.11.3.ebuild
Normal file
57
dev-python/uvicorn/uvicorn-0.11.3.ebuild
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="The lightning-fast ASGI server"
|
||||
HOMEPAGE="https://www.uvicorn.org/
|
||||
https://github.com/encode/uvicorn"
|
||||
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc"
|
||||
REQUIRED_USE="x86? ( !doc )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/h11[${PYTHON_USEDEP}]
|
||||
>=dev-python/uvloop-0.14.0[${PYTHON_USEDEP}]
|
||||
dev-python/wsproto[${PYTHON_USEDEP}]"
|
||||
|
||||
BDEPEND="doc? ( !x86? (
|
||||
dev-python/mkdocs
|
||||
dev-python/mkdocs-material ) )"
|
||||
|
||||
DEPEND="test? (
|
||||
dev-python/isort[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# these tests fail, likely because wsproto is out of date
|
||||
rm tests/protocols/test_websocket.py || die
|
||||
rm tests/protocols/test_http.py || die
|
||||
|
||||
# do not install LICENSE to /usr/
|
||||
sed -i -e '/data_files/d' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
default
|
||||
if use doc; then
|
||||
mkdocs build || die "failed to make docs"
|
||||
HTML_DOCS="site"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user