Build SDist and Wheel template
Objective
Run a job to build a source distribution and a wheel package for a Python project.
How to use it
- Include the build_sdist_n_wheel template in your GitLab CI/CD configuration.
- If you need to customize the job, refer to the jobs customization documentation.
Variables
Name | Description | Default |
---|---|---|
IMAGE_NAME |
The default name for the docker image. | "python" |
IMAGE_TAG |
The default tag for the docker image. | "latest" |
IMAGE |
The default docker image name. | "$IMAGE_NAME:$IMAGE_TAG" |
PROJECT_PATH |
The path to the project root directory. | "." |
BUILD_SDIST_N_WHEEL |
The command to build the source distribution and wheel packages. | "python -m build" |