Revision 24780,
1.3 KB
checked in by broder, 14 years ago
(diff) |
printing-config: Add a missing import
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[24514] | 1 | #!/usr/bin/python |
---|
| 2 | |
---|
| 3 | from setuptools import setup, find_packages |
---|
| 4 | from distutils.extension import Extension |
---|
[24780] | 5 | from os import path |
---|
[24514] | 6 | |
---|
| 7 | try: |
---|
| 8 | from debian_bundle.changelog import Changelog |
---|
| 9 | from debian_bundle.deb822 import Deb822 |
---|
| 10 | from email.utils import parseaddr |
---|
| 11 | |
---|
| 12 | version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\ |
---|
| 13 | get_version().full_version |
---|
| 14 | |
---|
| 15 | maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer'] |
---|
| 16 | maintainer, maintainer_email = parseaddr(maintainer_full) |
---|
| 17 | except: |
---|
| 18 | version = '0.0.0' |
---|
| 19 | maintainer = '' |
---|
| 20 | maintainer_email = '' |
---|
| 21 | |
---|
| 22 | setup( |
---|
| 23 | name="debathena.printing", |
---|
| 24 | version=version, |
---|
| 25 | description="Printing configuration for Debathena.", |
---|
| 26 | maintainer=maintainer, |
---|
| 27 | maintainer_email=maintainer_email, |
---|
| 28 | license="MIT", |
---|
| 29 | packages=find_packages(), |
---|
[24579] | 30 | tests_require=['mox', 'nose>=0.10'], |
---|
| 31 | setup_requires=['nose>=0.10'], |
---|
| 32 | dependency_links=['http://code.google.com/p/pymox/downloads/list'], |
---|
[24667] | 33 | entry_points={ |
---|
| 34 | 'console_scripts': [ |
---|
| 35 | 'lpr.debathena = debathena.printing.lpr:main', |
---|
[24763] | 36 | 'lpq.debathena = debathena.printing.lpq:main', |
---|
| 37 | 'lprm.debathena = debathena.printing.lprm:main', |
---|
| 38 | 'lp.debathena = debathena.printing.lp:main', |
---|
[24667] | 39 | ], |
---|
| 40 | }, |
---|
[24514] | 41 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.