diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest index 18540adc68..4865dbb971 100644 --- a/dev-python/starlette/Manifest +++ b/dev-python/starlette/Manifest @@ -1 +1,2 @@ DIST starlette-0.14.2.tar.gz 438350 BLAKE2B 862f1f6526f194e0dfd52e14860b63fbd97507a4a6d694d71e44041edbb435608a1e3511144e6fb3e8b39405672baf81e00685ad3928aebb244e566cfcd665d0 SHA512 4321d3d1890c49dea53d7923b456772ecc9d28083d28392e0e9cd1f39f33180cc1cb28914bee443849fa8c87015dd99610ea18e03f0101b0eaf3f8df56249fab +DIST starlette-0.17.1.tar.gz 403781 BLAKE2B 75de462afc507d89159f17002eb2acc5453520ad312573d5697f5da8fc7d76fcb2407bf41086c923a60a59766f5ac02de1b003962a4d1031c062bd80a0d50e6c SHA512 a8f8cee0dc40d19eab62996f4ef1230fa758375fa9b51e15eae5c906a89b76519ebe4e423aa567d73e4c055cef63e9bbae11b47d4372e28b615f6edaf22a06a7 diff --git a/dev-python/starlette/metadata.xml b/dev-python/starlette/metadata.xml index a507be0a78..3287f65d2a 100644 --- a/dev-python/starlette/metadata.xml +++ b/dev-python/starlette/metadata.xml @@ -1,6 +1,5 @@ - - + piotr.staroszczyk@get24.org diff --git a/dev-python/starlette/starlette-0.17.1.ebuild b/dev-python/starlette/starlette-0.17.1.ebuild new file mode 100644 index 0000000000..da23a8bd6f --- /dev/null +++ b/dev-python/starlette/starlette-0.17.1.ebuild @@ -0,0 +1,59 @@ +# 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 +}