Skip to content

Commit

Permalink
Support versions provided by files written with setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 27, 2022
1 parent ec71027 commit 279eb98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion get_releasenote.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def find_version(root: Path, version_file: str, version: str) -> str:
match = re.search(
r"""
__version__\s*=\s*"([^"]+)"|
__version__\s*=\s*'([^']+)'
__version__\s*=\s*'([^']+)'|
version\s*=\s*"([^"]+)"|
version\s*=\s*'([^']+)'
""",
txt,
re.VERBOSE,
Expand Down

0 comments on commit 279eb98

Please sign in to comment.