zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

Add skip-missing-hooks option #236

Closed leplatrem closed 6 years ago

leplatrem commented 7 years ago

Hi there!

We have a use case where we really don't want the hooks to be skipped when they cannot be imported.

So I added an option, with current behaviour as default :)

I'm kinda puzzled with the way I should test this, I would be grateful if you had some insights about the best way to do it!

Thanks, and also thanks for this awesome tool ;)

Natim commented 7 years ago

TypeError: getboolean() got an unexpected keyword argument 'fallback' with Python2.7

Natim commented 7 years ago

I don't see how the failure in the pypy env are related to that fix.

reinout commented 7 years ago

The code itself looks fine. But.... I always dislike extra options on principle :-)

In this case, my thought is "shouldn't this be the default behaviour"? Why would you specify a hook in your setup.cfg if you didn't intend to run it? Perhaps because not all developers have installed the necessary library: that's the only reason I can think of right now.

Am I missing something?

My current thoughts:

What are your thoughts?

reinout commented 7 years ago

I've re-run the pypy job on travis: it passes now. It already looked like a temporary glitch. We're testing lots of python versions, so small glitches show up more often :-)

leplatrem commented 7 years ago

Thanks @reinout for your feedback!

Indeed, I would also be in favor of failing when hook missing! But my intention was to keep the current behavior as default, hence the option.

I will change that immediately then :)

leplatrem commented 7 years ago

I updated the code (pypy job might have to be restarted)

reinout commented 6 years ago

I've released 6.12.5 with your fix!

Natim commented 6 years ago

\o/ thanks