forked from OpenPrinting/pyppd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·41 lines (37 loc) · 1.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
from distutils.core import setup
from distutils.command.sdist import sdist as _sdist
class sdist(_sdist):
def run(self):
try:
import sys
sys.path.append("contrib")
import git2changes
print('generating CHANGES.txt')
with open('CHANGES.txt', 'w+') as f:
git2changes.run(f)
except ImportError:
pass
_sdist.run(self)
setup(
name='pyppd',
version='1.0.0',
author='Vitor Baptista',
author_email='[email protected]',
packages=['pyppd'],
package_data={'pyppd': ['*.in']},
scripts=['bin/pyppd'],
url='http://github.com/vitorbaptista/pyppd/',
license='MIT',
description='A CUPS PostScript Printer Driver\'s compressor and generator',
long_description=open('README', 'rb').read().decode('UTF-8') + "\n" +
open('ISSUES', 'rb').read().decode('UTF-8'),
cmdclass={'sdist': sdist},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: System Administrators',
'Operating System :: POSIX',
'License :: OSI Approved :: MIT License',
'Topic :: Printing',
],
)