Skip to content

Commit

Permalink
fix versioning to comply with PEP 440 versioning (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbasu authored Jun 1, 2022
1 parent 22c56e2 commit 0e20e98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
raise RuntimeError('No version found in debian/changelog')

with open("src/SimplePwgen/VERSION", "w") as f:
if '~' in version:
version = version.split('~')[0]
f.write("%s" % version)

setup(data_files=[('share/simple-pwgen', glob.glob("data/ui/*")),
Expand Down

0 comments on commit 0e20e98

Please sign in to comment.