4 from debian_bundle.changelog import Changelog
5 from debian_bundle.deb822 import Deb822
6 from email.utils import parseaddr
8 from setuptools import setup
10 version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
11 get_version().full_version
13 maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
14 maintainer, maintainer_email = parseaddr(maintainer_full)
17 name='invirt.builder',
19 maintainer=maintainer,
20 maintainer_email=maintainer_email,
22 py_modules = ['invirt.builder'],
23 package_dir = {'': 'python'},
24 scripts = ['invirtibuilder', 'invirt-build-conf', 'invirt-submit-build', 'invirt-add-repo']