mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5d6f454ab3
commit
6f63366c14
@ -107,7 +107,7 @@ class Publish(Command):
|
|||||||
require_clean_git()
|
require_clean_git()
|
||||||
version = tuple(map(int, __version__.split('.'))) # noqa: RUF048
|
version = tuple(map(int, __version__.split('.'))) # noqa: RUF048
|
||||||
if version[2] > 99:
|
if version[2] > 99:
|
||||||
raise SystemExit('The version number indicates a preview release, did you mean to run ./setup.py publish_preview?')
|
raise SystemExit(f'The version number {__version__} indicates a preview release, did you mean to run ./setup.py publish_preview?')
|
||||||
if 'PUBLISH_BUILD_DONE' not in os.environ:
|
if 'PUBLISH_BUILD_DONE' not in os.environ:
|
||||||
subprocess.check_call([sys.executable, 'setup.py', 'check'])
|
subprocess.check_call([sys.executable, 'setup.py', 'check'])
|
||||||
subprocess.check_call([sys.executable, 'setup.py', 'build'])
|
subprocess.check_call([sys.executable, 'setup.py', 'build'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user