Closed icemac closed 1 year ago
Really weird? The option is there for me, I just checked it on the command line in a test project. And it's there in the code: https://github.com/zestsoftware/zest.releaser/blob/master/zest/releaser/utils.py#L235 That part of the code hasn't been touched in 7 years time :-)
So... real weird. Some things to try:
--verbose
, though that probably won't help.which fullrelease
to make sure there's not something funny going on.The error happened when releasing zope.app.locales
which has this prereleaser.before
configuration in setup.cfg
as suggested by @mauritsvanrees:
Upgrade to 7.0.1
There is no such release. 7.0.0 is the last one, both here and on PyPI.
The error happened when releasing zope.app.locales which has this prereleaser.before configuration in setup.cfg
I tried it and confirm it. With those lines, both fullrelease --no-input
and prerelease --no-input
fail. release --no-input
works though.
Initial suspicion: at the moment when this hook is loaded, the command line arguments are not parsed yet.
I found it. The error only seems to be thrown by zest.releaser
. In reality the error comes from zest.pocompile
which has its own command line arguments to parse:
$ pocompile --no-input
Usage: pocompile [options] <directories>
pocompile: error: no such option: --no-input
So my idea of calling zest.pocompile.compile.main
in the hook was not good after all.
I will try one of my other suggestions.
Meanwhile I close this bug.
@icemac Try a fresh zest.pocompile
1.6.0 and use this in setup.cfg
of zope.app.locales
:
prereleaser.before = zest.pocompile.available
@mauritsvanrees Thank you for providing a fix. I updated zope.app.locales
in https://github.com/zopefoundation/zope.app.locales/pull/19. It prevents the release when using zest.pocompile==1.5.0
. So I believe it will work using the new version. (I do not want to cut a new release just now, so I'll not try it.)
I suppose you could disable your internet connection and try it. :-)
@mauritsvanrees It works. Thank you!
Calling
fullrelease --no-input
leads to the following error message:But it is listed in
--help
:Calling
fullrelease
without options still works but it is tedious to hit enter all the time.I am using
zest.relaser == 7.0.0
Other versions used: