Open homm opened 1 year ago
I've just had the same issue. This is because aerich init
assumes the [tool]
section exists in pyproject.toml
. You can work around that by creating the section yourself, but aerich
should check if it exists first...
I also have faced this issue. Is there any solution?
Solution is:
Create a file in your root project pyproject.toml
Here is my toml file. Please customize this as you needed
[project]
name = "project_name"
classifiers = ["Private :: Do Not Upload"]
version = "1"
dependencies = [
"blacksheep==2.0.7",
# DB
"tortoise-orm[asyncpg] ~= 0.21.3",
"aerich ~= 0.7.2",
]
[project.optional-dependencies]
dev = [
]
[tool.setuptools.packages] // this is important. If you don't add this link, you will get an error
find = {} # Scanning implicit namespaces is active by default
My
pyproject.toml
: