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>
16 lines
495 B
YAML
16 lines
495 B
YAML
- hosts: all
|
|
roles:
|
|
- fetch-tox-output
|
|
- fetch-python-sdist-output
|
|
|
|
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:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|
|
with_items:
|
|
- "tar.gz"
|
|
- "whl"
|