From 47b2a7c869c1a8f86d9ef45aa26620f515d153d1 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 21 Aug 2017 16:51:24 -0400 Subject: [PATCH] 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 --- playbooks/python/upload-pypi.yaml | 3 +++ zuul.yaml | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 playbooks/python/upload-pypi.yaml diff --git a/playbooks/python/upload-pypi.yaml b/playbooks/python/upload-pypi.yaml new file mode 100644 index 000000000..df035eabb --- /dev/null +++ b/playbooks/python/upload-pypi.yaml @@ -0,0 +1,3 @@ +- hosts: all + roles: + - role: upload-pypi diff --git a/zuul.yaml b/zuul.yaml index b6ff80364..cd90ab55b 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -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: