13 Commits

Author SHA1 Message Date
Sean McGinnis
d403ccf5fa
Update missing cmd to follow redirects
Handles redirection in the link checking for artifacts.

Also drops looking for py2 wheels since we now only have py3.

Change-Id: I34b201902faa60795dae44ebf059af0f2f9242c6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-13 07:19:35 -05:00
Hervé Beraud
2064f3e29f Remove unused imports in tools and commands
For some non obvious reasons pep8 check doesn't detect these unused imports.

Change-Id: Ie98af5a0fcf4fb8bcd05051de75a84755fbc0b88
2019-11-27 17:45:34 +01:00
Sean McGinnis
2e9ebf7f39
Skip release-test for missing-releases
Change-Id: I7833615b22e6632a7108580dcfd5c1d34a42c0fd
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-08-31 08:24:51 -05:00
Doug Hellmann
0d450c4eda ignore pypi check for pre-releases in missing-releases
Change-Id: I47fec03c470407b001f9e5d5138f8626dcc984c2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
6ea3378975 update missing-releases to use deliverable model classes
Change-Id: Iae63447bc89bf753027fc1dfa911b288974866af
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-07 10:49:50 -05:00
Doug Hellmann
59a998da02 update missing-releases to handle non-python projects better
Skip the PyPI checks for things that are not python modules.

Change-Id: I15b0e42c961f7fae600f88ffe23edc22d1f98922
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-02-08 15:22:02 -05:00
Doug Hellmann
ad9f159d52 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>
2018-01-29 10:13:39 -05:00
Doug Hellmann
9a1c1c1cab set up local variable 'version'
We access the version string frequently so use a local variable for it.

Change-Id: I566b3465445bcf3512103a67968f90cda5c19b64
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-29 10:13:13 -05:00
Doug Hellmann
6c7a19708b extend missing-releases to look at pypi
Extend the missing-releases command to look at PyPI for uploads there.

Change-Id: I5693686bbe46a4ec90944bbf2fa81e1c5c91749e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-29 10:07:01 -05:00
Doug Hellmann
5da68dfe56 add wheel checks to missing-releases
Extend the command we use to audit release artifacts so it checks for
wheels.

Change-Id: If0b2d6a3cb05830a80289462181c3506d92102b9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-10-25 13:49:04 +00:00
Doug Hellmann
ee1fc3d892 use yamlutils.loads() everywhere instead of yaml.safe_load()
Also set the encoding for the data files in more open() calls.

Change-Id: Idda3a7ab46e5478f83541fbbb629d7e086515ffd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-08-01 17:50:37 -04:00
Doug Hellmann
4305adb190 teach missing-releases to look for artifacts as well as tags
We need a tool to verify that the release artifacts exist on the
tarballs site. The missing-releases command was already looking for
missing tags, so have it look for the tarballs, too.

This change refactors the URL generation code into a separate module so
it can be used by missing-releases and the sphinx extension. It also
creates a reusable function for testing a link, and has the gitutils
module functions responsible for looking for tags, branches, etc. use
it.

Change the default behavior to only look at the most recent release for
each deliverable, and add an option to go back to the previous behavior
of scanning all of them.

Change-Id: Ic7345466ccd83cf2d8d9d6d019107d6fbba171cc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-12-16 16:05:58 -05:00
Doug Hellmann
66ce6a7079 add a command to look for missing releases
While we're still doing releases by hand, every once in a while we miss
actually applying the tag after we merge the patch. This command will
help find those missing tags.

Change-Id: Ia7da7cedc53bcf3947e489d95abab9370f6e023b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-08-31 13:23:12 -04:00