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

Build and publish from CI complete example #7727

Open
davidlrobinson opened this issue Sep 26, 2024 · 1 comment
Open

Build and publish from CI complete example #7727

davidlrobinson opened this issue Sep 26, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@davidlrobinson
Copy link

First off, thank you for your work on uv. I read in #7475 that one of the intended uses of uv build is the following:

  1. Publishing a pure Python package from CI
  • Call uv build
  • Clear the venv, install the wheel, run a smoke test
  • Clear the venv, install the source distribution, run a smoke test
  • Call uv publish

The docs mention that a built package can be tested with uv run --with <PACKAGE> --no-project -- python -c "import <PACKAGE>". Is there a complete example demonstrating this in practice from CI?

@zanieb zanieb added the documentation Improvements or additions to documentation label Sep 26, 2024
@vtnate
Copy link

vtnate commented Sep 27, 2024

In addition, can you share an example workflow file for using this with GitHub Actions, or at least a hint? If I am already using the recommended workflow (without the signing steps) for trusted publishing from GHA, do I just replace the build step internals with uv build? I don't think using uv publish is appropriate in that case, correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants