dev-python/starlette: moved to ::gentoo

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan 2021-12-15 11:31:41 +01:00
parent bfe18a2094
commit c8a6ef14dc
No known key found for this signature in database
GPG Key ID: A2E2304370447E8E
4 changed files with 0 additions and 129 deletions

View File

@ -1,2 +0,0 @@
DIST starlette-0.14.2.tar.gz 438350 BLAKE2B 862f1f6526f194e0dfd52e14860b63fbd97507a4a6d694d71e44041edbb435608a1e3511144e6fb3e8b39405672baf81e00685ad3928aebb244e566cfcd665d0 SHA512 4321d3d1890c49dea53d7923b456772ecc9d28083d28392e0e9cd1f39f33180cc1cb28914bee443849fa8c87015dd99610ea18e03f0101b0eaf3f8df56249fab
DIST starlette-0.17.1.tar.gz 403781 BLAKE2B 75de462afc507d89159f17002eb2acc5453520ad312573d5697f5da8fc7d76fcb2407bf41086c923a60a59766f5ac02de1b003962a4d1031c062bd80a0d50e6c SHA512 a8f8cee0dc40d19eab62996f4ef1230fa758375fa9b51e15eae5c906a89b76519ebe4e423aa567d73e4c055cef63e9bbae11b47d4372e28b615f6edaf22a06a7

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>piotr.staroszczyk@get24.org</email>
<name>Piotr Staroszczyk</name>
</maintainer>
</pkgmetadata>

View File

@ -1,60 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_AUTODOC=1
inherit distutils-r1 docs optfeature
DESCRIPTION="The little ASGI framework that shines"
HOMEPAGE="
https://www.starlette.io/
https://github.com/encode/starlette
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="test? (
dev-python/aiofiles[${PYTHON_USEDEP}]
dev-python/aiosqlite[${PYTHON_USEDEP}]
dev-python/databases[${PYTHON_USEDEP}]
dev-python/graphene[${PYTHON_USEDEP}]
dev-python/itsdangerous[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/python-multipart[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/sse-starlette[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
)"
python_prepare_all() {
# do not install LICENSE to /usr/
sed -i -e '/data_files/d' setup.py || die
# do not depend on pytest-cov and fail on DeprecationWarning
rm setup.cfg || die
# ModuleNotFoundError: No module named 'graphql.execution.executors'
rm tests/test_graphql.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/jinja
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" dev-python/graphene
optfeature "Required if you want to use UJSONResponse." dev-python/ujson
optfeature "Server Sent Events" dev-python/sse-starlette
}
distutils_enable_tests pytest

View File

@ -1,59 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_AUTODOC=1
inherit distutils-r1 docs optfeature
DESCRIPTION="The little ASGI framework that shines"
HOMEPAGE="
https://www.starlette.io/
https://github.com/encode/starlette
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# trio tests are completely broken
RESTRICT="test"
RDEPEND="dev-python/anyio[${PYTHON_USEDEP}]"
BDEPEND="test? (
dev-python/aiosqlite[${PYTHON_USEDEP}]
dev-python/databases[${PYTHON_USEDEP}]
dev-python/itsdangerous[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/python-multipart[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/sse-starlette[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
python_prepare_all() {
# do not install LICENSE to /usr/
sed -i -e '/data_files/d' setup.py || die
# do not depend on pytest-cov and fail on DeprecationWarning
rm setup.cfg || die
distutils-r1_python_prepare_all
}
pkg_postinst() {
optfeature "Required if you want to use Jinja2Templates" dev-python/jinja
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 if you want to use UJSONResponse." dev-python/ujson
optfeature "Server Sent Events" dev-python/sse-starlette
}