re-actors/build-python-dists
GitHub Action for building Python package distributions via PEP 517
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| build-extra-args | Extra args to pass to the PyPA/build tool invocation (can be used to pass `--config-setting` args) | no | — |
| pip-constraints-file | `constraints.txt`-compliant file path for the managed isolated build environment to respect | no | — |
| dist-type | One of `sdist` or `wheel` (defaults to building both) | no | — |
| dists-dir | A directory to put the dists into (default: `dist/`) | no | dist/ |
| workflow-artifact-name | If set, is used the produced dists are made accessible to the later jobs under this name (defaults to unset) | no | — |
| expected-artifact-names | Space-delimited list of globs for the filenames. If set, it is used as a sanity check to fail-fast if the produced artifacts do not match the expectation (defaults to unset) | no | — |
| isolated-build-env | Whether or not to create an isolated build environment | no | true |
| check-build-deps | Whether or not validate the PEP 517 build backend required dependencies against what's installed in the build environment | no | true |
| build-version-spec | PyPA/build tool version to use for building the dists (defaults to `build`, can be pinned to a precise version) | no | build |
| python-version | Python version to use as the current tox runtime (defaults to `3.10`) | no | 3.10 |
| validate-dists-meta | Whether or not to perform the produced distribution packages validation | no | true |
| build-source | Where to check out the source from (defaults to `git`, can also be `sdist` or `skip`) | no | git |
Outputs
| name | description |
|---|---|
| dists | List of the built distribution packages |
| sdist | Name of the source distribution package |
| wheels | List of the binary distribution packages |
| workflow-artifact-name | Workflow artifact that contains all of the produced dists |