Skip to content

Commit

Permalink
ci: fix asyncpg
Browse files Browse the repository at this point in the history
  • Loading branch information
thearchitector committed Nov 23, 2023
1 parent 4812e66 commit 079cc08
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 24 deletions.
5 changes: 3 additions & 2 deletions casbin_tortoise_adapter/adapter.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import asyncio
from dataclasses import asdict
from typing import List, Tuple
import asyncio

from casbin.model import Model
from casbin.persist import (
Adapter,
BatchAdapter,
FilteredAdapter,
Adapter,
load_policy_line,
)
from casbin.persist.adapters.update_adapter import UpdateAdapter
Expand Down
131 changes: 110 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ tortoise-orm = [
[tool.poetry.dev-dependencies]
pytest = "^6.2.4"
pytest-asyncio = "^0.15.1"
asyncpg = "^0.23.0"
asyncpg = [
{ version = "^0.28.0", python = ">=3.7,<3.12" },
{ version = "^0.29.0", python = ">=3.12" }
]

[tool.pytest.ini_options]
addopts = "-ra -svv"
Expand Down

0 comments on commit 079cc08

Please sign in to comment.