Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request canonical#186 from tonyandrewmeyer/limit-6-to-ops-16
Browse files Browse the repository at this point in the history
chore: limit Scenario 6 to use ops 2.12-2.16
  • Loading branch information
PietroPasotti authored Sep 9, 2024
2 parents 91fef2a + de9ff88 commit 6080dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ops-scenario"

version = "6.1.6"
version = "6.1.7"

authors = [
{ name = "Pietro Pasotti", email = "[email protected]" }
Expand All @@ -18,7 +18,7 @@ license.text = "Apache-2.0"
keywords = ["juju", "test"]

dependencies = [
"ops>=2.12",
"ops>=2.12,<=2.16",
"PyYAML>=6.0.1",
]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions scenario/ops_main_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _emit_charm_event(
)

try:
args, kwargs = _get_event_args(charm, event_to_emit)
args, kwargs = _get_event_args(charm, event_to_emit) # type: ignore
except TypeError:
# ops 2.16+
import ops.jujucontext # type: ignore
Expand Down Expand Up @@ -182,7 +182,7 @@ def setup(state: "State", event: "Event", context: "Context", charm_spec: "_Char
charm_dir = _get_charm_dir()

try:
dispatcher = _Dispatcher(charm_dir)
dispatcher = _Dispatcher(charm_dir) # type: ignore
except TypeError:
# ops 2.16+
import ops.jujucontext # type: ignore
Expand Down

0 comments on commit 6080dbd

Please sign in to comment.