Create testpypi_secret secret for zuulv3

This creates credentials needed for testpypi.python.org. I've also
stored the information in our password file.

Also start fleshing out release-openstack-python job allowing us to
install twine and pypirc on to the executor.

Change-Id: I06422102b6af209bd22d05faa6202e480a128f84
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-16 13:06:59 -04:00
parent 7d1397f7df
commit 36b56f76c0
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,10 @@
- hosts: localhost
tasks:
- name: Install twine python package
command: pip install --user twine
- name: Create credentials for pypi
template:
dest: ~/.pypirc
mode: 0400
src: publish/testpypi/pypirc.j2

View File

@ -0,0 +1,8 @@
[distutils]
index-servers=
testpypi
[testpypi]
repository:{{ testpypi_secret.repository }}
username:{{ testpypi_secret.username }}
password:{{ testpypi_secret.password }}

View File

@ -153,11 +153,37 @@
secrets:
- site_zuulv3_dev
- job:
name: release-openstack-python
parent: publish-openstack-tarball
description: |
Release python tarballs / wheels to pypi.
post-run: playbooks/publish/testpypi
secrets:
- testpypi_secret
- project:
name: openstack-infra/project-config
check:
jobs: []
- secret:
name: testpypi_secret
data:
repository: https://test.pypi.org/legacy/
username: openstackci
password: !encrypted/pkcs1-oaep
- ev0vtSMICZsT/LjfT/f9prqvwdPibwY/88nxJxoJNF4syUW2S/5ine9vZoK+atJEzlFbq
J9VrHbc3RokVxR3bjiur/MH5hH5Kk+tZGdRQwk6eoroI5dtyO23lWr86LTRG8BJJPbQmd
jrdPp9E+Tea/C/xAoTGhUbNnofOPEaxsS1T0RqdphCA2FAfefnVR5oWURQpa/XaBKZLAS
H2fBSr0un0mxV+67SlyOFkTTbtF9x72DE9clw3gBX1uArMnKSXdl3SK2LgB/POiGH5YoU
GTFOs6qBxNP/jV8cIBxSf80IHUfspv49LoMNTPfwDRMie4lGCNUgTINzgtkCwuysY0wcC
LYd1NA1RYd57coHKEftCIC1NQYRriTA543kdnCWoZPU6DVaswgEJai0Pg1vC8b5NPYYPw
YZm011oEN6bnVOEfsnhwYCl6GCibELolyW4vv4xGMrOGLFwt6/DXBWpbktwrGqbG4Ku06
hneCGOGjjzy09LmkdjCMi9cbe01udaIB+MA9Bqgt1Jh8AM4OIJaUsCX014g5OUDSNw/VZ
A55ES2jKpwFCottqtgiZSO4n0+0TmjsVwYPwKbyxYEvmxkeldRFwKSz8T3EpV2HQi++aT
aR6LCLkViHsSTluDbv5dJESSQDVjyXyd3gp4jTvXmHlSxSenfSbyV7Rqkia0tk=
- secret:
name: site_zuulv3_dev
data: