From 3d72b4732de5665743e7e3563748888b7cf37212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Loipf=C3=BChrer?= Date: Thu, 12 Dec 2024 21:22:30 +0100 Subject: [PATCH] chore: bump python dependencies --- pyproject.toml | 24 ++++++++++++------------ tests/http_tests/common.py | 5 +++-- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 406f1c0f..41c2f751 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,22 +14,22 @@ dynamic = ["version", "description"] classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "License :: OSI Approved :: GNU Affero General Public License v3 (AGPLv3)", "Development Status :: 5 - Production/Stable", ] requires-python = ">=3.10" dependencies = [ - "typer~=0.9.0", - "fastapi==0.110.0", - "pydantic[email]~=2.6.0", - "pydantic-settings==2.2.1", - "uvicorn[standard]~=0.27.0", + "typer~=0.15.1", + "fastapi==0.115.6", + "pydantic[email]~=2.10.3", + "pydantic-settings==2.6.1", + "uvicorn[standard]~=0.32.1", "python-jose[cryptography]~=3.3.0", - "asyncpg~=0.29.0", + "asyncpg~=0.30.0", "passlib[bcrypt]~=1.7.0", - "websockets~=12.0.0", - "python-multipart~=0.0.9", - "PyYAML~=6.0.0", + "websockets~=14.1", + "python-multipart~=0.0.19", + "PyYAML~=6.0.2", ] [project.optional-dependencies] @@ -43,9 +43,9 @@ test = [ dev = [ "isort", "black", - "mypy==1.8.0", + "mypy==1.13.0", "types-PyYAML~=6.0", - "pylint==3.1.0", + "pylint==3.3.2", "bump-my-version~=0.18" ] docs = [ diff --git a/tests/http_tests/common.py b/tests/http_tests/common.py index 2633a399..6db1d08c 100644 --- a/tests/http_tests/common.py +++ b/tests/http_tests/common.py @@ -1,5 +1,5 @@ # pylint: disable=attribute-defined-outside-init -from httpx import AsyncClient +from httpx import ASGITransport, AsyncClient from abrechnung.http.api import Api from tests.common import TEST_CONFIG, BaseTestCase @@ -12,7 +12,8 @@ async def asyncSetUp(self) -> None: self.http_service = Api(config=self.test_config) await self.http_service._setup() - self.client = AsyncClient(app=self.http_service.api, base_url="https://abrechnung.sft.lol") + self.transport = ASGITransport(app=self.http_service.api) + self.client = AsyncClient(transport=self.transport, base_url="https://abrechnung.sft.lol") self.transaction_service = self.http_service.transaction_service self.account_service = self.http_service.account_service self.group_service = self.http_service.group_service