wrolpi/requirements.txt
Roland e58f7e2ef1
Upgrade to SQLAlchemy 2.0 (synchronous)
SQLAlchemy 1.3 has been end-of-life since 2021, and alembic was held at 1.10
because newer releases need SQLAlchemy 2.  This is a mechanical port; the code
stays synchronous.

- SQLAlchemy[asyncio]==2.0.54, alembic==1.20.0.
- Model annotations use Mapped[...] (2.0 rejects bare annotations on mapped
  attributes); declarative_base moves to sqlalchemy.orm.
- Plain SQL strings go through text() or exec_driver_sql; schema_ddl.execute_sql
  accepts a SQLAlchemy Connection or a raw sqlite3 connection, so rebuild_fts
  works from the baseline migration again.
- Session.get replaces Query.get; session.in_transaction() replaces
  session.transaction; cache_ok on MediaPathType and FancyJSON.
- The tag-directory sync query joins through TagFile's relationships instead of
  the legacy two-entity outerjoin.
- Section-hint rows use attribute access (2.0 rows are tuples).
- Migrations run on an AUTOCOMMIT connection, matching 1.3, where each
  statement committed on its own.  2.0 autobegins, so the unique-stem
  migration's read snapshot could not become a writer after its helpers wrote
  on another connection ("database is locked").  The begin listener emits no
  BEGIN for AUTOCOMMIT connections.
- Newer alembic compares column types: WrolpiKV now describes the TEXT table
  its migration created.
- The test database installs its DDL inside engine.begin(); 2.0 connections
  no longer autocommit, so the FTS tables were rolled back.
- Dependabot now holds SQLAlchemy at 2.0 instead of 1.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 13:31:52 -06:00

41 lines
990 B
Text

Pillow==12.3.0
PyYAML==6.0.3
SQLAlchemy[asyncio]==2.0.54
aiohttp==3.14.3
alembic==1.20.0
beautifulsoup4==4.15.0
cachetools==7.2.0
cryptography==50.0.2
ebooklib==0.20
feedparser==6.0.14
jc==1.26.0
libzim==3.13.0
mock==5.2.0
psutil==7.2.2
pydantic>=2.0.0
PyMuPDF>=1.28.2
pytest-asyncio==1.4.0
# pytest.ini sets `timeout = 30` and asks that it not be removed, but this was never declared
# here -- so on any machine without it, and in CI, which installs only this file, the option was
# unknown and the timeout never applied. A hung test then runs until the CI job itself is
# killed, with no indication of which test hung.
pytest-timeout==2.4.0
pytest-xdist==3.8.0
pytest==9.1.1
py7zr>=1.1.3
python-docx==1.2.0
python-dotenv==1.2.3
python-magic~=0.4.27
pytz==2026.4
rarfile>=4.5
sanic-ext==25.12.0
sanic-testing==24.6.0
sanic==25.12.1
secretstorage==3.5.0
selenium==4.49.0
srt==3.5.3
tqdm==4.70.1
vininfo[cli]==1.11.0
webvtt-py==0.5.1
yt-dlp[default,curl-cffi]>=2026.08.19
yt-dlp-ejs>=0.8.0