From 6f63366c146b4b3509c7ed6a0879bdef382ce813 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Apr 2025 17:29:01 +0530 Subject: [PATCH] ... --- setup/publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/publish.py b/setup/publish.py index eb002ebedc..c9b57ddec8 100644 --- a/setup/publish.py +++ b/setup/publish.py @@ -107,7 +107,7 @@ class Publish(Command): require_clean_git() version = tuple(map(int, __version__.split('.'))) # noqa: RUF048 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: subprocess.check_call([sys.executable, 'setup.py', 'check']) subprocess.check_call([sys.executable, 'setup.py', 'build'])