extend missing-releases to look for specific package types on PyPI
Look for the expected package types and report what is found or not in case only part of an upload process works. Change-Id: I7324687cfb4208da190b14f56b3b55b2e6023dae Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -179,6 +179,17 @@ def main():
|
||||
else:
|
||||
print(' found version {} on PyPI'.format(
|
||||
version))
|
||||
expected_types = set(['bdist_wheel', 'sdist'])
|
||||
actual_types = set(
|
||||
r['packagetype']
|
||||
for r in pypi_info['releases'][version]
|
||||
)
|
||||
for actual in actual_types:
|
||||
print(' found {} on PyPI'.format(actual))
|
||||
for missing in expected_types.difference(actual_types):
|
||||
msg = '{} not found on PyPI'.format(missing)
|
||||
print(' {}'.format(msg))
|
||||
errors.append(msg)
|
||||
|
||||
print()
|
||||
|
||||
|
Reference in New Issue
Block a user