Skip to content

Commit 21739f2

Browse files
chore: added backports to tox.ini and pyproject.toml
1 parent 2a63004 commit 21739f2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

juju/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Copyright 2024 Canonical Ltd.
22
# Licensed under the Apache V2, see LICENCE file for details.
33
"""Python Library for Juju."""
4+
5+
from backports.datetime_fromisoformat import MonkeyPatch
6+
7+
MonkeyPatch.patch_fromisoformat()

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ classifiers = [
2323
]
2424
dependencies = [
2525
"macaroonbakery>=1.1,<2.0",
26-
"pyRFC3339>=1.0,<2.0",
2726
"pyyaml>=5.1.2",
2827
"websockets>=13.0.1",
2928
"paramiko>=2.4.0",
@@ -35,6 +34,7 @@ dependencies = [
3534
"packaging",
3635
"typing-extensions>=4.5.0",
3736
'backports.strenum>=1.3.1; python_version < "3.11"',
37+
"backports-datetime-fromisoformat>=2.0.2",
3838
]
3939
[project.optional-dependencies]
4040
dev = [

tox.ini

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ commands =
5050

5151
[testenv:unit]
5252
envdir = {toxworkdir}/py3
53+
deps =
54+
backports-datetime-fromisoformat
55+
allowlist_externals =
56+
pytest
5357
commands =
5458
pytest {toxinidir}/tests/unit {posargs}
5559

0 commit comments

Comments
 (0)