Mercurial > python-cmd2
annotate setup.py @ 399:f7cb69b0da9e
change version number to 0.6.2
author | catherine.devlin@gmail.com |
---|---|
date | Sun, 19 Sep 2010 15:42:47 -0400 |
parents | 7812e00ff5b1 |
children | 731f2c93c1cd |
rev | line source |
---|---|
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
1 #!/usr/bin/python |
386 | 2 try: |
3 from setuptools import setup, find_packages | |
4 except ImportError: | |
5 from distutils.core import setup | |
6 def find_packages(): | |
387
43ce9110d5a6
fixed bad indent in setup.py
Catherine Devlin <catherine.devlin@gmail.com>
parents:
386
diff
changeset
|
7 return ['sqlpython'] |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
8 import sys |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
9 |
399 | 10 install_requires = ['pyparsing>=1.5.5'] |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
11 setup( |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
12 name="cmd2", |
399 | 13 version="0.6.2", |
14 py_modules=["cmd2"], | |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
15 use_2to3=True, |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
16 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
17 # metadata for upload to PyPI |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
18 author = 'Catherine Devlin', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
19 author_email = 'catherine.devlin@gmail.com', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
20 description = "Extra features for standard library's cmd module", |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
21 license = 'MIT', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
22 keywords = 'command prompt console cmd', |
381 | 23 url = 'http://packages.python.org/cmd2/', |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
24 install_requires = install_requires, |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
25 long_description = """Enhancements for standard library's cmd module. |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
26 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
27 Drop-in replacement adds several features for command-prompt tools: |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
28 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
29 * Searchable command history (commands: "hi", "li", "run") |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
30 * Load commands from file, save to file, edit commands in file |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
31 * Multi-line commands |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
32 * Case-insensitive commands |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
33 * Special-character shortcut commands (beyond cmd's "@" and "!") |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
34 * Settable environment parameters |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
35 * Parsing commands with flags |
30 | 36 * > (filename), >> (filename) redirect output to file |
37 * < (filename) gets input from file | |
109 | 38 * bare >, >>, < redirect to/from paste buffer |
238 | 39 * accepts abbreviated commands when unambiguous |
40 * `py` enters interactive Python console | |
112
e3b8eaadea56
going to collapse down out of overdone package structure
catherine@Elli.myhome.westell.com
parents:
111
diff
changeset
|
41 * test apps against sample session transcript (see example/example.py) |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
42 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
43 Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
44 |
386 | 45 Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py`` |
46 generates working, Python3-based code. | |
47 | |
381 | 48 See docs at http://packages.python.org/cmd2/ |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
49 """, |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
50 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
51 classifiers=[ |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
52 'Development Status :: 4 - Beta', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
53 'Environment :: Console', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
54 'Operating System :: OS Independent', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
55 'Intended Audience :: Developers', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
56 'Intended Audience :: System Administrators', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
57 'Programming Language :: Python', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
58 'License :: OSI Approved :: MIT License', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
59 'Topic :: Software Development :: Libraries :: Python Modules', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
60 ], |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
61 ) |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
62 |