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:
parent
d0851b0b4a
commit
04c7247604
3
playbooks/python/release.yaml
Normal file
3
playbooks/python/release.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- build-python-release
|
@ -1,3 +0,0 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- build-python-sdist
|
1
roles/build-python-release/defaults/main.yaml
Normal file
1
roles/build-python-release/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
@ -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 }}"
|
@ -1 +0,0 @@
|
||||
python_sdist_chdir: "src/{{ zuul.project.canonical_name }}"
|
12
zuul.yaml
12
zuul.yaml
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user