only fail pypi permission validation if the project exists
If the project does not exist, it will be created correctly by the release job. If it does exist, we cannot add a user to it so that has to be done correctly. Change-Id: I78173d855c11c8f9e8d75548b0882a4e7d27765f Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
b952446ba2
commit
f95cd67b76
@ -860,10 +860,16 @@ def validate_pypi_permissions(deliv, context):
|
||||
|
||||
uploaders = pythonutils.get_pypi_uploaders(pypi_name)
|
||||
if not uploaders:
|
||||
context.error(
|
||||
'could not find users with permission to upload packages '
|
||||
'for {}. Is the sdist name correct?'.format(pypi_name)
|
||||
)
|
||||
pypi_info = pythonutils.get_pypi_info(pypi_name)
|
||||
if not pypi_info:
|
||||
LOG.debug('no %s project data on pypi, assuming it will be '
|
||||
'created by release',
|
||||
pypi_name)
|
||||
else:
|
||||
context.error(
|
||||
'could not find users with permission to upload packages '
|
||||
'for {}. Is the sdist name correct?'.format(pypi_name)
|
||||
)
|
||||
elif 'openstackci' not in uploaders:
|
||||
context.error(
|
||||
'openstackci does not have permission to upload packages '
|
||||
|
Loading…
Reference in New Issue
Block a user