chore(deps): prefer to use tomllib/tomli and mark tomlkit/tomli_w as optional (#392)

* chore(deps): prefer to use tomllib and mark tomlkit as optional

* docs: add toml extra to install command

* docs: update changelog
This commit is contained in:
Waket Zheng
2024-12-17 01:43:36 +08:00
committed by GitHub
parent 0780919ef3
commit d8addadb37
6 changed files with 123 additions and 43 deletions

View File

@@ -19,9 +19,10 @@ python = "^3.8"
tortoise-orm = "*"
asyncpg = { version = "*", optional = true }
asyncmy = { version = "^0.2.9", optional = true, allow-prereleases = true }
pydantic = "^2.0"
pydantic = "^2.0,!=2.7.0"
dictdiffer = "*"
tomlkit = "*"
tomlkit = { version = "*", optional = true, python="<3.11" }
tomli-w = { version = "^1.1.0", optional = true, python=">=3.11" }
asyncclick = "^8.1.7.2"
[tool.poetry.group.dev.dependencies]
@@ -41,6 +42,7 @@ mypy = "^1.10.0"
[tool.poetry.extras]
asyncmy = ["asyncmy"]
asyncpg = ["asyncpg"]
toml = ["tomlkit", "tomli-w"]
[tool.aerich]