From e3370a4a5ac086935cc999e1bd2b154289accda2 Mon Sep 17 00:00:00 2001 From: ldruschk <14059613+ldruschk@users.noreply.github.com> Date: Fri, 17 Jan 2025 19:18:24 +0100 Subject: [PATCH] bump dependencies (#48) * bump dependencies --- .github/workflows/pythonapp.yml | 2 +- dev-requirements.txt | 14 +++++++------- enochecker3/enochecker.py | 2 +- enochecker3/logging.py | 4 +++- requirements.txt | 10 +++++----- setup.py | 6 +++--- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index e8c6ae3..32daef6 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -17,7 +17,7 @@ jobs: name: python test strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v2 diff --git a/dev-requirements.txt b/dev-requirements.txt index 727299a..cb0807d 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,8 +1,8 @@ -mypy==1.10.0 -black==24.4.2 +mypy==1.14.1 +black==24.10.0 isort==5.13.2 -flake8==7.0.0 -coverage==7.5.3 -pytest==8.2.2 -pytest-asyncio==0.23.7 -setuptools==70.0.0 +flake8==7.1.1 +coverage==7.6.10 +pytest==8.3.4 +pytest-asyncio==0.25.2 +setuptools==75.0.0 diff --git a/enochecker3/enochecker.py b/enochecker3/enochecker.py index 80e7d3f..80737e6 100644 --- a/enochecker3/enochecker.py +++ b/enochecker3/enochecker.py @@ -553,7 +553,7 @@ async def checker(task: CheckerTaskMessage) -> CheckerResultMessage: cast(ExploitCheckerTaskMessage, _task) ) else: - return CheckerResultMessage( + return CheckerResultMessage( # type: ignore result=CheckerTaskResult.INTERNAL_ERROR, message=f"Unsupported method: {task.method}", ) diff --git a/enochecker3/logging.py b/enochecker3/logging.py index 406f9c7..552e223 100644 --- a/enochecker3/logging.py +++ b/enochecker3/logging.py @@ -16,7 +16,9 @@ def format(self, record: logging.LogRecord) -> str: record, "checker_task", None ) - timestamp: str = datetime.datetime.utcnow().strftime("%H:%M:%S.%f")[:-3] + timestamp: str = datetime.datetime.now(datetime.timezone.utc).strftime( + "%H:%M:%S.%f" + )[:-3] method: str = getattr(checker_task, "method", None) or "" levelname: str = getattr(record, "levelname", None) or "" task_id: str = getattr(checker_task, "task_id", None) or "" diff --git a/requirements.txt b/requirements.txt index 3f056c7..0df4fd8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -httpx>=0.27.0,<0.28.0 -motor>=3.4.0,<4.0.0 -fastapi>=0.111.0,<0.112.0 -uvicorn>=0.30.1,<0.31.0 -gunicorn==22.0.0 +httpx>=0.28.0,<0.29.0 +motor>=3.6.1,<4.0.0 +fastapi>=0.115.6,<0.116.0 +uvicorn>=0.34.0,<0.35.0 +gunicorn==23.0.0 diff --git a/setup.py b/setup.py index 224c523..23a2d30 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setuptools.setup( name="enochecker3", - version="0.9.1", + version="0.10.0", author="ldruschk", author_email="ldruschk@posteo.de", description="FastAPI based library for building async python checkers for the EnoEngine A/D CTF Framework", @@ -31,12 +31,12 @@ "License :: OSI Approved :: MIT License", # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], zip_safe=False, # This might be needed for requirements.txt - python_requires=">=3.8", + python_requires=">=3.9", )