Setup.py now asks whether to pull pre-built images from GHCR (recommended) or build from source. Pre-built mode skips the 15-minute compile step entirely. - Add .github/workflows/release.yml (builds+pushes 4 images on tag) - Add docker-compose.build.yml (source-build overlay) - Switch docker-compose.prod.yml from build: to image: refs - Add --build-mode CLI arg and wizard step to setup.py - Bump version to 9.8.1 across all files - Document TOD_VERSION env var in CONFIGURATION.md Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
71 lines
1.7 KiB
TOML
71 lines
1.7 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "the-other-dude-backend"
|
|
version = "9.8.1"
|
|
description = "MikroTik Fleet Management Portal - Backend API"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"fastapi[standard]>=0.115.0",
|
|
"sqlalchemy[asyncio]>=2.0.0",
|
|
"asyncpg>=0.30.0",
|
|
"alembic>=1.14.0",
|
|
"pydantic>=2.0.0",
|
|
"pydantic-settings>=2.0.0",
|
|
"python-jose[cryptography]>=3.3.0",
|
|
"bcrypt>=4.0.0,<5.0.0",
|
|
"redis>=5.0.0",
|
|
"nats-py>=2.7.0",
|
|
"cryptography>=42.0.0",
|
|
"python-multipart>=0.0.9",
|
|
"httpx>=0.27.0",
|
|
"asyncssh>=2.20.0",
|
|
"pygit2>=1.14.0",
|
|
"apscheduler>=3.10.0,<4.0",
|
|
"aiosmtplib>=3.0.0",
|
|
"structlog>=25.1.0",
|
|
"slowapi>=0.1.9",
|
|
"jinja2>=3.1.6",
|
|
"prometheus-fastapi-instrumentator>=7.0.0",
|
|
"gunicorn>=23.0.0",
|
|
"sse-starlette>=2.0.0",
|
|
"weasyprint>=62.0",
|
|
"srptools==1.0.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.25,<1.0",
|
|
"pytest-mock>=3.14",
|
|
"httpx>=0.27.0",
|
|
"pytest-cov>=5.0.0",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
testpaths = ["tests"]
|
|
markers = [
|
|
"integration: marks tests as integration tests requiring PostgreSQL (deselect with '-m \"not integration\"')",
|
|
]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W"]
|
|
ignore = [
|
|
"F821", # SQLAlchemy uses forward-reference strings in relationships
|
|
"E501", # Line too long — pre-existing in migrations and SQL strings
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"alembic/versions/*.py" = ["E402"] # Alembic puts revision vars before imports
|