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