Migration 0003: projects, aliases, renumbers, units, packets and every child table, change orders, assets, documents, ITPs, station limits, department weld flag. Policy package: Principal, PacketState, Action rules, custody, preconditions, CO hold, order of checks, can/blocked/holder on reads. docs/POLICY.md with the tightenings table for Seth. Write pipeline: FOR UPDATE, CAS on status and dept, If-Match row versions, server-assigned numbers, field CAS, version bump, packet log, audit, NOTIFY, signatures, IT reasons, filed lock and HMAC seal. API: /api/packets (header, transitions, work orders, pages, docs, move, remove, BOM, shorts, welds, heat tags, heat table, stage, checklist, clock, warehouse stage, Q.C., change orders, log, seal), /api/projects, /api/units, /api/assets, /_blob. Frontend: Clerical home, projects and units, packet page with pdf.js and QR codes, hand draft, heat map, send to warehouse, department or Q.C. Tests: policy matrix, API, concurrency, schema, projects; Playwright Clerical draft scenario. Verified on docker-1 with the CI stack and the Samba DC. Co-Authored-By: Claude Fable 5.1 <[email protected]>
66 lines
1.7 KiB
TOML
66 lines
1.7 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.0",
|
|
"python-multipart==0.0.32",
|
|
"visualkit==0.3.0",
|
|
"mfileskit==0.1.2",
|
|
]
|
|
|
|
[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
|