Skip to content

Commit

Permalink
Merge pull request #47 from simonsobs/dev
Browse files Browse the repository at this point in the history
Require `nextline>=0.7.12`
  • Loading branch information
TaiSakuma authored Jun 12, 2024
2 parents 477f312 + 2c38e7b commit 760857d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions ci/latest/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The exact requirements of the latest versions of the dependencies. This file
# is used in a GitHub Actions workflow to test the compatibility with the
# latest versions of the dependencies. This file is monitored by Dependabot.
nextline==0.7.12
nextline-graphql==0.7.9
transitions==0.9.1
httpx==0.27.0
Expand Down
1 change: 1 addition & 0 deletions ci/minimum/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This file is used in a GitHub Actions workflow to test the compatibility.
# This file needs to be manually updated to be consistent with
# `pyproject.toml`.
nextline==0.7.12
nextline-graphql==0.7.8
transitions==0.9.0
httpx==0.23.0
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
"nextline>=0.7.12",
"nextline-graphql>=0.7.8",
"transitions>=0.9",
"httpx>=0.23",
Expand Down
2 changes: 1 addition & 1 deletion src/nextline_schedule/auto/auto_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def __aenter__(self) -> 'AutoMode':

async def __aexit__(self, exc_type, exc_value, traceback) -> None:
await self._machine.__aexit__(exc_type, exc_value, traceback)
await self._pubsub_mode.close()
await self._pubsub_mode.aclose()

async def on_state_changed(self, state: str) -> None:
if state == 'off':
Expand Down
2 changes: 1 addition & 1 deletion src/nextline_schedule/auto/state_machine/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def _collect_tasks(self) -> None:

async def close(self) -> None:
await self._collect_tasks()
await self._pubsub_state.close()
await self._pubsub_state.aclose()

async def __aenter__(self) -> 'AutoModeStateMachine':
await self.start()
Expand Down
2 changes: 1 addition & 1 deletion src/nextline_schedule/queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def move_one_backward(self, id: int) -> bool:
return True

async def aclose(self) -> None:
await self._pubsub.close()
await self._pubsub.aclose()

async def __aenter__(self) -> 'Queue':
await self._pubsub.publish(list(self._queue.items))
Expand Down

0 comments on commit 760857d

Please sign in to comment.