- job-template:
    name: '{name}-pypi-both-upload'
    node: release

    builders:
      - revoke-sudo
      - zuul-git-prep
      - shell: |
          # Note we upload the wheel first because pip prefers wheels
          # and there is a mirroring issue where sometimes the first
          # artifact uploaded is the only one you get. Since pip prefers
          # wheels it is best to make the wheel the one we get.
          /usr/local/jenkins/slave_scripts/pypi-wheel-upload.sh {name} tarballs.openstack.org
          /usr/local/jenkins/slave_scripts/pypi-tarball-upload.sh {name} tarballs.openstack.org

    publishers:
      - console-log

- job-group:
    name: pypi-jobs
    jobs:
      - '{name}-pypi-both-upload'
      - '{name}-tarball'
      - '{name}-tarball-signing'
      - '{name}-announce-release'
      - 'propose-{name}-update-constraints'