summaryrefslogtreecommitdiff
path: root/dev-python/fastapi
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/fastapi')
-rw-r--r--dev-python/fastapi/Manifest5
-rw-r--r--dev-python/fastapi/fastapi-0.115.12.ebuild41
-rw-r--r--dev-python/fastapi/fastapi-0.136.1.ebuild117
-rw-r--r--dev-python/fastapi/fastapi-0.136.3.ebuild117
-rw-r--r--dev-python/fastapi/metadata.xml8
5 files changed, 49 insertions, 239 deletions
diff --git a/dev-python/fastapi/Manifest b/dev-python/fastapi/Manifest
index 30a2ce342b58..50ef1c359ef3 100644
--- a/dev-python/fastapi/Manifest
+++ b/dev-python/fastapi/Manifest
@@ -1,2 +1,3 @@
-DIST fastapi-0.136.1.tar.gz 397448 BLAKE2B df2de34519aeb26a5963c08c3dbd9e5d715f99d263bae23c9e5f8268198e559eeeae426c2e2d47d8b26854b38b11b7a6938a1c8ae15be76c1939fdfbdd78860c SHA512 78ca4e6409d15c36f93c9975baa1e13007730192077d106663c7d4dbc063fa4b4d0097838143411eb475265eb39a7d16ee412a5a3d4a207e1c3d2c93dc536bdf
-DIST fastapi-0.136.3.tar.gz 396410 BLAKE2B eb55e632fea8e59a5f133b0b4c18dd158a8427bbcb8ecfd1656e019fb3c117598b18286afab6e1c27492ca3d8e0b5eb286d027428707890097ca5ea5d4e7a354 SHA512 a97358391f0c86f370949296c3c79e31086fc8faa8b721d216ac47fdce0b6052ab7fce0b4448e89c3faeb8b500dface43b86a4084c599e7d19fcc6dfca7a54d3
+DIST fastapi-0.115.12.tar.gz 295236 BLAKE2B 224b74553668721dde3592a50a3d5b02a967a58f55d3beb6bec753755cddfbb803f0661ce6cc41af3ddfc28bb304d053f41aad8ab9d8965048ff80cad6c3207e SHA512 8eb8d998643ca748744b9c00e14cdd62f02e58145e2a64dcf090361d56fa52a12b643b8fc3dc98f41af74c06d46b787acf92ae2be828d99b6d4290c20ced7f6f
+EBUILD fastapi-0.115.12.ebuild 1171 BLAKE2B 97e7dfed057198ea014eead11043306a36f42b0d761de746d92623697c3502a5ec16fc90e28b14ee710f428bd72a179e8aceca33fa2d9dcb1ac1e1f1a3b14a79 SHA512 b7c18375186662b834e3ece2c74d9ec194bc2ebf7979eda19319844fe8b92a489de81adf012c7a5007b416f675313390fed8288d1d1ff527293043fa4f6786db
+MISC metadata.xml 444 BLAKE2B e5a78141db8b041f6a7ac07db80136fddd358063cb1a5c8c769af307d188d6adcf0b56021de906e7ffc025e9b128d9eba580eedbd886076f34cb1d445eec60e3 SHA512 086df95dbf7f0d0354aa0785083d8dfaa46ea3fa030201e1f080818b9b7242119a35930731c05ef58e8f44fb47d7d2f7c2af88e3b3946d43d9ff7ea28d5e6928
diff --git a/dev-python/fastapi/fastapi-0.115.12.ebuild b/dev-python/fastapi/fastapi-0.115.12.ebuild
new file mode 100644
index 000000000000..aede3b9bebcc
--- /dev/null
+++ b/dev-python/fastapi/fastapi-0.115.12.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm-backend
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 optfeature pypi
+
+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
+"
+
+LICENSE="MIT"
+SLOT=0
+KEYWORDS="~amd64"
+
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-python/pydantic-1.7.4[${PYTHON_USEDEP}]
+ >=dev-python/starlette-0.40.0[${PYTHON_USEDEP}]
+ <dev-python/starlette-0.47.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
+"
+
+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
+}
diff --git a/dev-python/fastapi/fastapi-0.136.1.ebuild b/dev-python/fastapi/fastapi-0.136.1.ebuild
deleted file mode 100644
index e032286d80d2..000000000000
--- a/dev-python/fastapi/fastapi-0.136.1.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=pdm-backend
-PYTHON_COMPAT=( python3_{13..14} )
-
-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-2.9.0[${PYTHON_USEDEP}]
- >=dev-python/starlette-0.46.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
- >=dev-python/typing-inspection-0.4.2[${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/a2wsgi-2.0.0[${PYTHON_USEDEP}]
- >=dev-python/a2wsgi-1.9.0[${PYTHON_USEDEP}]
- dev-python/dirty-equals[${PYTHON_USEDEP}]
- dev-python/email-validator[${PYTHON_USEDEP}]
- <dev-python/flask-4.0.0[${PYTHON_USEDEP}]
- >=dev-python/flask-3.0.0[${PYTHON_USEDEP}]
- >=dev-python/inline-snapshot-0.21.1[${PYTHON_USEDEP}]
- >=dev-python/jinja2-3.1.5[${PYTHON_USEDEP}]
- >=dev-python/orjson-3.9.3[${PYTHON_USEDEP}]
- >=dev-python/pwdlib-0.2.1[${PYTHON_USEDEP}]
- >=dev-python/pydantic-extra-types-2.0.0[${PYTHON_USEDEP}]
- >=dev-python/pydantic-settings-2.0.0[${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/strawberry-graphql-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/strawberry-graphql-0.200.0[${PYTHON_USEDEP}]
- dev-python/sqlmodel[${PYTHON_USEDEP}]
- dev-python/trio[${PYTHON_USEDEP}]
- dev-python/typer[${PYTHON_USEDEP}]
- >=dev-python/ujson-5.8.0[${PYTHON_USEDEP}]
- dev-python/uvicorn[${PYTHON_USEDEP}]
- )
-"
-# brotli and zstd due to starlette based tests expecting it
-
-# Hung once
-: ${EPYTEST_TIMEOUT:=60}
-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 "settings management" dev-python/pydantic-settings
- optfeature "extra Pydantic data types" dev-python/pydantic-extra-types
- optfeature_header "Alternative JSON responses"
- optfeature "ORJSONResponse" dev-python/orjson
- optfeature "UJSONResponse" dev-python/ujson
-}
diff --git a/dev-python/fastapi/fastapi-0.136.3.ebuild b/dev-python/fastapi/fastapi-0.136.3.ebuild
deleted file mode 100644
index e032286d80d2..000000000000
--- a/dev-python/fastapi/fastapi-0.136.3.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 2024-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=pdm-backend
-PYTHON_COMPAT=( python3_{13..14} )
-
-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-2.9.0[${PYTHON_USEDEP}]
- >=dev-python/starlette-0.46.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
- >=dev-python/typing-inspection-0.4.2[${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/a2wsgi-2.0.0[${PYTHON_USEDEP}]
- >=dev-python/a2wsgi-1.9.0[${PYTHON_USEDEP}]
- dev-python/dirty-equals[${PYTHON_USEDEP}]
- dev-python/email-validator[${PYTHON_USEDEP}]
- <dev-python/flask-4.0.0[${PYTHON_USEDEP}]
- >=dev-python/flask-3.0.0[${PYTHON_USEDEP}]
- >=dev-python/inline-snapshot-0.21.1[${PYTHON_USEDEP}]
- >=dev-python/jinja2-3.1.5[${PYTHON_USEDEP}]
- >=dev-python/orjson-3.9.3[${PYTHON_USEDEP}]
- >=dev-python/pwdlib-0.2.1[${PYTHON_USEDEP}]
- >=dev-python/pydantic-extra-types-2.0.0[${PYTHON_USEDEP}]
- >=dev-python/pydantic-settings-2.0.0[${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/strawberry-graphql-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/strawberry-graphql-0.200.0[${PYTHON_USEDEP}]
- dev-python/sqlmodel[${PYTHON_USEDEP}]
- dev-python/trio[${PYTHON_USEDEP}]
- dev-python/typer[${PYTHON_USEDEP}]
- >=dev-python/ujson-5.8.0[${PYTHON_USEDEP}]
- dev-python/uvicorn[${PYTHON_USEDEP}]
- )
-"
-# brotli and zstd due to starlette based tests expecting it
-
-# Hung once
-: ${EPYTEST_TIMEOUT:=60}
-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 "settings management" dev-python/pydantic-settings
- optfeature "extra Pydantic data types" dev-python/pydantic-extra-types
- optfeature_header "Alternative JSON responses"
- optfeature "ORJSONResponse" dev-python/orjson
- optfeature "UJSONResponse" dev-python/ujson
-}
diff --git a/dev-python/fastapi/metadata.xml b/dev-python/fastapi/metadata.xml
index 35625086ffdf..09057c172039 100644
--- a/dev-python/fastapi/metadata.xml
+++ b/dev-python/fastapi/metadata.xml
@@ -2,9 +2,11 @@
<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
- <email>negril.nx+gentoo@gmail.com</email>
- <name>Paul Zander</name>
+ <email>marcin.deranek@slonko.net</email>
+ <name>Marcin Deranek</name>
</maintainer>
- <stabilize-allarches />
+ <upstream>
+ <bugs-to>https://github.com/fastapi/fastapi/issues</bugs-to>
+ </upstream>
<origin>baldeagleos-repo</origin>
</pkgmetadata>