-
-
Notifications
You must be signed in to change notification settings - Fork 318
chore: use uv instead of poetry #1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+1,418
−90
Conversation
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
Pull Request Test Coverage Report for Build 16652773972Details
💛 - Coveralls |
grdsdev
approved these changes
Jul 30, 2025
mandarini
approved these changes
Jul 30, 2025
silentworks
reviewed
Jul 30, 2025
silentworks
reviewed
Jul 30, 2025
this way we only have one way to run tests, and their dependencies are managed by uv itself.
silentworks
reviewed
Jul 31, 2025
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.
What kind of change does this PR introduce?
Use
uv
instead ofpoetry
for python package management. This is in preparation for the coming switch to the monorepo style leveraginguv
's workspace capabilities. In order to useuv
workspaces, we must first ensure thatsupabase-py
itself is working smoothly withuv
.The changes are comprised of:
pyproject.toml
to use generic keywords (project
,scripts
) instead ofpoetry
specific ones (tool.poetry
). Most python package managers should be able to parse this information, thoughpoetry
has not implemented PEP735 compliance as of now (Support PEP 735 – Dependency Groups in pyproject.toml python-poetry/poetry#9751).poetry_scripts.py
tocli_scripts.py
, and useuv
instead ofpoetry
to run the tests. Note thatuv run
runs the modules inside the correct environment, so no need for extra install steps.uv
in the CI, both to run the tests, but also to build the package when publishing. This also motivated the change from thepoetry_core
build backend touv_build
.What is the current behavior?
poetry
is used to define the python dependencies, and to manage CI tests, and package publishing.What is the new behavior?
uv
used instead.