From d8b8d8e39824df968dfeb573310d5494e7fbf5b6 Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Tue, 18 Sep 2012 17:42:09 -0600 Subject: [PATCH] initial setup.py --- setup.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 setup.py diff --git a/setup.py b/setup.py new file mode 100755 index 0000000000..b3fcab3224 --- /dev/null +++ b/setup.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python +''' +The setup script for saltapi +''' + +import os +from distutils.core import setup + +if os.environ.get('VIRTUAL_ENV'): + from setuptools import setup + +exec(compile( + open("saltapi/version.py").read(), "saltapi/version.py", 'exec') + ) + +NAME = 'salt-api' +VER = __version__ +DESC = ('Generic interface for providing external access apis to Salt') + + +setup( + name=NAME, + version=VER, + 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 :: 1 - Experimental', + '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', + 'saltapi/netapi', + 'saltapi/netauth', + ], + data_files=[('share/man/man1', + ['doc/man/salt-api.1']), + ('share/man/man7', + ['doc/man/salt-api.7'])], + scripts=['scripts/salt-api'], + )