Files
project-config/playbooks/python-branch-tarball/post.yaml
T
Paul Belanger 41622cf33c 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>
2017-08-23 11:09:15 -04:00

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"