# Every entry is permissive — the CI license gate (scripts/license_gate.py) denies GPL/AGPL/SSPL.

# ── The shared core ───────────────────────────────────────────────────────────
# dredd-core carries the family's identity + org-tree models, auth, authz, audit, errors, security
# helpers and the enum-type creator. It is a real dependency, not copied source: `import dredd_core`
# is what puts the shared tables on `Base.metadata`, and the app-side modules that keep the old
# filenames are thin re-export shims over it.
#
# Pinned by TAG, never a branch — a moving ref would change this app's schema between two otherwise
# identical `pip install` runs. To move to a newer core: bump the tag, run the tests, and add a NEW
# alembic revision for whatever tables or columns the bump brings (never edit 0001).
#
# From v0.10.0 core also carries what lets this app be a MODULE of the platform rather than its own
# island: the shared identity tables and `own_tables`, the column and table grant tiers a module is
# held to, the boot assertion and merge helpers (`identity_schema`), the two `AuthPolicy` flags that
# turn "this module may not write accounts" into a clean 409 instead of a Postgres permission error
# dressed up as a 500, and the tiers (`moderation`, `authz.bind_moderation`). v0.11.0 then turned the
# moderator roster into `module_permission` — one row per person per module, carrying a `role`, and
# **no row meaning no access to that module at all** — which is what `deps.get_current_user` asks
# with `assert_may_use`. Every one of those defaults to the previous behaviour, so a STANDALONE app —
# its own database, its own people, no hub — is unchanged by them: core answers `"user"` for
# everybody there and emits no SQL. The platform shape is switched on by IDENTITY_SCHEMA and by
# nothing else.
#
# The repo is PRIVATE, so pip needs credentials to fetch it:
#   local — a read-only Gitea access token in your git credential helper (or an SSH `insteadOf` rewrite)
#   CI    — the Haski org secret DREDD_CORE_TOKEN; see the workflow-level `env:` in .github/workflows/
#
# Panorama needs 0.23.0: `dredd_core.stats_contract` (the tiles) and the event log's reader tier.
dredd-core @ git+http://77.216.148.202:3000/Haski/dredd-core.git@v0.23.0

# Web framework
fastapi==0.115.6
uvicorn[standard]==0.34.0
python-multipart==0.0.20      # multipart/form-data uploads (Apache-2.0)

# Validation / settings
pydantic==2.10.4
pydantic-settings==2.7.1
# email validation is done in-app via a regex validator (schemas.Email) — no email-validator dependency

# DB / ORM / migrations
SQLAlchemy==2.0.50
alembic==1.14.0
pg8000==1.31.2                # pure-Python PostgreSQL driver, BSD-3-Clause (no LGPL, no libpq)

# Auth
argon2-cffi==23.1.0           # Argon2id password hashing (MIT). dredd-core depends on it too, so
                              # this is now a re-pin rather than the only source — kept explicit so
                              # the version is visible here and the license gate sees it named.

# Outbound HTTP — the ONE client, used only from app/integrations/.
httpx==0.28.1                 # BSD-3-Clause

# OpenTelemetry (OTLP → OTel Collector) — optional, import-guarded in observability.py
opentelemetry-sdk==1.42.1
opentelemetry-exporter-otlp-proto-grpc==1.42.1
opentelemetry-instrumentation-fastapi==0.63b1
opentelemetry-instrumentation-sqlalchemy==0.63b1
