Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ docs/ # setup, authentication, api, schemas, releasing, known_issue
* **Dependencies**: `poetry add <pkg>` (dev tools: `--group dev`), then `poetry install`.
Ranges in `pyproject.toml` are open to the next major; `poetry.lock` is the pin.
Update with `poetry update` (or `poetry lock --regenerate` for every transitive
package) and run the suite. SQLAlchemy is held below 2.1 until it ships wheels.
package) and run the suite.
* **Test database**: `createdb basic_api_test_db` and the `DB_*` variables
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ notes (see [docs/releasing.md](docs/releasing.md)).
pycparser from the dependency tree; HS256 needs none of them (#9).

### Dependencies
- SQLAlchemy 2.0.54 to 2.1.4, declared as `sqlalchemy[asyncio]` because 2.1
installs greenlet, which the asyncio extension needs, only through that
extra. 2.1 ships a Python 3.15 wheel, so the Cython speedups are back on
3.15. Of the 2.1 behaviour changes, none reaches this code: the database
URL names `asyncpg` explicitly (2.1 defaults `postgresql://` to psycopg 3),
there are no PostgreSQL named types, and autoflush now also runs before
Core statements such as the health check's `SELECT 1`, which never has
pending changes. The suite passes with every SQLAlchemy warning as an error.
SQLModel 0.0.48 added 2.1 support (#21).
- Refresh before the move to Python 3.15: pydantic 2.13.5 to 2.14.1 with
pydantic-core 2.50.1, the first release with Python 3.15 wheels; FastAPI
0.142.2 to 0.143.1; Starlette 1.7.0 to 1.8.0; Black 26.10.0 to 26.10.1 and
Expand Down
14 changes: 0 additions & 14 deletions docs/known_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,20 +252,6 @@ healthy service with its database down.

## Dependencies

### SQLAlchemy 2.0 runs without its C extensions on Python 3.15

**Where:** `pyproject.toml` (`sqlalchemy (>=2.0.54,<2.1)`).

SQLAlchemy 2.0.x publishes compiled wheels up to Python 3.14 only, so on 3.15
pip installs the pure Python wheel and the Cython speedups (row processing,
result collections) are replaced by their Python implementations. Everything
works and the suite passes; result processing is slower than on 3.14 with the
compiled wheel. SQLAlchemy 2.1.x ships Python 3.15 wheels.

**Fix:** move to SQLAlchemy 2.1 (a new minor with behaviour changes, read its
migration notes first; SQLModel 0.0.48 allows `<2.2`) and drop the `<2.1`
constraint in `pyproject.toml`.

### slowapi calls an asyncio API removed in Python 3.16

**Where:** `slowapi/extension.py` (version 0.1.10), surfaced by `pytest.ini`.
Expand Down
Loading
Loading