4 from debian_bundle.changelog import Changelog
5 from debian_bundle.deb822 import Deb822
6 from email.utils import parseaddr
7 from setuptools import setup
9 version = Changelog(open(os.path.join(__file__, 'debian/changelog')).read()).\
10 get_version().full_version
12 maintainer_full = Deb822(open(os.path.join(__file__, 'debian/control')))['Maintainer']
13 maintainer, maintainer_email = parseaddr(maintainer_full)
18 maintainer=maintainer,
19 maintainer_email=maintainer_full,
21 package_dir = {'': 'python'},
22 scripts=['scripts/invirt-getconf', 'scripts/invirt-reload']