Skip to content

Conversation

@matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented May 1, 2024

  • Use 'uv pip' for all calls to 'pip install' in GitHub Actions workflows.
  • The '--system' call is required as uv requires a virtual environment to be activated without it, and GitHub Actions does not provide a default virtual environment.

* Use 'uv pip' for all calls to 'pip install' in GitHub Actions workflows.
   - c.f. https://github.com/astral-sh/uv/
* The '--system' call is required as uv requires a virtual environment to be
  activated without it, and GitHub Actions does not provide a default virtual
  environment.
@matthewfeickert
Copy link
Member Author

cc @BenGalewsky for review.

@BenGalewsky BenGalewsky self-requested a review May 1, 2024 16:07
Copy link
Contributor

@BenGalewsky BenGalewsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you recommend this, then I'm trying it out!

@BenGalewsky BenGalewsky merged commit 41fab59 into ssl-hep:3.0_develop May 1, 2024
@matthewfeickert matthewfeickert deleted the ci/use-uv-to-install branch May 1, 2024 16:12
@matthewfeickert
Copy link
Member Author

If you recommend this, then I'm trying it out!

It can have significant time savings, as scikit-hep/pyhf#2444 (comment) isn't even the largest install time drops that I've seen with it. Henry has a bunch more examples, and thanks to him it is also available as an installer option for build (c.f. https://github.com/pypa/build/releases/tag/1.2.0).

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.

2 participants