We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c035a37 commit bad73cfCopy full SHA for bad73cf
tasks.py
@@ -11,6 +11,7 @@
11
12
REPOSITORY = "robotframework/PythonLibCore"
13
VERSION_PATH = Path("src/robotlibcore/__init__.py")
14
+VERSION_PATTERN = "__version__ = \"(.*)\""
15
RELEASE_NOTES_PATH = Path("docs/PythonLibCore-{version}.rst")
16
RELEASE_NOTES_TITLE = "Python Library Core {version}"
17
RELEASE_NOTES_INTRO = """
@@ -67,7 +68,7 @@ def set_version(ctx, version): # noqa: ARG001
67
68
to the next suitable development version. For example, 3.0 -> 3.0.1.dev1,
69
3.1.1 -> 3.1.2.dev1, 3.2a1 -> 3.2a2.dev1, 3.2.dev1 -> 3.2.dev2.
70
"""
- version = Version(version, VERSION_PATH)
71
+ version = Version(version, VERSION_PATH, VERSION_PATTERN)
72
version.write()
73
print(version)
74
0 commit comments