mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 08:33:15 -04:00
dev-python/starlette: new package with optional deps dev-python/sse-starlette dev-python/python-multipart
Signed-off-by: Piotr Staroszczyk <piotr.staroszczyk@get24.org>
This commit is contained in:
1
dev-python/starlette/Manifest
Normal file
1
dev-python/starlette/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST starlette-0.13.2.tar.gz 48335 BLAKE2B 10241c501989ececf33d11f98fbaee09ad141bc3baee92373cdc134941ef2f0260af7812888d1c3a124ec803ad978f6cb24a88e053439fff2cd9308bb9e83ee8 SHA512 ff312536bc28fa2d2c7b0bc81ce4c47fdfef885a0c6a9fe39cd02407ea4c334b0506f1d1fd0a31fa51353255024a9090ad31ce560426362e471312aa0b09c3a3
|
||||
9
dev-python/starlette/metadata.xml
Normal file
9
dev-python/starlette/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>piotr.staroszczyk@get24.org</email>
|
||||
<name>Piotr Staroszczyk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
44
dev-python/starlette/starlette-0.13.2.ebuild
Normal file
44
dev-python/starlette/starlette-0.13.2.ebuild
Normal file
@@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=(python3_{6,7,8} pypy3 )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="The little ASGI framework that shines."
|
||||
HOMEPAGE="
|
||||
https://www.starlette.io/
|
||||
https://github.com/encode/starlette
|
||||
"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="test? ( dev-python/black[${PYTHON_USEDEP}]
|
||||
dev-python/databases[${PYTHON_USEDEP}]
|
||||
dev-python/isort[${PYTHON_USEDEP}]
|
||||
dev-python/mypy[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# do not install LICENSE to /usr/
|
||||
sed -i -e '/data_files/d' setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Required if you want to use FileResponse or StaticFiles" dev-python/aiofiles
|
||||
optfeature "Required if you want to use Jinja2Templates" dev-python/jinja2
|
||||
optfeature "Required if you want to support form parsing, with request.form()" dev-python/python-multipart
|
||||
optfeature "Required for SessionMiddleware support." dev-python/itsdangerous
|
||||
optfeature "Required for SchemaGenerator support." dev-python/pyyaml
|
||||
optfeature "Required for GraphQLApp support" media-libs/graphene
|
||||
optfeature "Required if you want to use UJSONResponse." dev-python/ujson
|
||||
optfeature "Server Sent Events" dev-python/sse-starlette
|
||||
}
|
||||
|
||||
distutils_enable_tests pytest
|
||||
Reference in New Issue
Block a user