mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-python/fastapi: add 0.125.0
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
committed by
Paul Zander
parent
74cdf90edb
commit
4e2d65c3b1
@@ -1,3 +1 @@
|
||||
DIST fastapi-0.121.0.tar.gz 342412 BLAKE2B 06efa91fad91b109b4d62f3bb3a53d2fbf3eae9bd18146c8ff8fdaa2fd61a71f9648f919c3819bd9705526aec01de8fc9a6dfd653ab895996e5808c9c8be511c SHA512 de4663dc0a5c9d6dc1b127f9d5e4cc08d03f0d219b50504202f5c5964fbab4208fdfb69e53237ade0fb09f53feac631df8f4d576417e52411e39f1a69dfc88ee
|
||||
DIST fastapi-0.121.1.tar.gz 342523 BLAKE2B 58c3f5be00a8f0048cefc7cfb965159ecb4d0603aaae8ad7fb122ae1d3dc052554922b58495e376a8c5c209b4491c090d8527d7a3b84bbade50167014c843cbf SHA512 39869c4dcad3121354f8d42f8451e2bf20cb819cae14f7066f0053865c45c307cdad861accfd0fb6ec989e7a0a1f0053ce0fd76c6c7c3d310eea979af27dbbce
|
||||
DIST fastapi-0.121.2.tar.gz 342944 BLAKE2B c6cfefff97c7400ea3df80e7c0d243f17f15a02767998fe60b52bae65367579f254463f81028c43c50cd1b733249b6c241fe5f6859b1b48e67f8b7f352c10613 SHA512 3430203f4aac0e177f3e92fc4c2ac2fb80650040b112ac234e44b240cb1ea42183fdc1116e3f63258363263bbb683727d248218ee1c73cf2feaa3f661563674f
|
||||
DIST fastapi-0.125.0.tar.gz 370550 BLAKE2B 0aff60b022fbe6252981ca962aab599aef2a4bbff06e44d919aa23ebdb587605327690c9572d3b021ad24df5d6b83acdc223a21c86598cfe38e1017552962170 SHA512 45ac3cce536ad8efe12f01db9a3347b9d8d023433f07a76efc2c10363db747abcaecbea9c597f571fa6f90355e5b75ec9416e5648660240427d9a77155b44b0a
|
||||
|
||||
110
dev-python/fastapi/fastapi-0.125.0.ebuild
Normal file
110
dev-python/fastapi/fastapi-0.125.0.ebuild
Normal file
@@ -0,0 +1,110 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=pdm-backend
|
||||
PYTHON_COMPAT=( python3_{12..13} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="FastAPI framework, high performance, easy to learn, ready for production"
|
||||
HOMEPAGE="
|
||||
https://fastapi.tiangolo.com/
|
||||
https://pypi.org/project/fastapi/
|
||||
https://github.com/fastapi/fastapi
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/fastapi/fastapi.git"
|
||||
else
|
||||
inherit pypi
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/annotated-doc-0.0.2[${PYTHON_USEDEP}]
|
||||
<dev-python/pydantic-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydantic-1.7.4[${PYTHON_USEDEP}]
|
||||
<dev-python/starlette-0.51.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/starlette-0.40.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/aiosqlite[${PYTHON_USEDEP}]
|
||||
>=dev-python/anyio-3.2.1[${PYTHON_USEDEP}]
|
||||
dev-python/argon2-cffi[${PYTHON_USEDEP}]
|
||||
dev-python/dirty-equals[${PYTHON_USEDEP}]
|
||||
dev-python/email-validator[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-1.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/inline-snapshot-0.21.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja2-3.1.5[${PYTHON_USEDEP}]
|
||||
dev-python/orjson[${PYTHON_USEDEP}]
|
||||
>=dev-python/pwdlib-0.2.1[${PYTHON_USEDEP}]
|
||||
dev-python/pydantic-settings[${PYTHON_USEDEP}]
|
||||
dev-python/pyjwt[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-multipart-0.0.18[${PYTHON_USEDEP}]
|
||||
<dev-python/pyyaml-7.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
|
||||
dev-python/sqlmodel[${PYTHON_USEDEP}]
|
||||
dev-python/trio[${PYTHON_USEDEP}]
|
||||
dev-python/ujson[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
# brotli and zstd due to starlette based tests expecting it
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.115.6-httpx-0.28-test-fix.patch"
|
||||
)
|
||||
|
||||
EPYTEST_PLUGINS=( anyio )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Depends on coverage
|
||||
"tests/test_fastapi_cli.py::test_fastapi_cli"
|
||||
# Test result affected by unrelated packages such as brotli and zstd
|
||||
# https://github.com/fastapi/fastapi/blob/7c6f2f8fde68f488163376c9e92a59d46c491298/tests/test_tutorial/test_header_param_models/test_tutorial001.py#L77
|
||||
"tests/test_tutorial/test_header_param_models/test_tutorial001.py::test_header_param_model_invalid"
|
||||
"tests/test_tutorial/test_header_param_models/test_tutorial003.py::test_header_param_model_invalid"
|
||||
"tests/test_tutorial/test_header_param_models/test_tutorial003.py::test_header_param_model_no_underscore"
|
||||
# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6afa196ca0cb1604875847b1b84fa64896a06f6e
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_form"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_file_upload"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_file_bytes"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_multi_form"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_form_file"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_file"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_file_bytes"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_multi_form"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_form_file"
|
||||
"tests/test_multipart_installation.py::test_old_multipart_installed"
|
||||
# Hangs with network-sandbox
|
||||
"tests/test_tutorial/test_websockets/test_tutorial003_py39.py::test_websocket_handle_disconnection"
|
||||
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# Dont install fastapi executable as fastapi-cli is supposed to handle it
|
||||
sed -i -e '/\[project.scripts\]/,/^$/d' pyproject.toml || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "commandline interface" dev-python/fastapi-cli
|
||||
optfeature "test client" dev-python/httpx
|
||||
optfeature "templates" dev-python/jinja2
|
||||
optfeature "forms and file uploads" dev-python/python-multipart
|
||||
optfeature "validate emails" dev-python/email-validator
|
||||
optfeature "uvicorn with uvloop" dev-python/uvicorn
|
||||
optfeature_header "Alternative JSON responses"
|
||||
optfeature "ORJSONResponse" dev-python/orjson
|
||||
optfeature "UJSONResponse" dev-python/ujson
|
||||
}
|
||||
Reference in New Issue
Block a user