Single-sourcing the version string

This commit is contained in:
2019-10-29 17:33:29 +01:00
parent bacc05cb41
commit 20b3e3ddd3
5 changed files with 20 additions and 2 deletions

View File

@@ -4,8 +4,11 @@ def read_file(fname):
with open(fname, 'r') as f:
return f.read()
version = {}
exec(read_file("pyquarantine/version.py"), version)
setup(name = "pyquarantine",
version = "0.0.2",
version = version["__version__"],
author = "Thomas Oettli",
author_email = "spacefreak@noop.ch",
description = "A pymilter based sendmail/postfix pre-queue filter.",