2012-09-18 23:42:09 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
'''
|
|
|
|
The setup script for saltapi
|
|
|
|
'''
|
|
|
|
from distutils.core import setup
|
|
|
|
|
2012-10-09 23:13:47 +00:00
|
|
|
# pylint: disable-msg=W0122,E0602
|
|
|
|
exec(compile(open('saltapi/version.py').read(), 'saltapi/version.py', 'exec'))
|
|
|
|
VERSION = __version__
|
|
|
|
# pylint: enable-msg=W0122,E0602
|
2012-09-18 23:42:09 +00:00
|
|
|
|
|
|
|
NAME = 'salt-api'
|
2012-10-09 23:13:47 +00:00
|
|
|
DESC = ("Generic interface for providing external access APIs to Salt")
|
2012-09-18 23:42:09 +00:00
|
|
|
|
2012-10-09 23:13:47 +00:00
|
|
|
# Specify the test suite for < 2.7
|
|
|
|
try:
|
|
|
|
import unittest2
|
|
|
|
except ImportError:
|
|
|
|
pass
|
2012-09-18 23:42:09 +00:00
|
|
|
|
|
|
|
setup(
|
2012-10-09 23:13:47 +00:00
|
|
|
name=NAME,
|
|
|
|
version=VERSION,
|
|
|
|
description=DESC,
|
|
|
|
author='Thomas S Hatch',
|
|
|
|
author_email='thatch@saltstack.com',
|
|
|
|
url='http://saltstack.org',
|
|
|
|
classifiers=[
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Development Status :: 2 - Pre-Alpha',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Information Technology',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
'Topic :: System :: Distributed Computing'],
|
|
|
|
packages=['saltapi',
|
2012-11-22 05:56:08 +00:00
|
|
|
'saltapi/netapi',
|
|
|
|
'saltapi/netapi/rest_cherrypy',
|
|
|
|
],
|
2012-11-22 06:09:50 +00:00
|
|
|
package_data={
|
|
|
|
'saltapi.netapi.rest_cherrypy': ['tmpl/*']},
|
2012-10-09 23:13:47 +00:00
|
|
|
data_files=[('share/man/man1',
|
|
|
|
['doc/man/salt-api.1']),
|
|
|
|
('share/man/man7',
|
|
|
|
['doc/man/salt-api.7'])],
|
|
|
|
scripts=['scripts/salt-api'],
|
|
|
|
test_suite='unittest2.collector' if 'unittest2' in locals() else None)
|