Skip to content

Commit e16fc0b

Browse files
committed
Ensure that package version can be found in "tasks.py" file.
1 parent 266dbf9 commit e16fc0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,17 +542,17 @@ def tag(ctx: Context):
542542
with open(os.path.join(PYTHON_PACKAGE_NAME, "__init__.py")) as file_handle:
543543
file_content = file_handle.read()
544544
major_version = re.search(
545-
"__major_version__\\s+=\\s+'(.*)'", file_content
545+
'__major_version__\\s+=\\s+"(.*)"', file_content
546546
).group( # type: ignore[union-attr]
547547
1
548548
)
549549
minor_version = re.search(
550-
"__minor_version__\\s+=\\s+'(.*)'", file_content
550+
'__minor_version__\\s+=\\s+"(.*)"', file_content
551551
).group( # type: ignore[union-attr]
552552
1
553553
)
554554
change_version = re.search(
555-
"__change_version__\\s+=\\s+'(.*)'", file_content
555+
'__change_version__\\s+=\\s+"(.*)"', file_content
556556
).group( # type: ignore[union-attr]
557557
1
558558
)

0 commit comments

Comments
 (0)