Skip to content

Commit 6ab39f1

Browse files
authored
Remove click and pytz dependency, resolves #151 (#152)
1 parent c680743 commit 6ab39f1

3 files changed

Lines changed: 5 additions & 40 deletions

File tree

dev-requirements.txt

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# 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
3232
# via
3333
# black
3434
# pip-tools
35-
# s2-python (pyproject.toml)
3635
colorama==0.4.6
3736
# via tox
3837
coverage[toml]==7.6.1
@@ -48,8 +47,6 @@ docutils==0.20.1
4847
# sphinx
4948
# sphinx-rtd-theme
5049
# sphinx-tabs
51-
exceptiongroup==1.2.2
52-
# via pytest
5350
filelock==3.16.1
5451
# via
5552
# tox
@@ -62,11 +59,6 @@ idna==3.10
6259
# via requests
6360
imagesize==1.4.1
6461
# via sphinx
65-
importlib-metadata==8.5.0
66-
# via
67-
# build
68-
# setuptools-scm
69-
# sphinx
7062
inflect==5.6.2
7163
# via datamodel-code-generator
7264
iniconfig==2.0.0
@@ -152,8 +144,6 @@ pytest-coverage==0.0
152144
# via s2-python (pyproject.toml)
153145
pytest-timer==1.0.0
154146
# via s2-python (pyproject.toml)
155-
pytz==2025.1
156-
# via s2-python (pyproject.toml)
157147
pyyaml==6.0.2
158148
# via
159149
# datamodel-code-generator
@@ -200,36 +190,18 @@ sphinxcontrib-qthelp==1.0.3
200190
sphinxcontrib-serializinghtml==1.1.5
201191
# via sphinx
202192
tomli==2.2.1
203-
# via
204-
# black
205-
# build
206-
# coverage
207-
# datamodel-code-generator
208-
# mypy
209-
# pip-tools
210-
# pylint
211-
# pyproject-api
212-
# pytest
213-
# setuptools-scm
214-
# tox
193+
# via datamodel-code-generator
215194
tomlkit==0.13.2
216195
# via pylint
217196
tox==4.24.1
218197
# via s2-python (pyproject.toml)
219-
types-pytz==2024.2.0.20241221
220-
# via s2-python (pyproject.toml)
221198
typing-extensions==4.12.2
222199
# via
223-
# astroid
224-
# black
225200
# mypy
226201
# pydantic
227202
# pydantic-core
228-
# pylint
229203
# pyright
230204
# s2-python (pyproject.toml)
231-
# setuptools-scm
232-
# tox
233205
urllib3==2.2.3
234206
# via requests
235207
virtualenv==20.29.2
@@ -240,8 +212,6 @@ websockets==13.1
240212
# via s2-python (pyproject.toml)
241213
wheel==0.45.1
242214
# via pip-tools
243-
zipp==3.20.2
244-
# via importlib-metadata
245215

246216
# The following packages are considered to be unsafe in a requirements file:
247217
# pip

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ license-files = ["LICENSE"]
1515
requires-python = ">=3.9, < 3.14"
1616
dependencies = [
1717
"pydantic>=2.8.2",
18-
"pytz",
19-
"click",
2018
"typing-extensions",
2119
]
2220
classifiers = [
@@ -25,7 +23,7 @@ classifiers = [
2523
"Programming Language :: Python :: 3.10",
2624
"Programming Language :: Python :: 3.11",
2725
"Programming Language :: Python :: 3.12",
28-
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.13",
2927
]
3028

3129
[tool.setuptools_scm]
@@ -44,7 +42,6 @@ testing = [
4442
"pytest-coverage",
4543
"pytest-timer",
4644
"mypy",
47-
"types-pytz",
4845
"pylint",
4946
"pyright",
5047
]

tests/unit/common/instruction_status_update_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import uuid
44
from unittest import TestCase
55

6-
from pytz import timezone
6+
from zoneinfo import ZoneInfo
77

88
from s2python.common import InstructionStatusUpdate, InstructionStatus
99

@@ -44,9 +44,7 @@ def test__to_json__happy_path(self):
4444
message_id=uuid.UUID("2bdec96b-be3b-4ba9-afa0-c4a0632cced3"),
4545
instruction_id=uuid.UUID("2bdec96b-be3b-4ba9-afa0-c4a0632cced4"),
4646
status_type=InstructionStatus.SUCCEEDED,
47-
timestamp=timezone("Europe/Amsterdam").localize(
48-
datetime(2023, 8, 2, 12, 48, 42)
49-
),
47+
timestamp=datetime(2023, 8, 2, 12, 48, 42, tzinfo=ZoneInfo("Europe/Amsterdam")),
5048
)
5149

5250
# Act

0 commit comments

Comments
 (0)