fix release-openstack-python3 so it does what we mean

Import the python-tarball playbook from openstack-zuul-jobs and call
it pti-python-tarball to reflect the fact that it honors the OpenStack
Python Testing Interface.

Redefine release-openstack-python3 to use the new pti-python-tarball
playbook instead of inheriting from release-openstack-python, because
the old job uses the old python-tarball playbook which does not honor
the release_python variable.

Change-Id: Ic6c1da3e05d3fc59700ed97e1e5aafa3196d9fb6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-12 12:44:27 -04:00
parent b611944d34
commit dbcfcaaaa6
4 changed files with 48 additions and 2 deletions

View File

@ -0,0 +1,30 @@
- hosts: all
roles:
- fetch-tox-output
post_tasks:
- name: Find tarballs and wheels in dist folder.
find:
file_type: file
paths: "src/{{ zuul.project.canonical_name }}/dist"
patterns: "*.tar.gz,*.whl"
register: result
- name: Display stat for tarballs and wheels.
stat:
path: "{{ item.path }}"
with_items: "{{ result.files }}"
- name: Ensure artifacts directory exists.
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
delegate_to: localhost
- name: Collect tarball artifacts.
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ item.path }}"
verify_host: true
with_items: "{{ result.files }}"

View File

@ -0,0 +1,4 @@
- hosts: all
roles:
- bindep
- revoke-sudo

View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- build-python-release

View File

@ -209,9 +209,18 @@
- job:
name: release-openstack-python3
parent: release-openstack-python
parent: publish-openstack-artifacts
description: |
Release python tarballs / wheels to pypi using python 3.
Release python tarballs / wheels to pypi using python3.
pre-run: playbooks/pti-python-tarball/pre.yaml
run: playbooks/pti-python-tarball/run.yaml
post-run:
- playbooks/pti-python-tarball/post.yaml
- playbooks/publish/pypi.yaml
secrets:
- secret: pypi_secret
name: pypi_info
- gpg_key
vars:
release_python: python3