diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 86 |
1 files changed, 49 insertions, 37 deletions
@@ -1,27 +1,18 @@ #!/usr/bin/python # coding=utf-8 +""" +Setuptools setup file, used to install or test 'cmd2' +""" from setuptools import setup -install_requires = ['pyparsing >= 2.0.1', 'six'] +VERSION = '0.7.0' +DESCRIPTION = "Extra features for standard library's cmd module" -tests_require = ['mock', 'pytest'] +LONG_DESCRIPTION = """cmd2 is an enhancement to the standard library's cmd module for Python 2.7 +and Python 3.3+. It is pure Python code with dependencies only on the six and pyparsing modules. -setup( - name="cmd2", - version="0.7.0", - py_modules=["cmd2"], - use_2to3=False, - - # metadata for upload to PyPI - author='Catherine Devlin', - author_email='catherine.devlin@gmail.com', - description="Extra features for standard library's cmd module", - license='MIT', - keywords='command prompt console cmd', - url='http://packages.python.org/cmd2/', - install_requires=install_requires, - tests_require=tests_require, - long_description="""Enhancements for standard library's cmd module. +The latest documentation for cmd2 can be read online here: +https://cmd2.readthedocs.io/ Drop-in replacement adds several features for command-prompt tools: @@ -40,24 +31,45 @@ Drop-in replacement adds several features for command-prompt tools: * test apps against sample session transcript (see example/example.py) Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. +""" -See docs at http://packages.python.org/cmd2/ -""", - - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Console', - 'Operating System :: OS Independent', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Programming Language :: Python', - 'License :: OSI Approved :: MIT License', - 'Topic :: Software Development :: Libraries :: Python Modules', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - ], -) +CLASSIFIERS = filter(None, map(str.strip, + """ + Development Status :: 5 - Production/Stable + Environment :: Console + Operating System :: OS Independent + Intended Audience :: Developers + Intended Audience :: System Administrators + License :: OSI Approved :: MIT License + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + Topic :: Software Development :: Libraries :: Python Modules + """.splitlines())) +INSTALL_REQUIRES = ['pyparsing >= 2.0.1', 'six'] +TESTS_REQUIRE = ['mock', 'pytest'] + +setup( + name="cmd2", + version=VERSION, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + classifiers=CLASSIFIERS, + author='Catherine Devlin', + author_email='catherine.devlin@gmail.com', + url='https://github.com/python-cmd2/cmd2', + license='MIT', + platforms=['any'], + py_modules=["cmd2"], + keywords='command prompt console cmd', + install_requires=INSTALL_REQUIRES, + tests_require=TESTS_REQUIRE, +) |