From 87a78b5857b53473eea17e333161da6284fd368b Mon Sep 17 00:00:00 2001 From: Jani Mikkonen Date: Fri, 17 May 2024 10:52:15 +0300 Subject: [PATCH] Fix set-version task with correct quotes used code --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 8d85add..0db4d90 100644 --- a/tasks.py +++ b/tasks.py @@ -11,6 +11,7 @@ REPOSITORY = "robotframework/PythonLibCore" VERSION_PATH = Path("src/robotlibcore/__init__.py") +VERSION_PATTERN = '__version__ = "(.*)"' RELEASE_NOTES_PATH = Path("docs/PythonLibCore-{version}.rst") RELEASE_NOTES_TITLE = "Python Library Core {version}" RELEASE_NOTES_INTRO = """ @@ -67,7 +68,7 @@ def set_version(ctx, version): # noqa: ARG001 to the next suitable development version. For example, 3.0 -> 3.0.1.dev1, 3.1.1 -> 3.1.2.dev1, 3.2a1 -> 3.2a2.dev1, 3.2.dev1 -> 3.2.dev2. """ - version = Version(version, VERSION_PATH) + version = Version(version, VERSION_PATH, VERSION_PATTERN) version.write() print(version)