forked from sunbenxin/oscm
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.old.py
65 lines (62 loc) · 1.73 KB
/
setup.old.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
import os,sys
from distutils.core import setup
#from setuptools import setup
sys.path.insert(0, os.path.abspath('lib'))
from library import __version__, __author__
#print (__version__)
readme = open('README.md').read()
changes = open('CHANGES.txt').read()
#version_file = 'oscm.py'
#version = re.findall("__version__ = '(.*)'", open(version_file).read())[0]
#try:
# version = __import__('utile').git_version(version)
#except ImportError:
# pass
setup(
name='netkiller-devops',
version=__version__,
description="DevOps of useful deployment and automation",
long_description=readme + '\n\n' + changes,
keywords='devops',
author=__author__,
author_email='[email protected]',
url='http://netkiller.github.io',
license='MIT',
#py_modules=[
# 'library.rsync',
# 'library.whiptail'
#],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.4',
],
package_dir={ '': 'library' },
packages=[
''
],
scripts=[
'bin/deployment',
'bin/backup',
'bin/osconf',
'bin/mysqlshell',
'bin/chpasswd.sh',
'bin/gitsync'
],
data_files = [
('etc', ['etc/deployment.cfg']),
('etc', ['etc/task.cfg']),
('etc', ['etc/schedule.cfg']),
('etc', ['etc/os.ini']),
#('log', ['log/deployment.log']),
('share', ['share/example/testing/example.com.ini']),
('share', ['share/profile.d/devops.sh'])
#('example/testing', ['example/testing/example.com.ini']),
#('example/config/testing', ['example/config/testing/www.example.com.ini']),
#('example/exclude/testing', ['example/exclude/testing/www.example.com.lst'])
]
)