Skip to content

Commit b2c4e72

Browse files
rasjaniaaltat
authored andcommitted
Fix set-version task with correct quotes used code
Version pattern now uses double quote instead of single quote. Fixes #152
1 parent c035a37 commit b2c4e72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
REPOSITORY = "robotframework/PythonLibCore"
1313
VERSION_PATH = Path("src/robotlibcore/__init__.py")
14+
VERSION_PATTERN = '__version__ = "(.*)"'
1415
RELEASE_NOTES_PATH = Path("docs/PythonLibCore-{version}.rst")
1516
RELEASE_NOTES_TITLE = "Python Library Core {version}"
1617
RELEASE_NOTES_INTRO = """
@@ -67,7 +68,7 @@ def set_version(ctx, version): # noqa: ARG001
6768
to the next suitable development version. For example, 3.0 -> 3.0.1.dev1,
6869
3.1.1 -> 3.1.2.dev1, 3.2a1 -> 3.2a2.dev1, 3.2.dev1 -> 3.2.dev2.
6970
"""
70-
version = Version(version, VERSION_PATH)
71+
version = Version(version, VERSION_PATH, VERSION_PATTERN)
7172
version.write()
7273
print(version)
7374

0 commit comments

Comments
 (0)