forked from Karaage-Cluster/karaage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·91 lines (81 loc) · 2.8 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env python
# Copyright 2012-2014 VPAC
#
# This file is part of django-tldap.
#
# django-tldap is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# django-tldap is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with django-tldap If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup
import os
with open('VERSION.txt', 'r') as f:
version = f.readline().strip()
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
packages = []
for dirpath, dirnames, filenames in os.walk("karaage"):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'):
del dirnames[i]
if filenames:
packages.append('.'.join(fullsplit(dirpath)))
tests_require = open('test-requirements.txt').readlines()
install_requires = open('requirements.txt').readlines()
setup(
name="karaage",
version=version,
url='https://github.com/Karaage-Cluster/karaage',
author='Brian May',
author_email='brian@v3.org.au',
description='Collection of Django apps to manage a clusters',
packages=packages,
license="GPL3+",
long_description=open('README.rst').read(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public "
"License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="karaage cluster user administration",
package_data={
'': ['*.css', '*.html', '*.js', '*.png', '*.gif', '*.map', '*.txt'],
},
scripts=[
'sbin/kg_set_secret_key',
'sbin/kg-manage',
'sbin/kg-daily-cleanup',
],
data_files=[
('/etc/karaage', ['conf/global_settings.py', ]),
],
install_requires=install_requires,
tests_require=tests_require,
extras_require={'tests': tests_require},
)