Replace rye with uv for environment management and relax requires-python to >=3.8#61
Open
urasakikeisuke wants to merge 2 commits intomainfrom
Open
Replace rye with uv for environment management and relax requires-python to >=3.8#61urasakikeisuke wants to merge 2 commits intomainfrom
urasakikeisuke wants to merge 2 commits intomainfrom
Conversation
- Remove [tool.rye] and [tool.rye.scripts] from pyproject.toml - Migrate dev-dependencies to [dependency-groups].dev (PEP 735) - Remove [project.optional-dependencies].dev (consolidated into dev group) - Relax hatchling build requirement from ==1.26.3 pin to >=1.27 (rye workaround no longer needed) - Replace requirements.lock / requirements-dev.lock with uv.lock - Update CI to use astral-sh/setup-uv@v3 instead of eifinger/setup-rye@v2 - Update README contributing section to use uv commands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The 3.8.2 lower bound was overly specific and caused dependency resolution failures in tools like pdm. No features depend on any patch release above 3.8.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.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
[tool.rye]and[tool.rye.scripts]frompyproject.toml; migrate dev dependencies to[dependency-groups].dev(PEP 735)requirements.lock/requirements-dev.lockwith a singleuv.lockastral-sh/setup-uv@v3instead ofeifinger/setup-rye@v2==1.26.3(rye-specific workaround) to>=1.27uvcommandsrequires-pythonfrom>= 3.8.2to>= 3.8to fix compatibility with pdm and similar resolvers (fixes Required-python Issue #60)Motivation
rye officially recommends migrating to uv (Astral). uv covers Python interpreter management, virtual environment creation, locking, and execution in a single binary, with significantly faster resolution.
Test plan
lintandtestworkflowsMigration notes for contributors
Replace
rye syncwithuv sync --devandrye run <cmd>withuv run <cmd>. The oldrequirements.lock/requirements-dev.lockfiles are superseded byuv.lock.