Files
PacketStation/pyproject.toml
T
spencermandClaude Opus 5.5 a82e056b6a
ci / frontend (pull_request) Successful in 1m11s
ci / server (pull_request) Successful in 12m2s
ci / image (pull_request) Skipped
ci / e2e (pull_request) Successful in 6m1s
Phase 9: Admin completion, reconcile, notifications, integrity, backups
Admin: Departments (name and stations; add shows the three groups IT must
create), Profiles (welder stamp, station limits, active) with a CSV import
that previews and applies only when clean, Checklists (weld and plain),
Security (session, lockout and rate-limit settings with bounds, alerts for
the last 24 hours, the integrity result), Access log with filters and a
guarded CSV, Who is in, Stamp check, Notifications, and the employeeID
flags. Every Admin change is audited.

Worker: ad-reconcile (nightly and on "refresh from AD now"), session-refresh
(15 minutes), integrity (seals, asset hashes, missing and orphan files, the
audit chain), backup-check, notify-send and notify-digest. Notifications
route per event type to AD groups, users, mailboxes or the department
Supervisor group, immediately or in a daily digest, over STARTTLS verified
against the PESCO CA, with dry run on the test stack.

Backups: scripts/backup/ps-backup.sh and ps-restore.sh with a systemd timer
at 02:00 America/Denver. Restore rehearsed on the test stack 2026-10-21.
CI: pip-audit and npm audit. pypdf 6.21.1 and certifi 2026.10.19.

Migration 0010. Closes the app part of I6, M3, O1, O2 and S3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 18:27:09 -06:00

70 lines
1.8 KiB
TOML

[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "packetstation"
dynamic = ["version"]
description = "Packet Station: PESCO shop packet tracking (server)"
requires-python = ">=3.12"
license = { text = "Proprietary - PESCO internal use" }
authors = [{ name = "Spencer McGuire", email = "[email protected]" }]
classifiers = ["Private :: Do Not Upload", "Programming Language :: Python :: 3"]
# Exact pins live in server/requirements.txt (public PyPI) and server/requirements-pesco.txt (Gitea).
dependencies = [
"fastapi>=0.143",
"uvicorn[standard]>=0.54",
"psycopg[binary,pool]>=3.3,<4",
"pydantic>=2.14",
"pydantic-settings>=2.16",
"ldap3>=2.9.1",
"argon2-cffi>=25.1",
"apscheduler>=3.11,<4",
"httpx>=0.28",
"tzdata>=2026.5",
"pypdf==6.21.1",
"python-multipart==0.0.32",
"pypdfium2==5.14.0",
"openpyxl==3.1.5",
"reportlab==5.0.1",
"pillow==13.0.0",
"visualkit==0.3.0",
"mfileskit==0.1.3",
]
[project.optional-dependencies]
dev = ["pytest>=9.1", "anyio>=4.15", "ruff>=0.17", "mypy>=2.4"]
[project.scripts]
packetstation = "packetstation.cli:main"
[tool.hatch.version]
path = "server/packetstation/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["server/packetstation"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["server", "tests"]
extend-exclude = ["frontend", ".venv"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "S", "RUF"]
ignore = ["S101", "S104", "S603", "S607", "RUF001"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S105", "S106", "S108", "S311"]
[tool.mypy]
python_version = "3.12"
files = ["server/packetstation"]
ignore_missing_imports = true
warn_unused_ignores = true
check_untyped_defs = true