source: trunk/debathena/config/printing-config/setup.py @ 24763

Revision 24763, 1.3 KB checked in by broder, 14 years ago (diff)
printing-config: Make lpq, lprm, and lp wrappers around similarly named Python modules.
  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2
3from setuptools import setup, find_packages
4from distutils.extension import Extension
5
6try:
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)
16except:
17    version = '0.0.0'
18    maintainer = ''
19    maintainer_email = ''
20
21setup(
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            'lpq.debathena = debathena.printing.lpq:main',
36            'lprm.debathena = debathena.printing.lprm:main',
37            'lp.debathena = debathena.printing.lp:main',
38            ],
39        },
40)
Note: See TracBrowser for help on using the repository browser.