Skip to content

Commit

Permalink
Merge branch 'faust-streaming:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wbarnha authored May 25, 2023
2 parents 9bba236 + 9a1cf92 commit 2c4fd18
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions faust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,20 @@ class VersionInfo(NamedTuple):
major: int
minor: int
micro: int
releaselevel: str
serial: str
releaselevel: Optional[str] = None
serial: Optional[str] = None


version_info_t = VersionInfo # XXX compat


# bumpversion can only search for {current_version}
# so we have to parse the version here.
_match = re.match(r"(\d+)\.(\d+).(\d+)(.+)?", __version__)
_match = re.match(r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$", __version__)
if _match is None: # pragma: no cover
raise RuntimeError("THIS IS A BROKEN RELEASE!")
_temp = _match.groups()
VERSION = version_info = VersionInfo(
int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or "", ""
)
VERSION = version_info = VersionInfo(*_temp)
del _match
del _temp
del re
Expand Down

0 comments on commit 2c4fd18

Please sign in to comment.