♻️Refactor settings.py.j2 to new project syntax
This commit is contained in:
parent
7cf7d6ccfc
commit
3958c51213
1 changed files with 32 additions and 8 deletions
|
|
@ -1,13 +1,37 @@
|
||||||
[tool.poetry]
|
[project]
|
||||||
name = "{{ project_name }}"
|
name = "{{ project_name }}"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "OhMyAPI project"
|
description = "OhMyAPI project"
|
||||||
authors = ["You <you@example.com>"]
|
authors = [
|
||||||
|
{ name = "You", email = "you@you.tld" }
|
||||||
|
]
|
||||||
|
requires-python = ">=3.13"
|
||||||
|
readme = "README.md"
|
||||||
|
license = { text = "MIT" }
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
dependencies = [
|
||||||
python = "^3.10"
|
"typer >=0.19.1,<0.20.0",
|
||||||
fastapi = "^0.115"
|
"jinja2 >=3.1.6,<4.0.0",
|
||||||
uvicorn = "^0.30"
|
"fastapi >=0.117.1,<0.118.0",
|
||||||
tortoise-orm = "^0.20"
|
"tortoise-orm >=0.25.1,<0.26.0",
|
||||||
aerich = "^0.7"
|
"aerich >=0.9.1,<0.10.0",
|
||||||
|
"uvicorn >=0.36.0,<0.37.0",
|
||||||
|
"ipython >=9.5.0,<10.0.0",
|
||||||
|
"passlib >=1.7.4,<2.0.0",
|
||||||
|
"pyjwt >=2.10.1,<3.0.0",
|
||||||
|
"python-multipart >=0.0.20,<0.0.21",
|
||||||
|
"crypto >=1.4.1,<2.0.0",
|
||||||
|
"argon2-cffi >=25.1.0,<26.0.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.poetry.group.dev.dependencies]
|
||||||
|
ipython = ">=9.5.0,<10.0.0"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
auth = ["passlib", "pyjwt", "crypto", "argon2-cffi", "python-multipart"]
|
||||||
|
|
||||||
|
[tool.poetry]
|
||||||
|
package-mode = false
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
{{ project_name }} = "ohmyapi.cli:app"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue