Skip to content

Update Python to use UV for project managment #287

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RossSmyth
Copy link

Best reviewed by-commit

Update to use uv.

Why:

  • It uses venv by default so using and building packages is always project-local
  • Has a lock file so you shouldn't get any funny conflicts
  • Blazing fast or something idk

I just think it's a more sane way to interact with Python projects.

Things done:

  1. Bump minimum Flit to 3.2, this is the recommended (minimum) version by flit devs. Flit 2 has been unmaintained for a while now, and there's no real reason to support it.
  2. Use the more modern pyproject.toml layout with a [project] section.
  3. Add minimum version for the dev tools. Unsure what this project is using but I put in some values based upon some commit snooping.
  4. Update the Makefile to use uv for working with the Python code
  5. Update the github workflow to use UV

As recommended by flit devs
Flit 2 has been deprecated for a while now.
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.

1 participant