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:
Monty Taylor 2017-08-21 16:51:24 -04:00
parent 2a957c7f1c
commit 47b2a7c869
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- role: upload-pypi

View File

@ -136,6 +136,16 @@
run: playbooks/tox/tarball
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:
name: openstack-infra/zuul-jobs
check: