chore: migrate from requirements.txt to uv with pyproject.toml#89
Merged
chore: migrate from requirements.txt to uv with pyproject.toml#89
Conversation
Replace flat requirements.txt with structured pyproject.toml using hatchling backend. Separate dependencies into runtime, dev (dependency group), docs and tools (pip-compatible extras). Pin albumentations <2.0 (archived, 2.x has breaking changes), numpy <2.3 and scipy <1.16 (3.10 compat). Bump minimum Python from 3.7 to 3.10. - Remove cffi (transitive dep of lmdb) and dataclasses (builtin) - Add rich (was missing, used by tools/check_fonts.py) - Rewrite tools/prepare_effect_layout_example.py to drop pandas/tabulate - Update CI to use astral-sh/setup-uv@v7 and actions/checkout@v5 - Move black/isort/pytest/mypy configs into pyproject.toml - Delete update.sh (maintainer helper, trivial to run manually) Signed-off-by: Bvicii <yizhanhuang2002@gmail.com>
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
requirements.txtwith structuredpyproject.toml(hatchling backend)[dependency-groups]), docs and tools ([project.optional-dependencies])albumentations>=1.3.0,<2.0(archived, 2.x has breaking API changes),numpy<2.3andscipy<1.16(Python 3.10 compat)cffi(transitive),dataclasses(builtin),pandas/tabulate(rewritten out)rich(was missing, used bytools/check_fonts.py)tools/prepare_effect_layout_example.pyto use stdlib instead of pandasastral-sh/setup-uv@v7,actions/checkout@v5,uv sync --lockedpyproject.tomlupdate.shandrequirements.txtTest plan
uv sync --locked --all-extrasinstalls without errorsuv run pytest— all 4 tests passpytestworkflow passespagesworkflow passes (only triggers on merge to master)🤖 Generated with Claude Code