pyroma icon indicating copy to clipboard operation
pyroma copied to clipboard

check-manifest integration / merge

Open regebro opened this issue 7 years ago • 5 comments

Hi, There is another tool which may overlap with Pyroma. Merging them together might be useful for the users: https://github.com/mgedmin/check-manifest -- Anonymous

regebro avatar Apr 15 '17 16:04 regebro

Yes, you are right that it overlaps somewhat. I use both, especially through zest.releaser, which has hooks. So if both are installed, both will be run before release. You are right that the tools probably could be merged. I'll discuss that with @mgedmin at some point in the future.

regebro avatar Apr 15 '17 16:04 regebro

I'm open to providing an API (or adding a hook) in check-manifest to make it possible to integrate it with pyroma.

mgedmin avatar Apr 16 '17 11:04 mgedmin

Yeah, that seems reasonable. It would be run twice from zest.releaser, though, but I think check-manifest is run first anyway, so you'd only notice if it actually warns.

regebro avatar Apr 16 '17 12:04 regebro

I'm sure we can find a way not to do the same check twice (worst case I can keep track of which hooks have been called in a module global, as it's all being done in process in zest.releaser).

mgedmin avatar Apr 16 '17 17:04 mgedmin

Maybe cache the result and just return it instead of printing it? Pyroma will need to know if it failed or succeeded, but that way we don't need to analyse the file twice, nor print the errors twice.

regebro avatar Apr 16 '17 18:04 regebro