- Updated `.dockerignore` to exclude test and development artifacts, optimizing the Docker image size. - Refactored `main.py` to delegate execution to `duty_teller.run.main()`, simplifying the entry point. - Introduced a new `duty_teller` package to encapsulate core functionality, improving modularity and organization. - Enhanced `pyproject.toml` to define a script for running the application, streamlining the execution process. - Updated README documentation to reflect changes in project structure and usage instructions. - Improved Alembic environment configuration to utilize the new package structure for database migrations.
42 lines
915 B
TOML
42 lines
915 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.black]
|
|
line-length = 120
|
|
target-version = ["py311"]
|
|
|
|
[tool.pylint.messages_control]
|
|
disable = ["C0114", "C0115", "C0116"]
|