-
Notifications
You must be signed in to change notification settings - Fork 69
feat: use uv and dependency-groups #588
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
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f226583
feat: use uv and dependency-groups
henryiii 93c0daa
style: pre-commit fixes
pre-commit-ci[bot] 0a60051
style: pre-commit fixes
pre-commit-ci[bot] aeff1bc
Apply suggestions from code review
henryiii e1004f3
style: pre-commit fixes
pre-commit-ci[bot] 9b8f452
Update docs/pages/guides/gha_wheels.md
henryiii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,15 +56,18 @@ Linux and Windows): | |
|
|
||
| ```toml | ||
| [tool.cibuildwheel] | ||
| test-extras = "test" | ||
| test-groups = ["test"] | ||
| test-command = "pytest {project}/tests" | ||
| build-frontend = "build[uv]" | ||
| # Optional | ||
| build-verbosity = 1 | ||
| ``` | ||
|
|
||
| The `test-extras` will cause the pip install to use `[test]`. The `test-command` | ||
| will use pytest to run your tests. You can also set the build verbosity (`-v` in | ||
| pip) if you want to. | ||
| The build frontend is set to `build[uv]`, which is faster than the default build | ||
| backend; you just need uv installed, but that's easy to do. The `test-extras` | ||
| will cause the pip install to use the dependency-group(s) specified. The | ||
| `test-command` will use pytest to run your tests. You can also set the build | ||
| verbosity (`-v` in pip) if you want to. | ||
|
|
||
| ## Making an SDist | ||
|
|
||
|
|
@@ -114,6 +117,8 @@ build_wheels: | |
| fetch-depth: 0 | ||
| submodules: true | ||
|
|
||
| - uses: astral-sh/setup-uv@v6 | ||
|
|
||
| - uses: pypa/[email protected] | ||
|
|
||
| - name: Upload wheels | ||
|
|
@@ -150,8 +155,8 @@ you want a different supported image, set `CIBW_MANYLINUX_X86_64_IMAGE`, | |
| `CIBW_MANYLINUX_I686_IMAGE`, etc. If you always need a specific image, you can | ||
| set that in the `pyproject.toml` file instead. | ||
|
|
||
| You can speed up the build by specifying the `build[uv]` build-frontend option | ||
| and pre-installing `uv` on the runners. | ||
| You can skip specifying the `build[uv]` build-frontend option and pre-installing | ||
| `uv` on the runners, but it will be a slower. | ||
|
|
||
| ## Publishing | ||
|
|
||
|
|
@@ -237,7 +242,8 @@ the sdist, for example). | |
|
|
||
| > Other architectures | ||
| > | ||
| > On Travis, `cibuildwheel` even has the ability to create ARM and PowerPC | ||
| > GitHub Actions supports ARM on Linux and Windows as well. On Travis, | ||
| > `cibuildwheel` even has the ability to create rarer architectures like PowerPC | ||
| > builds natively. IBM Z builds are also available but in beta. However, due to | ||
| > Travis CI's recent dramatic reduction on open source support, emulating these | ||
| > architectures on GHA or Azure is probably better. Maybe look into Cirrus CI, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.