* feat: support `--fake` for aerich upgrade * Add `--fake` to downgrade * tests: check --fake result for aerich upgrade and downgrade * Update readme * Fix unittest failed because of `db_field_types` changed * refactor: improve type hints and document
76 lines
1.8 KiB
TOML
76 lines
1.8 KiB
TOML
[tool.poetry]
|
|
name = "aerich"
|
|
version = "0.8.1"
|
|
description = "A database migrations tool for Tortoise ORM."
|
|
authors = ["long2ice <long2ice@gmail.com>"]
|
|
license = "Apache-2.0"
|
|
readme = "README.md"
|
|
homepage = "https://github.com/tortoise/aerich"
|
|
repository = "https://github.com/tortoise/aerich.git"
|
|
documentation = "https://github.com/tortoise/aerich"
|
|
keywords = ["migrate", "Tortoise-ORM", "mysql"]
|
|
packages = [
|
|
{ include = "aerich" }
|
|
]
|
|
include = ["CHANGELOG.md", "LICENSE", "README.md"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.8"
|
|
tortoise-orm = ">=0.21"
|
|
asyncpg = { version = "*", optional = true }
|
|
asyncmy = { version = "^0.2.9", optional = true, allow-prereleases = true }
|
|
pydantic = "^2.0,!=2.7.0"
|
|
dictdiffer = "*"
|
|
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]
|
|
ruff = "*"
|
|
isort = "*"
|
|
black = "*"
|
|
pytest = "*"
|
|
pytest-xdist = "*"
|
|
# Breaking change in 0.23.*
|
|
# https://github.com/pytest-dev/pytest-asyncio/issues/706
|
|
pytest-asyncio = "^0.21.2"
|
|
bandit = "*"
|
|
pytest-mock = "*"
|
|
cryptography = "*"
|
|
mypy = "^1.10.0"
|
|
|
|
[tool.poetry.extras]
|
|
asyncmy = ["asyncmy"]
|
|
asyncpg = ["asyncpg"]
|
|
toml = ["tomlkit", "tomli-w"]
|
|
|
|
|
|
[tool.aerich]
|
|
tortoise_orm = "conftest.tortoise_orm"
|
|
location = "./migrations"
|
|
src_folder = "./."
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.poetry.scripts]
|
|
aerich = "aerich.cli:main"
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313']
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = 'auto'
|
|
|
|
[tool.mypy]
|
|
pretty = true
|
|
python_version = "3.8"
|
|
ignore_missing_imports = true
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
[tool.ruff.lint]
|
|
ignore = ['E501']
|