Make build-python-release job

python-sdist isn't an accurate name since this also builds wheels. Make
a new job named build-python-release.

Also, use zuul_work_dir as the working dir variable.

This role was written rather early and isn't used yet. Change it to use
zuul_work_dir so that it matches other things.

Change-Id: Icfad9ad6ba5c7a0c62a8d5ce243952b81f28a47f
Depends-On: I8dfe5a41710392d6ca8453ce365f674a9d5e4f6e
This commit is contained in:
Monty Taylor 2017-10-21 13:58:30 +02:00
parent d0851b0b4a
commit 04c7247604
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
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