mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 13:20:57 +02:00
fastapi: get rid of old starlette
This commit is contained in:
parent
48e8efea94
commit
4eacbfc9aa
6 changed files with 59 additions and 68 deletions
|
|
@ -1,2 +1,2 @@
|
|||
DIST fastapi-0.65.2.tar.gz 5590241 BLAKE2B d887f9228c2cd20375722668ace7ab54723eacc3617294191540d599f85a2393b160664fdb4267bc62d66fa059df9ea4d4e917ac09b8606c16ee62f96df0b048 SHA512 d3f6f08de74ab2edab56e4de5cbb7106807cdcb17c5e635a18ce1825cb7a359b13100b8a591b0b8f1151655db424116001d8f885d66cd6b2e45d1897486a6097
|
||||
DIST fastapi-0.73.0.tar.gz 6340105 BLAKE2B fd038c8f4e9251f2c3111f50864da6ccf784c8d1cb936e7449efd99f84e58a189e3c8cb3278bf3644736c73ea9f0c3ac12a7e6a92accf4fb0e70ecbe0f0a0d85 SHA512 16870e2459ccabcfd3bddcd6c801bf5c9d1e38aa56bcc1c1de77d4fa155d871062006ad1ed6988850e62607fe1adbf22b05ef3f2af615a63631040cd06f87f40
|
||||
DIST fastapi-0.77.0.tar.gz 6876375 BLAKE2B 18bf975c4272dbc52e18e480bf2bc7101afcb1f45279628483bbf823071500fd0b804376ffa4be3964c9723770cc4aab8c5d51af8ea372e63794f3a24ba75262 SHA512 ec6174e160b2f57e0f72cd440edef5a78f4f66fc118c6f9fd13cb9cba4676edd9fa5cb5cda24fde9a633103a527f5a601c3e6a24182782b98bc210286ca2ead0
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
||||
HOMEPAGE="https://fastapi.tiangolo.com/"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/starlette-0.14.2[${PYTHON_USEDEP}]
|
||||
<dev-python/starlette-0.18.0[${PYTHON_USEDEP}]
|
||||
dev-python/pydantic[${PYTHON_USEDEP}]
|
||||
"
|
||||
57
dev-python/fastapi/fastapi-0.77.0.ebuild
Normal file
57
dev-python/fastapi/fastapi-0.77.0.ebuild
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
#may be not stricly required
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
||||
HOMEPAGE="https://fastapi.tiangolo.com/"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
#starlette is locked in the pyproject.toml, let's fix it
|
||||
RDEPEND="
|
||||
>=dev-python/starlette-0.19.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydantic-1.6.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
#FIXME: add missing deps
|
||||
#BDEPEND="test? (
|
||||
# dev-python/pytest[${PYTHON_USEDEP}]
|
||||
# dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||||
# dev-python/mypy[${PYTHON_USEDEP}]
|
||||
# dev-python/flake8[${PYTHON_USEDEP}]
|
||||
# dev-python/black[${PYTHON_USEDEP}]
|
||||
# dev-python/isort[${PYTHON_USEDEP}]
|
||||
# dev-python/requests[${PYTHON_USEDEP}]
|
||||
# dev-python/httpx[${PYTHON_USEDEP}]
|
||||
# dev-python/email_validator[${PYTHON_USEDEP}]
|
||||
# dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
# dev-python/peewee[${PYTHON_USEDEP}]
|
||||
# dev-python/databases[sqlite]
|
||||
# dev-python/orjson[${PYTHON_USEDEP}]
|
||||
# dev-python/ujson[${PYTHON_USEDEP}]
|
||||
# dev-python/python-multipart[${PYTHON_USEDEP}]
|
||||
# dev-python/flask[${PYTHON_USEDEP}]
|
||||
# dev-python/anyio[trio]
|
||||
# dev-python/types-ujson[${PYTHON_USEDEP}]
|
||||
# dev-python/types-orjson[${PYTHON_USEDEP}]
|
||||
#)"
|
||||
|
||||
#distutils_enable_tests pytest
|
||||
|
||||
src_prepare(){
|
||||
sed -i -e 's|starlette==0.19.0|starlette>=0.19.0|g' pyproject.toml || die
|
||||
eapply_user
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST starlette-0.17.1.tar.gz 403781 BLAKE2B 75de462afc507d89159f17002eb2acc5453520ad312573d5697f5da8fc7d76fcb2407bf41086c923a60a59766f5ac02de1b003962a4d1031c062bd80a0d50e6c SHA512 a8f8cee0dc40d19eab62996f4ef1230fa758375fa9b51e15eae5c906a89b76519ebe4e423aa567d73e4c055cef63e9bbae11b47d4372e28b615f6edaf22a06a7
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="The little ASGI framework that shines"
|
||||
HOMEPAGE="https://www.starlette.io/"
|
||||
SRC_URI="https://github.com/encode/starlette/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# Needs fixing with trio deprecations (dies on ModuleWithDeprecations)
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="dev-python/anyio[${PYTHON_USEDEP}]
|
||||
dev-python/itsdangerous[${PYTHON_USEDEP}]"
|
||||
BDEPEND="test? ( dev-python/trio[${PYTHON_USEDEP}] )"
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
# Unpackaged 'databases' dependency
|
||||
tests/test_database.py
|
||||
|
||||
# Unpackaged 'multipart' dependency
|
||||
tests/test_formparsers.py
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Unpackaged 'multipart' dependency
|
||||
tests/test_requests.py::test_request_form_urlencoded
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
|
@ -202,12 +202,11 @@ dev-python/shodan
|
|||
dev-python/grequests
|
||||
dev-python/aiomultiprocess
|
||||
dev-python/aiosqlite
|
||||
~dev-python/starlette-0.17.1
|
||||
=dev-python/starlette-0.19*
|
||||
#testing
|
||||
dev-python/fastapi
|
||||
dev-python/limits
|
||||
dev-python/orjson-bin
|
||||
~dev-python/starlette-0.18.0
|
||||
=dev-python/aiofiles-0.7*
|
||||
dev-python/slowapi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue