summaryrefslogtreecommitdiff
path: root/dev-python/litestar
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:35:26 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:35:26 -0500
commitf716a9fe6455d39eef01e718aae68dae61c19704 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/litestar
parent3f9cf298e89cd5037b982abba06091224ee76daf (diff)
downloadbaldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.gz
baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.xz
baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.zip
Adding metadata
Diffstat (limited to 'dev-python/litestar')
-rw-r--r--dev-python/litestar/Manifest1
-rw-r--r--dev-python/litestar/files/litestar-2.19.0-no-valkey.patch98
-rw-r--r--dev-python/litestar/files/litestar-2.21-timemachine-3.patch143
-rw-r--r--dev-python/litestar/litestar-2.21.1.ebuild158
-rw-r--r--dev-python/litestar/metadata.xml14
5 files changed, 0 insertions, 414 deletions
diff --git a/dev-python/litestar/Manifest b/dev-python/litestar/Manifest
deleted file mode 100644
index b09c8baafd0b..000000000000
--- a/dev-python/litestar/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST litestar-2.21.1.gh.tar.gz 2954454 BLAKE2B e25249995e390027266bf94eac23feb73a6b4730d71f8e4384e22ddb80ecb4d7df9710b27e54a5eb3bdb5b6aeb44aef7d390a9db849280f11419c283a0c77d2a SHA512 214989cf82d49feb57a1bfcc6ac57604088b544e6ccb10492269f207490ce019e73432982644707028baaee3067ee905106f93607f33776b13b4b2ef4575a566
diff --git a/dev-python/litestar/files/litestar-2.19.0-no-valkey.patch b/dev-python/litestar/files/litestar-2.19.0-no-valkey.patch
deleted file mode 100644
index c788e3962bc4..000000000000
--- a/dev-python/litestar/files/litestar-2.19.0-no-valkey.patch
+++ /dev/null
@@ -1,98 +0,0 @@
-diff --git a/tests/conftest.py b/tests/conftest.py
-index 846899814..9f0df8bc1 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -18,8 +18,6 @@ from pytest_lazy_fixtures import lf
- from redis.asyncio import Redis as AsyncRedis
- from redis.client import Redis
- from time_machine import Coordinates, travel
--from valkey.asyncio import Valkey as AsyncValkey
--from valkey.client import Valkey
-
- from litestar.logging import LoggingConfig
- from litestar.middleware.session import SessionMiddleware
-@@ -31,7 +29,6 @@ from litestar.stores.base import Store
- from litestar.stores.file import FileStore
- from litestar.stores.memory import MemoryStore
- from litestar.stores.redis import RedisStore
--from litestar.stores.valkey import ValkeyStore
- from litestar.testing import RequestFactory
- from tests.helpers import not_none
-
-@@ -85,11 +82,6 @@ def redis_store(redis_client: AsyncRedis) -> RedisStore:
- return RedisStore(redis=redis_client)
-
-
--@pytest.fixture()
--def valkey_store(valkey_client: AsyncValkey) -> ValkeyStore:
-- return ValkeyStore(valkey=valkey_client)
--
--
- @pytest.fixture()
- def memory_store() -> MemoryStore:
- return MemoryStore()
-@@ -115,7 +107,6 @@ def file_store_create_directories_flag_false(tmp_path: Path) -> FileStore:
- @pytest.fixture(
- params=[
- pytest.param("redis_store", marks=pytest.mark.xdist_group("redis")),
-- pytest.param("valkey_store", marks=pytest.mark.xdist_group("valkey")),
- "memory_store",
- "file_store",
- ]
-@@ -341,20 +332,6 @@ async def redis_client(docker_ip: str, redis_service: None) -> AsyncGenerator[As
- pass
-
-
--@pytest.fixture()
--async def valkey_client(docker_ip: str, valkey_service: None) -> AsyncGenerator[AsyncValkey, None]:
-- # this is to get around some weirdness with pytest-asyncio and valkey interaction
-- # on 3.8 and 3.9
--
-- Valkey(host=docker_ip, port=6381).flushall()
-- client: AsyncValkey = AsyncValkey(host=docker_ip, port=6381)
-- yield client
-- try:
-- await client.aclose()
-- except RuntimeError:
-- pass
--
--
- @pytest.fixture(autouse=True)
- def _patch_openapi_config(monkeypatch: pytest.MonkeyPatch) -> None:
- monkeypatch.setattr("litestar.app.DEFAULT_OPENAPI_CONFIG", OpenAPIConfig(title="Litestar API", version="1.0.0"))
-diff --git a/tests/docker_service_fixtures.py b/tests/docker_service_fixtures.py
-index 84e78d48e..6efca3697 100644
---- a/tests/docker_service_fixtures.py
-+++ b/tests/docker_service_fixtures.py
-@@ -13,8 +13,6 @@ import asyncpg
- import pytest
- from redis.asyncio import Redis as AsyncRedis
- from redis.exceptions import ConnectionError as RedisConnectionError
--from valkey.asyncio import Valkey as AsyncValkey
--from valkey.exceptions import ConnectionError as ValkeyConnectionError
-
- from litestar.utils import ensure_async_callable
-
-@@ -129,21 +127,6 @@ async def redis_service(docker_services: DockerServiceRegistry) -> None:
- await docker_services.start("redis", check=redis_responsive)
-
-
--async def valkey_responsive(host: str) -> bool:
-- client: AsyncValkey = AsyncValkey(host=host, port=6381)
-- try:
-- return await client.ping()
-- except (ConnectionError, ValkeyConnectionError):
-- return False
-- finally:
-- await client.aclose()
--
--
--@pytest.fixture()
--async def valkey_service(docker_services: DockerServiceRegistry) -> None:
-- await docker_services.start("valkey", check=valkey_responsive)
--
--
- async def postgres_responsive(host: str) -> bool:
- try:
- conn = await asyncpg.connect(
-
diff --git a/dev-python/litestar/files/litestar-2.21-timemachine-3.patch b/dev-python/litestar/files/litestar-2.21-timemachine-3.patch
deleted file mode 100644
index 2c17ef72ffe9..000000000000
--- a/dev-python/litestar/files/litestar-2.21-timemachine-3.patch
+++ /dev/null
@@ -1,143 +0,0 @@
-diff --git a/tests/conftest.py b/tests/conftest.py
-index a2dd94355..4dfabc726 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -17,7 +17,7 @@ import pytest
- from pytest_lazy_fixtures import lf
- from redis.asyncio import Redis as AsyncRedis
- from redis.client import Redis
--from time_machine import Coordinates, travel
-+from time_machine import Traveller, travel
-
- from litestar.logging import LoggingConfig
- from litestar.middleware.session import SessionMiddleware
-@@ -36,7 +36,7 @@ if TYPE_CHECKING:
- from types import ModuleType
-
- from pytest import FixtureRequest, MonkeyPatch
-- from time_machine import Coordinates
-+ from time_machine import Traveller
-
- from litestar import Litestar
- from litestar.types import (
-@@ -266,7 +266,7 @@ def create_module(tmp_path: Path, monkeypatch: MonkeyPatch) -> Callable[[str], M
-
-
- @pytest.fixture()
--def frozen_datetime() -> Generator[Coordinates, None, None]:
-+def frozen_datetime() -> Generator[Traveller, None, None]:
- with travel(datetime.utcnow, tick=False) as frozen:
- yield frozen
-
-diff --git a/tests/e2e/test_response_caching.py b/tests/e2e/test_response_caching.py
-index 462302843..943162f16 100644
---- a/tests/e2e/test_response_caching.py
-+++ b/tests/e2e/test_response_caching.py
-@@ -21,7 +21,7 @@ from litestar.testing import TestClient, create_test_client
- from litestar.types import HTTPScope
-
- if TYPE_CHECKING:
-- from time_machine import Coordinates
-+ from time_machine import Traveller
-
- T = TypeVar("T")
-
-@@ -60,7 +60,7 @@ def test_default_cache_response(sync_to_thread: bool, mock: MagicMock) -> None:
- assert mock.call_count == 1
-
-
--def test_handler_expiration(mock: MagicMock, frozen_datetime: "Coordinates") -> None:
-+def test_handler_expiration(mock: MagicMock, frozen_datetime: "Traveller") -> None:
- @get("/cached-local", cache=10)
- async def handler() -> str:
- return mock() # type: ignore[no-any-return]
-@@ -78,7 +78,7 @@ def test_handler_expiration(mock: MagicMock, frozen_datetime: "Coordinates") ->
- assert mock.call_count == 2
-
-
--def test_default_expiration(mock: MagicMock, frozen_datetime: "Coordinates") -> None:
-+def test_default_expiration(mock: MagicMock, frozen_datetime: "Traveller") -> None:
- @get("/cached-default", cache=True)
- async def handler() -> str:
- return mock() # type: ignore[no-any-return]
-diff --git a/tests/unit/test_middleware/test_session/test_server_side_backend.py b/tests/unit/test_middleware/test_session/test_server_side_backend.py
-index d9905ff45..cb291a588 100644
---- a/tests/unit/test_middleware/test_session/test_server_side_backend.py
-+++ b/tests/unit/test_middleware/test_session/test_server_side_backend.py
-@@ -11,7 +11,7 @@ from litestar.stores.memory import MemoryStore
- from litestar.testing import TestClient
-
- if TYPE_CHECKING:
-- from time_machine import Coordinates
-+ from time_machine import Traveller
-
- from litestar.middleware.session.server_side import ServerSideSessionBackend
-
-@@ -70,7 +70,7 @@ async def test_get_renew_on_access(
- server_side_session_backend: "ServerSideSessionBackend",
- session_data: bytes,
- memory_store: MemoryStore,
-- frozen_datetime: "Coordinates",
-+ frozen_datetime: "Traveller",
- ) -> None:
- server_side_session_backend.config.max_age = 1
- server_side_session_backend.config.renew_on_access = True
-@@ -121,7 +121,7 @@ async def test_max_age_expires(
- server_side_session_backend: "ServerSideSessionBackend",
- session_data: bytes,
- memory_store: MemoryStore,
-- frozen_datetime: "Coordinates",
-+ frozen_datetime: "Traveller",
- ) -> None:
- server_side_session_backend.config.max_age = 1
- await server_side_session_backend.set("foo", session_data, memory_store)
-diff --git a/tests/unit/test_stores.py b/tests/unit/test_stores.py
-index 471ae754b..97c8f2db9 100644
---- a/tests/unit/test_stores.py
-+++ b/tests/unit/test_stores.py
-@@ -12,7 +12,7 @@ from unittest.mock import MagicMock, Mock, patch
- import pytest
- from _pytest.fixtures import FixtureRequest
- from pytest_mock import MockerFixture
--from time_machine import Coordinates
-+from time_machine import Traveller
-
- from litestar.exceptions import ImproperlyConfiguredException
- from litestar.stores.file import FileStore
-@@ -69,7 +69,7 @@ async def test_set_special_chars_key(store: Store, key: str) -> None:
- assert await store.get(key) == value
-
-
--async def test_expires(store: Store, frozen_datetime: Coordinates) -> None:
-+async def test_expires(store: Store, frozen_datetime: Traveller) -> None:
- await store.set("foo", b"bar", expires_in=1)
-
- frozen_datetime.shift(2)
-@@ -87,7 +87,7 @@ async def test_expires(store: Store, frozen_datetime: Coordinates) -> None:
-
- @pytest.mark.flaky(reruns=5)
- @pytest.mark.parametrize("renew_for", [10, timedelta(seconds=10)])
--async def test_get_and_renew(store: Store, renew_for: int | timedelta, frozen_datetime: Coordinates) -> None:
-+async def test_get_and_renew(store: Store, renew_for: int | timedelta, frozen_datetime: Traveller) -> None:
- if isinstance(store, (RedisStore, ValkeyStore)):
- pytest.skip()
-
-@@ -176,7 +176,7 @@ async def test_delete_all(store: Store) -> None:
- assert await store.get(key) is None
-
-
--async def test_expires_in(store: Store, frozen_datetime: Coordinates) -> None:
-+async def test_expires_in(store: Store, frozen_datetime: Traveller) -> None:
- if not isinstance(store, (RedisStore, ValkeyStore)):
- pytest.xfail("bug in FileStore and MemoryStore")
-
-@@ -460,7 +460,7 @@ async def test_namespaced_store_delete_all_propagates_down(namespaced_store: Nam
-
-
- @pytest.mark.parametrize("store_fixture", ["memory_store", "file_store"])
--async def test_memory_delete_expired(store_fixture: str, request: FixtureRequest, frozen_datetime: Coordinates) -> None:
-+async def test_memory_delete_expired(store_fixture: str, request: FixtureRequest, frozen_datetime: Traveller) -> None:
- store = request.getfixturevalue(store_fixture)
-
- expect_expired: list[str] = []
-
diff --git a/dev-python/litestar/litestar-2.21.1.ebuild b/dev-python/litestar/litestar-2.21.1.ebuild
deleted file mode 100644
index 019ed1939c4f..000000000000
--- a/dev-python/litestar/litestar-2.21.1.ebuild
+++ /dev/null
@@ -1,158 +0,0 @@
-# Copyright 2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit distutils-r1 #pypi
-
-DESCRIPTION="Light, flexible and extensible ASGI framework"
-HOMEPAGE="
- https://github.com/litestar-org/litestar/
- https://pypi.org/project/litestar/
-"
-# no tests in sdist
-SRC_URI="
- https://github.com/litestar-org/litestar/archive/refs/tags/v${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="
- >=dev-python/anyio-3[${PYTHON_USEDEP}]
- dev-python/click[${PYTHON_USEDEP}]
- >=dev-python/httpx-0.22[${PYTHON_USEDEP}]
- >=dev-python/litestar-htmx-0.4.0[${PYTHON_USEDEP}]
- >=dev-python/msgspec-0.18.2[${PYTHON_USEDEP}]
- >=dev-python/multidict-6.0.2[${PYTHON_USEDEP}]
- >=dev-python/multipart-1.2.0[${PYTHON_USEDEP}]
- >=dev-python/polyfactory-2.6.3[${PYTHON_USEDEP}]
- dev-python/pyyaml[${PYTHON_USEDEP}]
- >=dev-python/rich-13.0.0[${PYTHON_USEDEP}]
- dev-python/rich-click[${PYTHON_USEDEP}]
- >=dev-python/sniffio-1.3.1[${PYTHON_USEDEP}]
- dev-python/typing-extensions[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- app-arch/brotli[python,${PYTHON_USEDEP}]
- dev-python/aiosqlite[${PYTHON_USEDEP}]
- >=dev-python/asyncpg-0.29.0[${PYTHON_USEDEP}]
- dev-python/beautifulsoup4[${PYTHON_USEDEP}]
- dev-python/fsspec[${PYTHON_USEDEP}]
- dev-python/greenlet[${PYTHON_USEDEP}]
- dev-python/httpx-sse[${PYTHON_USEDEP}]
- dev-python/httpx[${PYTHON_USEDEP}]
- dev-python/hypercorn[${PYTHON_USEDEP}]
- dev-python/hypothesis[${PYTHON_USEDEP}]
- dev-python/prometheus-client[${PYTHON_USEDEP}]
- dev-python/psutil[${PYTHON_USEDEP}]
- dev-python/psycopg:0[${PYTHON_USEDEP}]
- dev-python/pydantic-extra-types[${PYTHON_USEDEP}]
- dev-python/redis[${PYTHON_USEDEP}]
- dev-python/sqlalchemy[${PYTHON_USEDEP}]
- dev-python/starlette[${PYTHON_USEDEP}]
- dev-python/structlog[${PYTHON_USEDEP}]
- >=dev-python/time-machine-3[${PYTHON_USEDEP}]
- dev-python/trio[${PYTHON_USEDEP}]
- dev-python/uvicorn[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_IGNORE=(
- # Requires docker
- "tests/unit/test_channels/test_plugin.py"
- "tests/unit/test_testing/test_test_client.py"
- "tests/unit/test_channels/test_backends.py"
-
- # Unpackaged advanced alchemy
- "tests/examples/test_dto/test_example_apps.py"
- "tests/unit/test_dto/test_factory/test_integration.py"
- "tests/e2e/test_advanced_alchemy.py"
- "tests/examples/test_contrib/test_sqlalchemy/plugins/test_example_apps.py"
- "tests/examples/test_contrib/test_sqlalchemy/plugins/test_tutorial_example_apps.py"
- "tests/examples/test_contrib/test_sqlalchemy/test_sqlalchemy_examples.py"
- "tests/unit/test_app.py"
- "tests/unit/test_contrib/test_sqlalchemy.py"
- "tests/unit/test_plugins/test_base.py"
- "tests/unit/test_plugins/test_sqlalchemy.py"
- "tests/unit/test_repository/test_generic_mock_repository.py"
- "tests/examples/test_plugins/test_sqlalchemy_init_plugin.py"
-
- # Unpackaged minijinja
- "tests/examples/test_templating/test_engine_instance.py"
- "tests/examples/test_templating/test_returning_templates.py"
- "tests/examples/test_templating/test_template_functions.py"
- "tests/unit/test_contrib/test_minijinja.py"
- "tests/unit/test_plugins/test_flash.py"
- "tests/unit/test_template/test_built_in.py"
- "tests/unit/test_template/test_builtin_functions.py"
- "tests/unit/test_template/test_context.py"
- "tests/unit/test_template/test_csrf_token.py"
- "tests/unit/test_template/test_template.py"
-
- # Unpackaged beanie
- "tests/unit/test_plugins/test_pydantic/test_beanie_integration.py"
-
- # Unpackaged valkey
- "tests/unit/test_stores.py"
-
- # Avoid the dependency
- "tests/unit/test_contrib/test_opentelemetry.py"
- "tests/unit/test_plugins/test_prometheus.py"
-
- # appears to require installing litestar properly prior
- "tests/e2e/test_routing/test_path_mounting.py"
- "tests/e2e/test_routing/test_path_resolution.py"
-)
-EPYTEST_DESELECT=(
- # Requires docker
- "tests/e2e/test_response_caching.py::test_with_stores[redis_store]"
- "tests/e2e/test_routing/test_path_resolution.py::test_server_root_path_handling_empty_path[hypercorn]"
-
- # Unpackaged daphne
- "tests/e2e/test_routing/test_path_resolution.py::test_no_path_traversal_from_static_directory[daphne]"
- "tests/e2e/test_routing/test_path_resolution.py::test_server_root_path_handling_empty_path[daphne]"
- "tests/e2e/test_routing/test_path_resolution.py::test_server_root_path_handling[daphne]"
- "tests/e2e/test_routing/test_path_mounting.py::test_path_mounting_live_server[daphne]"
-
- # Deprecation test
- "tests/unit/test_deprecations.py::test_contrib_minijnja_deprecation"
- "tests/unit/test_deprecations.py::test_minijinja_from_state_deprecation"
-
- # Unpackaged advanced alchemy
- "tests/examples/test_data_transfer_objects/test_factory/test_type_checking.py::test_should_raise_error_on_route_registration"
- "tests/unit/test_contrib/test_repository.py::test_advanced_alchemy_imports"
-
- # Fragile to configuration differences
- "tests/e2e/test_logging/test_structlog_to_file.py::test_structlog_to_file"
- "tests/unit/test_connection/test_request.py::test_request_headers"
- "tests/unit/test_connection/test_websocket.py::test_websocket_headers"
-
- # Fragile to background load
- #"tests/unit/test_handlers/test_http_handlers/test_kwarg_handling.py::test_route_handler_kwarg_handling"
-
- # TypeError: Issuer (iss) must be a string.
- "tests/unit/test_security/test_jwt/test_auth.py::test_jwt_auth_validation_error_returns_not_authorized"
-)
-
-EPYTEST_RERUNS=5 # upstream does it, and yes flaky is real
-EPYTEST_XDIST=1
-EPYTEST_PLUGINS=( pytest-asyncio pytest-mock pytest-lazy-fixtures )
-distutils_enable_tests pytest
-
-PATCHES=(
- # valkey not packaged
- "${FILESDIR}"/litestar-2.19.0-no-valkey.patch
-
- "${FILESDIR}"/litestar-2.21-timemachine-3.patch
-)
-
-python_test() {
- epytest -o addopts= tests
-}
diff --git a/dev-python/litestar/metadata.xml b/dev-python/litestar/metadata.xml
deleted file mode 100644
index 10aea2af18d4..000000000000
--- a/dev-python/litestar/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>negril.nx+gentoo@gmail.com</email>
- <name>Paul Zander</name>
- </maintainer>
- <stabilize-allarches/>
- <upstream>
- <doc>https://docs.litestar.dev/latest/</doc>
- <remote-id type="github">litestar-org/litestar</remote-id>
- <remote-id type="pypi">litestar</remote-id>
- </upstream>
-</pkgmetadata>