Page MenuHomeSoftware Heritage

swh-pypi.yaml
No OneTemporary

swh-pypi.yaml

- job-template:
name: "{name}/pypi-upload"
display-name: "Upload to PyPI"
docker_image: tox
include_bdist: true
project-type: pipeline
sandbox: true
properties:
- build-discarder:
artifact-num-to-keep: 10
- copyartifact:
projects: '*'
parameters:
- git-parameter:
name: GIT_TAG
description: git tag to process
type: PT_TAG
sortMode: DESCENDING_SMART
selectedValue: TOP
- choice:
name: PYPI_HOST
description: |
PYPI registry to publish to when built revision is a tag. There
must exists a usernamePassword credential object with that name.
The pypi JSON API endpoint is built as https://$PYPI_HOST/project/<name>/json
choices:
- test.pypi.org
- pypi.org
default: test.pypi.org
- bool:
name: FORCE_UPLOAD
default: false
description: |
Force uploading python packages on the chosen PYPI registry, even if
the package already exists.
- bool:
name: SKIP_TESTS
default: false
description: |
Do not run tests on the repository.
- bool:
name: IGNORE_TESTS
default: false
description: |
Proceed even if the tests are failing on the repository.
- bool:
name: INCLUDE_BDIST
default: '{include_bdist}'
description: |
Include a binary distribution in the PyPI upload.
dsl:
!include-jinja2: swh-pypi.groovy.j2

File Metadata

Mime Type
text/plain
Expires
Jun 4 2025, 7:12 PM (9 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241892

Event Timeline