chore(deps): bump to latest verified set, drop py3.9, prune unused deps - #68
Merged
Conversation
- fastapi 0.115.2 -> 0.141.1, httpx 0.27 -> 0.28, pydantic 2.8.2 -> 2.13.4 (upper bounds pydantic<=2.8.2 / pydantic-settings<=2.4.0 lifted), huggingface_hub 0.26 -> 1.27, fastapi-utils 0.7 -> 0.8, pytest 8 -> 9, tenacity 8 -> 9, portalocker 3 -> 4, peewee 3.17 -> 3.19 (stay on 3.x), GitPython/PyYAML/jinja2/python-multipart to latest. - Drop unused deps: cachetools, aiofiles, numpy (zero references in src+tests). - Add missing deps: brotli (used by zip_utils), peewee (used by database), pytest-asyncio (used by tests). - requires-python >=3.10 (core deps require it; py3.9 EOL Oct 2025); CI matrix 3.9-3.12 -> 3.10-3.13. - database/models.py: create ~/.olah before db.connect() so importing the module on a fresh machine no longer crashes. Verified: full offline suite (130 passed) on two fresh venvs with the new pinned set; the only failure is the pre-existing unrelated test_server_layers one, which also fails on old deps. Co-Authored-By: Claude <noreply@anthropic.com>
jstzwj
added a commit
that referenced
this pull request
Aug 14, 2026
…ps (#68) - fastapi 0.115.2 -> 0.141.1, httpx 0.27 -> 0.28, pydantic 2.8.2 -> 2.13.4 (upper bounds pydantic<=2.8.2 / pydantic-settings<=2.4.0 lifted), huggingface_hub 0.26 -> 1.27, fastapi-utils 0.7 -> 0.8, pytest 8 -> 9, tenacity 8 -> 9, portalocker 3 -> 4, peewee 3.17 -> 3.19 (stay on 3.x), GitPython/PyYAML/jinja2/python-multipart to latest. - Drop unused deps: cachetools, aiofiles, numpy (zero references in src+tests). - Add missing deps: brotli (used by zip_utils), peewee (used by database), pytest-asyncio (used by tests). - requires-python >=3.10 (core deps require it; py3.9 EOL Oct 2025); CI matrix 3.9-3.12 -> 3.10-3.13. - database/models.py: create ~/.olah before db.connect() so importing the module on a fresh machine no longer crashes. Verified: full offline suite (130 passed) on two fresh venvs with the new pinned set; the only failure is the pre-existing unrelated test_server_layers one, which also fails on old deps.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refreshes the dependency set, closing the gap left by the five stale Dependabot PRs (#23, #27, #28, #29, #30 — all closed as already-satisfied).
Version bumps (all verified against the full offline test suite)
<=2.8.2lifted)<=2.4.0lifted)huggingface_hub.constantsimports intact)Dependency hygiene
cachetools,aiofiles,numpy— zero references anywhere insrc/+tests/.brotli(used byzip_utils, was missing from requirements.txt),peewee(used byolah.database, was missing from pyproject),pytest-asyncio(used by tests, listed nowhere).Python floor: 3.9 → 3.10
The new core versions (fastapi 0.141, huggingface_hub 1.x, pytest 9, tenacity 9, portalocker 4, pydantic-settings 2.15) all require Python ≥3.10; 3.9 went EOL Oct 2025. Docker images / conda env / release workflow already use 3.12, so the only change is
requires-pythonand the CI matrix (now 3.10–3.13).Drive-by fix
database/models.pycalleddb.connect()at import time without creating~/.olah, so importing the module on a fresh machine crashed withpeewee.OperationalError: unable to open database file. Now the parent dir is created first.Testing
test_server_layersone, which fails identically on the old dependency set.huggingface_hub.constantsall import cleanly on hf_hub 1.27.pip install -e .+pip install -r requirements.txtresolve cleanly from scratch.