-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (58 loc) · 2.27 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
# Copyright (c) 2015 Riverbed Technology, Inc.
#
# This software is licensed under the terms and conditions of the MIT License
# accompanying the software ("License"). This software is distributed "AS IS"
# as set forth in the License.
import os
try:
from setuptools import setup, find_packages, Command
packagedata = True
except ImportError:
from distutils.core import setup
from distutils.cmd import Command
packagedata = False
def find_packages(where='steelscript', exclude=None):
return [p for p, files, dirs in os.walk(where) if '__init__.py' in files]
from gitpy_versioning import get_version
setup_args = {
'name': 'steelscript.appfwk.business-hours',
'namespace_packages': ['steelscript'],
'version': get_version(),
'author': 'Riverbed Technology',
'author_email': 'eng-github@riverbed.com',
'url': 'http://pythonhosted.org/steelscript',
'license': 'MIT',
'description': 'Business-Hours plugin for SteelScript Application Framework',
'long_description': """Business-Hours for SteelScript Application Framework
====================================================
SteelScript is a collection of libraries and scripts in Python and JavaScript for
interacting with Riverbed Technology devices.
For a complete guide to installation, see:
http://pythonhosted.org/steelscript/
""",
'platforms': 'Linux, Mac OS, Windows',
'classifiers': [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Networking',
],
'packages': find_packages(exclude=('gitpy_versioning',)),
'scripts': None,
'install_requires': (
'steelscript.appfwk',
),
'tests_require': (),
'entry_points': {
'portal.plugins': [
'business_hours = steelscript.appfwk.business_hours.plugin:BusinessHoursPlugin'
],
},
}
if packagedata:
setup_args['include_package_data'] = True
setup(**setup_args)