Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (77 sloc) 2.46 KB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
commandor
~~~~~~~~~~~~~~~~~~~~~
A systems integration framework, built to bring the benefits of
configuration management to your entire infrastructure.
:copyright: (c) 2012 by Alexandr Lispython (alex@obout.ru).
:license: BSD, see LICENSE for more details.
:github: http://github.com/Lispython/commandor
"""
import os
import sys
from setuptools import setup
try:
readme_content = open(os.path.join(os.path.abspath(
os.path.dirname(__file__)), "README.rst")).read()
except Exception:
exc = sys.exc_info()[1]
# Current exception is 'exc'
print(exc)
readme_content = __doc__
VERSION = "0.1.6"
py_ver = sys.version_info
#: Python 2.x?
is_py2 = (py_ver[0] == 2)
#: Python 3.x?
is_py3 = (py_ver[0] == 3)
def run_tests():
from tests import suite
return suite()
tests_require = [
'nose']
install_requires = []
if not (is_py3 or (is_py2 and py_ver[1] >= 7)):
install_requires.append("importlib==1.0.2")
setup(
name="commandor",
version=VERSION,
description="Simple wrapper to parse nested script options and args",
long_description=readme_content,
author="Alex Lispython",
author_email="alex@obout.ru",
maintainer="Alexandr Lispython",
maintainer_email="alex@obout.ru",
url="https://github.com/Lispython/commandor",
packages=["commandor"],
include_package_data=True,
install_requires=install_requires,
tests_require=tests_require,
license="BSD",
platforms = ['Linux', 'Mac', 'Windows'],
classifiers=[
## "Development Status :: 1 - Planning",
#"Development Status :: 2 - Pre-Alpha",
##"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Internet",
"Topic :: Utilities",
"Topic :: Software Development",
],
test_suite = '__main__.run_tests'
)