6 Commits

Author SHA1 Message Date
Paul Belanger
f49614bbcd
Revert "Include tar.gz.asc / whl.asc for twine"
Talking with fungi, the next version of pypi won't support asc files
being displayed. So, just revert for now. Also, this needs to be a
single twine command if we do want to support them.

This reverts commit 356c9807c39a049e69eef92ff69f6200b1ca33ea.

Change-Id: Ied130a1380ff2a404b9fdadb7c0cddd10cc757c5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-25 16:32:52 -04:00
Paul Belanger
0a4f5117df
Remove conditional check for upload-pypi
We don't actually need to conditionally check the result of find
because result.files will be an empty list if nothing is found.

Change-Id: I29a782df72064e602f072099dcba6ced3d4ea258
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-25 15:52:41 -04:00
Paul Belanger
356c9807c3
Include tar.gz.asc / whl.asc for twine
Twine also supports asc files, so if found also upload them.

Change-Id: I12cc8b541ca136b64707efe7d94d7e5448238dc9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-25 13:34:57 -04:00
Paul Belanger
d292ee658a
Create pypi_twine_executable
Like we do for bindep and tox roles. Allow a user to manage the twine
binary outside of the upload-pypi role. This allows a user to better
control the path of the executable too.

Change-Id: I5c757b29e185ab76495abf3cfb2d853aada77a50
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-23 15:21:26 -04:00
Monty Taylor
0763c6358f
Use item.path not item on results of find
Change-Id: I6feaf2512803a46ad48e551610571dfbb0cda294
2017-08-22 19:07:13 -04:00
Paul Belanger
f94b0b809d
Add upload-pypi role
Create a role to upload python artificats using twine

username and password are required, so remove them from
defaults. Install twine in the homedir by default if the twine command
is not found.

Upload wheels if found first, then tarballs.
Change-Id: I8857e2983e1175107164536d57e313a5b404bddb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-22 16:08:09 -04:00