Skip to content

Commit 6b8fae1

Browse files
author
Jonathan Piron
committed
Do not parse tag when pretending version
Fixes #271.
1 parent e377112 commit 6b8fae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setuptools_scm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _do_parse(root, parse):
6060
if pretended:
6161
# we use meta here since the pretended version
6262
# must adhere to the pep to begin with
63-
return meta(pretended)
63+
return meta(tag=pretended, preformatted=True)
6464

6565
if parse:
6666
parse_result = parse(root)

0 commit comments

Comments
 (0)