Skip to content

Commit

Permalink
Replace deprecated semver parsing in build script
Browse files Browse the repository at this point in the history
Signed-off-by: John Strunk <[email protected]>
  • Loading branch information
JohnStrunk committed May 12, 2023
1 parent 2aa6607 commit bcd4af8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
)
wr_version = wh_version.git_semver(git_ref)
print(f"Building Wahoo Results, version: {wr_version}")
vdict = semver.parse(wr_version)
version = semver.version.Version.parse(wr_version)

with open("version.py", "w") as f:
f.write("'''Version information'''\n\n")
f.write('"""Version information"""\n\n')
f.write(f'WAHOO_RESULTS_VERSION = "{wr_version}"\n')

# Sentry API key
Expand Down Expand Up @@ -74,8 +74,8 @@
# Create file info to embed in executable
v = vinfo.VSVersionInfo(
ffi=vinfo.FixedFileInfo(
filevers=(vdict["major"], vdict["minor"], vdict["patch"], 0),
prodvers=(vdict["major"], vdict["minor"], vdict["patch"], 0),
filevers=(version.major, version.minor, version.patch, 0),
prodvers=(version.major, version.minor, version.patch, 0),
mask=0x3F,
flags=0x0,
OS=0x4,
Expand Down

0 comments on commit bcd4af8

Please sign in to comment.