mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-06 07:44:52 +01:00
fastapi: bump 0.73.0 and fix https://github.com/pentoo/pentoo-overlay/issues/1095
This commit is contained in:
parent
f3dc11e7a8
commit
b3844fe720
6 changed files with 56 additions and 65 deletions
|
|
@ -1 +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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
|
@ -18,9 +18,9 @@ SLOT="0"
|
|||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/starlette-0.14.2[${PYTHON_USEDEP}]
|
||||
dev-python/pydantic[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
|
|
|||
51
dev-python/fastapi/fastapi-0.73.0.ebuild
Normal file
51
dev-python/fastapi/fastapi-0.73.0.ebuild
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# 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"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/starlette-0.17.1[${PYTHON_USEDEP}]
|
||||
dev-python/pydantic[${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
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST starlette-0.14.2.tar.gz 438350 BLAKE2B 862f1f6526f194e0dfd52e14860b63fbd97507a4a6d694d71e44041edbb435608a1e3511144e6fb3e8b39405672baf81e00685ad3928aebb244e566cfcd665d0 SHA512 4321d3d1890c49dea53d7923b456772ecc9d28083d28392e0e9cd1f39f33180cc1cb28914bee443849fa8c87015dd99610ea18e03f0101b0eaf3f8df56249fab
|
||||
|
|
@ -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_{9..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 ~arm64 ~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
|
||||
|
|
@ -208,7 +208,7 @@ dev-python/aiosqlite
|
|||
dev-python/fastapi
|
||||
dev-python/limits
|
||||
dev-python/orjson-bin
|
||||
dev-python/starlette
|
||||
~dev-python/starlette-0.17.1
|
||||
dev-python/aiofiles
|
||||
dev-python/slowapi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue