Skip to content

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 13 commits into from
Jul 31, 2025
Merged

chore: use uv instead of poetry #1186

merged 13 commits into from
Jul 31, 2025

Conversation

o-santi
Copy link
Contributor

@o-santi o-santi commented Jul 30, 2025

What kind of change does this PR introduce?

Use uv instead of poetry for python package management. This is in preparation for the coming switch to the monorepo style leveraging uv's workspace capabilities. In order to use uv workspaces, we must first ensure that supabase-py itself is working smoothly with uv.

The changes are comprised of:

  1. Change pyproject.toml to use generic keywords (project, scripts) instead of poetry specific ones (tool.poetry). Most python package managers should be able to parse this information, though poetry has not implemented PEP735 compliance as of now (Support PEP 735 – Dependency Groups in pyproject.toml python-poetry/poetry#9751).
  2. Rename poetry_scripts.py to cli_scripts.py, and use uv instead of poetry to run the tests. Note that uv run runs the modules inside the correct environment, so no need for extra install steps.
  3. Use uv in the CI, both to run the tests, but also to build the package when publishing. This also motivated the change from the poetry_core build backend to uv_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.

@o-santi o-santi requested review from silentworks and grdsdev July 30, 2025 14:29
@coveralls
Copy link

coveralls commented Jul 30, 2025

Pull Request Test Coverage Report for Build 16652773972

Details

  • 0 of 19 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-2.5%) to 85.88%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cli_scripts.py 0 19 0.0%
Totals Coverage Status
Change from base Build 16608740115: -2.5%
Covered Lines: 371
Relevant Lines: 432

💛 - Coveralls

@o-santi o-santi merged commit 054f605 into supabase:main Jul 31, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants