Add non-OpenStack PyPI upload job
If people are using normal tarball jobs to build sdist tarballs, they can also use a normal job to upload them. This job will require being passed a dict variable with username and password, which really should be stored in a secret. Change-Id: I5747856e54d07a98571db38f1827b3e3cfefe768
This commit is contained in:
parent
2a957c7f1c
commit
47b2a7c869
3
playbooks/python/upload-pypi.yaml
Normal file
3
playbooks/python/upload-pypi.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- role: upload-pypi
|
10
zuul.yaml
10
zuul.yaml
@ -136,6 +136,16 @@
|
|||||||
run: playbooks/tox/tarball
|
run: playbooks/tox/tarball
|
||||||
post-run: playbooks/python/tarball-post
|
post-run: playbooks/python/tarball-post
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: python-upload-pypi
|
||||||
|
parent: python-sdist
|
||||||
|
description: |
|
||||||
|
Generate a and upload a python source tarball and binary wheel
|
||||||
|
|
||||||
|
Requires a variable ``pypi_info`` be set which is a dict containing
|
||||||
|
at least a ``username`` and ``password`` attribute.
|
||||||
|
post-run: playbooks/python/upload-pypi
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: openstack-infra/zuul-jobs
|
name: openstack-infra/zuul-jobs
|
||||||
check:
|
check:
|
||||||
|
Loading…
Reference in New Issue
Block a user