Files
romm/pyproject.toml
Sam Dornan 3c547dfbd0 chore(python): move the backend to Python 3.14
Bumps the runtime everywhere it is pinned: requires-python, the
.python-version uv reads, both Dockerfiles (with the python:3.14-alpine3.23
and uv 3.14 image digests), the six workflows that install Python, and the
contributor docs.

Several locked C-extension versions had no cp314 wheels, so the Alpine
image fell back to building them from source and failed on the missing
C++ and Rust toolchains. Those packages are upgraded within their existing
pyproject ranges: pydantic 2.11.7 -> 2.13.5 (pydantic-core 2.46.5), uvloop
0.22.1, grpcio 1.83.1, httptools 0.8.0, inflate64 1.0.4, markupsafe 3.0.3,
pyyaml 6.0.3 and streaming-form-data 1.20.0. The lockfile also drops the
3.13-only resolution branches.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-05 08:57:10 -05:00

147 lines
3.5 KiB
TOML

[project]
name = "romm"
version = "0.0.1"
description = "A beautiful, powerful, self-hosted rom manager"
authors = [
{ name = "Zurdi", email = "zurdi@romm.app" },
{ name = "Arcane", email = "arcane@romm.app" },
{ name = "Adamantike", email = "adamantike@romm.app" },
]
requires-python = ">=3.14"
readme = "README.md"
license = "AGPL-3.0-only"
dependencies = [
"PyYAML ~= 6.0",
"SQLAlchemy[mariadb-connector,mysql-connector,postgresql-psycopg] ~= 2.0",
"Unidecode ~= 1.3",
"aiohttp ~= 3.14",
"asyncssh ~= 2.23",
"alembic ~= 1.16",
"anyio ~= 4.4",
"authlib ~= 1.6.12",
"colorama ~= 0.4",
"cryptography>=49,<51",
"defusedxml ~= 0.7",
"fastapi-pagination[sqlalchemy] ~= 0.15",
"fastapi[standard-no-fastapi-cloud-cli] ~= 0.134.0",
"gunicorn ~= 26.0",
"httpx ~= 0.27",
"itsdangerous ~= 2.2",
"joserfc~=1.6.8",
"mutagen ~= 1.47",
"opentelemetry-distro ~= 0.56",
"opentelemetry-exporter-otlp ~= 1.36",
"opentelemetry-instrumentation-aiohttp-client ~= 0.56",
"opentelemetry-instrumentation-fastapi ~= 0.56",
"opentelemetry-instrumentation-httpx ~= 0.56",
"opentelemetry-instrumentation-redis ~= 0.56",
"opentelemetry-instrumentation-sqlalchemy ~= 0.56",
"passlib[bcrypt] ~= 1.7",
# passlib 1.7 self-checks bcrypt with a >72-byte secret; bcrypt 5+ rejects that.
"bcrypt < 5",
"pillow~=12.3",
"psycopg[c] ~= 3.2",
"pydantic ~= 2.11",
"pydash ~= 8.0",
"python-dotenv ~= 1.2",
"python-magic ~= 0.4",
"python-socketio ~= 5.16",
"redis ~= 6.2",
"rq ~= 2.11",
"sentry-sdk ~= 2.32",
"starlette ~= 1.6.0",
"streaming-form-data ~= 1.19",
"ua-parser ~= 1.0",
"strsimpy ~= 0.2",
"uvicorn ~= 0.35",
"uvicorn-worker ~= 0.3",
"watchfiles ~= 1.1",
"yarl ~= 1.14",
"zipfile-inflate64 ~= 0.1",
"zstandard ~= 0.25",
]
[project.optional-dependencies]
dev = [
"ipdb ~= 0.13",
"ipykernel ~= 6.29",
"memray ~= 1.15",
"mypy ~= 1.19",
"pyinstrument ~= 5.0",
"types-colorama ~= 0.4",
"types-passlib ~= 1.7",
"types-pyyaml ~= 6.0",
"types-redis ~= 4.6",
]
test = [
"fakeredis ~= 2.21",
"hypothesis ~= 6.0",
"pytest ~= 9.0",
"pytest-asyncio ~= 1.1",
"pytest-cov ~= 6.2",
"pytest-env ~= 1.1",
"pytest-mock ~= 3.12",
"pytest-recording ~= 0.13",
"pytest-xdist ~= 3.6",
]
[project.urls]
Homepage = "https://romm.app/"
Source = "https://github.com/rommapp/romm"
[tool.deptry]
known_first_party = [
"__version__",
"adapters",
"config",
"decorators",
"endpoints",
"exceptions",
"handler",
"logger",
"main",
"models",
"startup",
"tasks",
"utils",
]
pep621_dev_dependency_groups = ["dev"]
[tool.deptry.package_module_name_map]
PyYAML = "yaml"
opentelemetry-distro = "opentelemetry"
pillow = "PIL"
python-dotenv = "dotenv"
python-magic = "magic"
python-socketio = "socketio"
[tool.deptry.per_rule_ignores]
DEP002 = [ # DEP002 rule: Project should not contain unused dependencies
# Packages used within the server initialization script.
"gunicorn",
"uvicorn-worker",
"watchfiles",
# OpenTelemetry packages are used via auto-instrumentation.
"opentelemetry-exporter-otlp",
"opentelemetry-instrumentation-aiohttp-client",
"opentelemetry-instrumentation-fastapi",
"opentelemetry-instrumentation-httpx",
"opentelemetry-instrumentation-redis",
"opentelemetry-instrumentation-sqlalchemy",
# Database drivers are used via SQLAlchemy.
"psycopg",
# Pytest plugins are used via pytest only.
"pytest-cov",
"pytest-env",
"pytest-mock",
"pytest-recording",
"pytest-xdist",
]
[tool.uv]
package = false
exclude-newer = "7 days"
[tool.ty.environment]
root = ["./backend"]