-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·57 lines (53 loc) · 1.54 KB
/
setup.py
File metadata and controls
executable file
·57 lines (53 loc) · 1.54 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python3
from setuptools import setup, find_packages
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.1.1',
author='Vitor Baptista',
author_email='vitor@vitorbaptista.com',
packages=find_packages(),
include_package_data=True,
package_data={
'pyppd': [
'pyppd-ppdfile.in' # Now properly included in package_data
]
},
scripts=['bin/pyppd'],
url='https://github.com/OpenPrinting/pyppd/',
license='MIT',
description='A CUPS PostScript Printer Driver\'s compressor and generator',
long_description=open('README', 'rb').read().decode('UTF-8'),
cmdclass={'sdist': sdist},
install_requires=[
'setuptools',
'importlib-resources>=5.0; python_version < "3.9"'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: System Administrators',
'Operating System :: POSIX',
'License :: OSI Approved :: MIT License',
'Topic :: Printing',
],
data_files=[
('share/man/man1', ['pyppd.1']),
],
entry_points={
'console_scripts': [
'pyppd=pyppd.runner:main'
]
}
)