Files
duty-teller/pyproject.toml
Nikolay Tatarinov ec58739852 Refactor Alembic configuration and update Docker setup
- Removed the `alembic.ini` file and migrated its configuration to `pyproject.toml` under `[tool.alembic]`, enhancing project organization.
- Updated the `Dockerfile` to copy `pyproject.toml` instead of `alembic.ini`, ensuring the new configuration is utilized during the build process.
- Modified `entrypoint.sh` to use the new Alembic configuration from `pyproject.toml` for database migrations.
- Updated README documentation to reflect the new Alembic configuration and usage instructions.
2026-02-18 13:06:57 +03:00

47 lines
1012 B
TOML

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "duty-teller"
version = "0.1.0"
description = "Telegram bot for team duty shift calendar and group reminder"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"python-telegram-bot[job-queue]>=22.0,<23.0",
"python-dotenv>=1.0,<2.0",
"fastapi>=0.115,<1.0",
"uvicorn[standard]>=0.32,<1.0",
"sqlalchemy>=2.0,<3.0",
"alembic>=1.14,<2.0",
"pydantic>=2.0,<3.0",
"icalendar>=5.0,<6.0",
]
[project.scripts]
duty-teller = "duty_teller.run:main"
[project.optional-dependencies]
dev = [
"pytest>=8.0,<9.0",
"pytest-asyncio>=0.24,<1.0",
"httpx>=0.27,<1.0",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["duty_teller*"]
[tool.alembic]
script_location = "alembic"
prepend_sys_path = "."
version_path_separator = "os"
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.pylint.messages_control]
disable = ["C0114", "C0115", "C0116"]