Merge "Make build-python-release job"

This commit is contained in:
Zuul 2017-11-20 22:56:14 +00:00 committed by Gerrit Code Review
commit 9faf25acef
6 changed files with 15 additions and 7 deletions

View File

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

View File

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

View File

@ -0,0 +1 @@
zuul_work_dir: "{{ zuul.project.src_dir }}"

View File

@ -1,4 +1,4 @@
- name: Build a tarball and wheel
command: python setup.py sdist bdist_wheel
args:
chdir: "{{ python_sdist_chdir }}"
chdir: "{{ zuul_work_dir }}"

View File

@ -1 +0,0 @@
python_sdist_chdir: "src/{{ zuul.project.canonical_name }}"

View File

@ -141,12 +141,20 @@
name: python-sdist
description: |
Build a source tarball and wheel for uploading
run: playbooks/python/sdist.yaml
DEPRECATED. Build a source tarball and a bdist wheel for uploading.
run: playbooks/python/release.yaml
post-run: playbooks/python/tarball-post.yaml
- job:
name: build-python-release
description: |
Build a source tarball and a bdist wheel for uploading.
run: playbooks/python/release.yaml
post-run: playbooks/python/tarball-post.yaml
- job:
name: python-upload-pypi
parent: python-sdist
parent: build-python-release
description: |
Generate a and upload a python source tarball and binary wheel