diff --git a/setup.py b/setup.py index 7d4d82a..7bad770 100644 --- a/setup.py +++ b/setup.py @@ -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/*")),