♻️Refactor settings.py.j2 to new project syntax

This commit is contained in:
Brian Wiborg 2025-09-27 12:29:45 +02:00
parent 7cf7d6ccfc
commit 3958c51213
No known key found for this signature in database

View file

@ -1,13 +1,37 @@
[tool.poetry]
[project]
name = "{{ project_name }}"
version = "0.1.0"
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]
python = "^3.10"
fastapi = "^0.115"
uvicorn = "^0.30"
tortoise-orm = "^0.20"
aerich = "^0.7"
dependencies = [
"typer >=0.19.1,<0.20.0",
"jinja2 >=3.1.6,<4.0.0",
"fastapi >=0.117.1,<0.118.0",
"tortoise-orm >=0.25.1,<0.26.0",
"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"