Skip to content

Commit

Permalink
Added backports to tox.ini and pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmilsonRodrigues committed Dec 21, 2024
1 parent 2a63004 commit e69f6fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions juju/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright 2024 Canonical Ltd.
# Licensed under the Apache V2, see LICENCE file for details.
"""Python Library for Juju."""

from backports.datetime_fromisoformat import MonkeyPatch

MonkeyPatch.patch_fromisoformat()
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ classifiers = [
]
dependencies = [
"macaroonbakery>=1.1,<2.0",
"pyRFC3339>=1.0,<2.0",
"pyyaml>=5.1.2",
"websockets>=13.0.1",
"paramiko>=2.4.0",
Expand All @@ -35,6 +34,7 @@ dependencies = [
"packaging",
"typing-extensions>=4.5.0",
'backports.strenum>=1.3.1; python_version < "3.11"',
"backports-datetime-fromisoformat>=2.0.2",
]
[project.optional-dependencies]
dev = [
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ commands =

[testenv:unit]
envdir = {toxworkdir}/py3
deps =
backports-datetime-fromisoformat
allowlist_externals =
pytest
commands =
pytest {toxinidir}/tests/unit {posargs}

Expand Down

0 comments on commit e69f6fa

Please sign in to comment.