forked from jpoppe/seedBank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·57 lines (51 loc) · 2.12 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
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
from distutils.core import setup
import fnmatch
import os
def get_data_files(dir):
result = []
for root, _, files in os.walk(dir):
files = [os.path.join(root, file) for file in files
if not fnmatch.fnmatch(file, '*.pyc')]
result.append(('/' + root, files))
return result
def get_scripts(dir):
return [os.path.join(dir, filename) for filename in os.listdir(dir)]
def get_docs(dir):
result = []
for root, _, files in os.walk(dir):
files = [os.path.join(root, file) for file in files]
result.append(('/usr/share/doc/seedbank/' + root, files))
return result
long_description = '''
seedBank is a simple and flexible tool to manage unattended Debian and Ubuntu netboot installations. It is based on Debian preseed files, so it will provide the cleanest Debian installations possible by just using the standard Debian tools. Since version 2.0.0 it also has support for modifying installer ISOs so you could generate ISO's which are able to do unattended installations.
'''
setup(
name='seedbank',
version='2.0.0rc7',
description='The cleanest way of Debian/Ubuntu netboot installations',
author='Jasper Poppe',
author_email='[email protected]',
maintainer ='Jasper Poppe',
maintainer_email='[email protected]',
url='http://www.infrastructureanywhere.com',
packages=['seedbank'],
scripts=get_scripts('bin'),
data_files = get_data_files('etc') + get_data_files('var') + get_docs('manual') + ['README.rst'],
requires = 'yaml',
license='GPL',
platforms='UNIX',
long_description=long_description.strip(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console'
'Intended Audience :: Advanced End Users',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Unattended Installations',
'Topic :: Provisioning',
'Topic :: Debian Seeding'
]
)