diff --git a/dev-requirements.txt b/dev-requirements.txt index f38a575..13f6c68 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --extra=development --extra=docs --extra=testing --extra=ws --output-file=./dev-requirements.txt pyproject.toml @@ -32,7 +32,6 @@ click==8.1.8 # via # black # pip-tools - # s2-python (pyproject.toml) colorama==0.4.6 # via tox coverage[toml]==7.6.1 @@ -48,8 +47,6 @@ docutils==0.20.1 # sphinx # sphinx-rtd-theme # sphinx-tabs -exceptiongroup==1.2.2 - # via pytest filelock==3.16.1 # via # tox @@ -62,11 +59,6 @@ idna==3.10 # via requests imagesize==1.4.1 # via sphinx -importlib-metadata==8.5.0 - # via - # build - # setuptools-scm - # sphinx inflect==5.6.2 # via datamodel-code-generator iniconfig==2.0.0 @@ -152,8 +144,6 @@ pytest-coverage==0.0 # via s2-python (pyproject.toml) pytest-timer==1.0.0 # via s2-python (pyproject.toml) -pytz==2025.1 - # via s2-python (pyproject.toml) pyyaml==6.0.2 # via # datamodel-code-generator @@ -200,36 +190,18 @@ sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 # via sphinx tomli==2.2.1 - # via - # black - # build - # coverage - # datamodel-code-generator - # mypy - # pip-tools - # pylint - # pyproject-api - # pytest - # setuptools-scm - # tox + # via datamodel-code-generator tomlkit==0.13.2 # via pylint tox==4.24.1 # via s2-python (pyproject.toml) -types-pytz==2024.2.0.20241221 - # via s2-python (pyproject.toml) typing-extensions==4.12.2 # via - # astroid - # black # mypy # pydantic # pydantic-core - # pylint # pyright # s2-python (pyproject.toml) - # setuptools-scm - # tox urllib3==2.2.3 # via requests virtualenv==20.29.2 @@ -240,8 +212,6 @@ websockets==13.1 # via s2-python (pyproject.toml) wheel==0.45.1 # via pip-tools -zipp==3.20.2 - # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/pyproject.toml b/pyproject.toml index e546a09..d8fe0bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,6 @@ license-files = ["LICENSE"] requires-python = ">=3.9, < 3.14" dependencies = [ "pydantic>=2.8.2", - "pytz", - "click", "typing-extensions", ] classifiers = [ @@ -25,7 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.13", ] [tool.setuptools_scm] @@ -44,7 +42,6 @@ testing = [ "pytest-coverage", "pytest-timer", "mypy", - "types-pytz", "pylint", "pyright", ] diff --git a/tests/unit/common/instruction_status_update_test.py b/tests/unit/common/instruction_status_update_test.py index 91b81f2..49ba690 100644 --- a/tests/unit/common/instruction_status_update_test.py +++ b/tests/unit/common/instruction_status_update_test.py @@ -3,7 +3,7 @@ import uuid from unittest import TestCase -from pytz import timezone +from zoneinfo import ZoneInfo from s2python.common import InstructionStatusUpdate, InstructionStatus @@ -44,9 +44,7 @@ def test__to_json__happy_path(self): message_id=uuid.UUID("2bdec96b-be3b-4ba9-afa0-c4a0632cced3"), instruction_id=uuid.UUID("2bdec96b-be3b-4ba9-afa0-c4a0632cced4"), status_type=InstructionStatus.SUCCEEDED, - timestamp=timezone("Europe/Amsterdam").localize( - datetime(2023, 8, 2, 12, 48, 42) - ), + timestamp=datetime(2023, 8, 2, 12, 48, 42, tzinfo=ZoneInfo("Europe/Amsterdam")), ) # Act