-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
48 lines (41 loc) · 1.49 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
42
43
44
45
46
47
48
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python packaging."""
import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read().strip()
NAME = 'debisogen'
README = read_relative_file('README')
VERSION = read_relative_file('VERSION')
PACKAGES = [NAME]
REQUIRES = ['setuptools', 'PasteScript', 'Cheetah']
ENTRY_POINTS = {
'paste.paster_create_template': [
'debian_preseed = debisogen.pastescript:DebianPreseedTemplate',
],
'console_scripts': [
'debisogen = debisogen.commands:build_iso',
]
}
if __name__ == '__main__': # Don't run setup() when we import this module.
setup(name=NAME,
version=VERSION,
description='Embed preseed files in ISO images of Debian installer.',
long_description=README,
classifiers=['License :: OSI Approved :: BSD License',
'Development Status :: 3 - Alpha',
'Programming Language :: Python'],
keywords="Debian iso preseed",
author='Benoît Bryon',
author_email='benoit@marmelune.net',
url='https://github.com/benoitbryon/%s' % NAME,
license='BSD',
packages=PACKAGES,
include_package_data=True,
zip_safe=False,
install_requires=REQUIRES,
entry_points=ENTRY_POINTS)