foxnouns/pyproject.toml

74 lines
1.8 KiB
TOML
Raw Permalink Normal View History

2024-03-13 17:03:18 +01:00
[tool.poetry]
name = "foxnouns"
version = "0.1.0"
description = ""
authors = ["sam <sam@sleepycat.moe>"]
2024-04-18 16:46:35 +02:00
license = "AGPL-3.0-only"
2024-03-13 17:03:18 +01:00
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
sqlalchemy = { extras = ["asyncio"], version = "^2.0.28" }
psycopg = "^3.1.18"
celery = { extras = ["redis"], version = "^5.3.6" }
quart = "^0.19.4"
2024-03-22 17:11:18 +01:00
# Temporary until a release containing this commit is made:
# https://github.com/pgjones/quart-schema/commit/9f4455a1363c6edd2b23b898c554e52a9ce6d00f
quart-schema = { git = "https://github.com/pgjones/quart-schema.git" }
# quart-schema = { extras = ["pydantic"], version = "^0.19.1" }
2024-03-13 17:03:18 +01:00
pydantic = "^2.6.3"
itsdangerous = "^2.1.2"
uvicorn = "^0.28.0"
asyncpg = "^0.29.0"
environs = "^11.0.0"
alembic = "^1.13.1"
2024-03-25 19:20:23 +01:00
quart-cors = "^0.7.0"
2024-03-29 16:53:34 +01:00
minio = "^7.2.5"
pyvips = "^2.2.2"
redis = "^5.0.3"
2024-04-10 20:25:28 +02:00
authlib = "^1.3.0"
httpx = "^0.27.0"
2024-03-13 17:03:18 +01:00
2024-03-23 01:39:08 +01:00
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.4"
2024-03-13 17:03:18 +01:00
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.0.2"
pytest-asyncio = "^0.23.5.post1"
2024-03-23 01:39:08 +01:00
[tool.poe.tasks.dev]
help = "Run a development server with auto-reload"
cmd = "env QUART_APP=foxnouns.app:app quart --debug run --reload"
2024-03-29 16:53:34 +01:00
[tool.poe.tasks.celery]
help = "Run a Celery task worker"
cmd = "celery -A foxnouns.tasks worker"
2024-03-23 01:39:08 +01:00
[tool.poe.tasks.server]
help = "Run a production server"
cmd = "uvicorn 'foxnouns.app:app'"
[tool.poe.tasks.migrate]
help = "Migrate the database to the latest revision"
cmd = "alembic upgrade head"
2024-03-14 02:35:42 +01:00
[tool.poe.tasks]
test = "pytest"
2024-03-23 01:39:08 +01:00
lint = "ruff check"
format = "ruff format"
2024-03-26 19:49:30 +01:00
"check-imports" = "ruff check --select I"
"sort-imports" = "ruff check --select I --fix"
2024-03-13 17:03:18 +01:00
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
2024-03-14 02:35:42 +01:00
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"