Skip to content

Commit

Permalink
Fix set-version task with correct quotes used code
Browse files Browse the repository at this point in the history
Version pattern now uses double quote instead of single quote.

Fixes #152
  • Loading branch information
rasjani authored and aaltat committed May 20, 2024
1 parent c035a37 commit b2c4e72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit b2c4e72

Please sign in to comment.