Skip to content
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

Use uv to manage ci dependencies #39060

Closed
wants to merge 9 commits into from
Closed

Conversation

tobiasdiez
Copy link
Contributor

@tobiasdiez tobiasdiez commented Nov 30, 2024

We currently just use pip install pytest and similar commands to install some python tools during our CI runs. Pip will always install the latest version of these tools, which might accidentally break our workflow. Thus, we need to lock the version used for these dependencies. The need for such a locking was raised also on the mailing list.

Here we use uv to create and easily maintain a lock file based on the dependency groups added in #37446.

For the moment, this lock file is only used to install pytest/coverage/etc during CI. Next step would be to migrate the linters to uv. uv also allows to easily install all python dependencies and python versions of the actual project, so we might want to use it to replace the python bits in sage-the-distro.

Also adds inline-metadata for tools/update-meson.py so that it can easily be run via uv without manually installing deps.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

Copy link

github-actions bot commented Nov 30, 2024

Documentation preview for this PR (built with commit 6c0531c; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@tobiasdiez tobiasdiez marked this pull request as draft December 1, 2024 11:05
@tobiasdiez
Copy link
Contributor Author

Let's wait until uv supports conda dependencies: astral-sh/uv#1703

@tobiasdiez tobiasdiez closed this Dec 29, 2024
@tobiasdiez tobiasdiez deleted the use-uv branch December 29, 2024 14:37
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