Build tarballs / wheels for release-openstack-python

We actually want to build tarballs and wheels for
release-openstack-python. This can use the same playbook we use for
publish-openstack-python-branch-tarballs.

Refactor python-branch-tarball to only rename the files and move the
sync into python-tarball post.

Change-Id: I479be21fe18431c77ed769d12299945a700e4384
Depends-On: I05158958af793fcfaef1d978cb7f38a38af95fc6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger committed 2017-08-23 11:09:15 -04:00
1 parent c69facd994
commit 41622cf33c
3 files changed
+13 -28

No files matched your search

+4 -27
View File
@@ -1,8 +1,11 @@
- hosts: all
roles:
- fetch-tox-output
- fetch-python-sdist-output
post_tasks:
pre_tasks:
# NOTE(pabelanger): This need to run before fetch-python-sdist-output to
# properly rename wheels and tarballs.
- name: Rename files to branch specific name
shell: "mv *.{{ item }} {{ zuul.project.short_name }}-{{ zuul.branch | replace('/', '-') }}.{{ item }}"
args:
@@ -10,29 +13,3 @@
with_items:
- "tar.gz"
- "whl"
- 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 artifacts
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ item.path }}"
verify_host: true
with_items: "{{ result.files }}"
+4
View File
@@ -0,0 +1,4 @@
- hosts: all
roles:
- fetch-tox-output
- fetch-python-sdist-output
+5 -1
View File
@@ -168,7 +168,11 @@
parent: publish-openstack-artifacts
description: |
Release python tarballs / wheels to pypi.
post-run: playbooks/publish/testpypi
pre-run: playbooks/python-tarball/pre
run: playbooks/python-tarball/run
post-run:
- playbooks/python-tarball/post
- playbooks/publish/pypi
secrets:
- secret: testpypi_secret
name: pypi_info