Files
romm/pyproject.toml
Sam Dornan 3491bc8f46 chore(deps): upgrade rq to 2.12 (#4428)
RomM runs `rq cron` as a long-lived process, and 2.12 fixes the case
that process is most exposed to: CronScheduler.heartbeat() now re-creates
its Redis hash when the key has expired, so a scheduler whose host slept
past the 120s TTL comes back registered instead of running unlisted. The
TTL itself moves to DEFAULT_CRON_SCHEDULER_TTL, shared with the registry
cleanup threshold that prunes it, so the two can no longer drift apart.

2.12 also adds a CronJobRegistry, which makes a cron job's history
readable without an active scheduler. Nothing reads it yet; the task
endpoints report queue and job state, not cron history.

The one API removed, CronScheduler.save_jobs_data(), is internal to the
scheduler loop and is not called here. cron_config.py only calls
cron.register().

The constraint stays under 3.0 for the reasons the 2.11 bump recorded:
that release moves get_current_job() to contextvars, reworks dependency
handling behind a ReadyJobRegistry, and changes the
Worker.handle_job_success() signature, which RomMWorker subclasses around.


Claude-Session: https://claude.ai/code/session_01EXV6RTfrRjgH88P9CrtYPQ

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 18:03:19 -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.12",
"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"]