Mercurial > python-cmd2
annotate setup.py @ 342:12010fcc4e38
pyparsing_py3'
author | catherine@Drou |
---|---|
date | Tue, 16 Feb 2010 12:57:05 -0500 |
parents | 466eaec2c076 |
children | 4300ef912f4a |
rev | line source |
---|---|
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
1 #!/usr/bin/python |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
2 from setuptools import setup, find_packages |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
3 import sys |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
4 |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
5 python3 = sys.version_info[0] > 2 |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
6 if python3: |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
7 install_requires = [] # will rely on local pyparsing_py3 copy |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
8 else: |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
9 install_requires = ['pyparsing>=1.5.1'] |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
10 |
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", |
312 | 13 version="0.6.0", |
113 | 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', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
23 url = 'http://www.assembla.com/wiki/show/python-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 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
26 long_description = """Enhancements for standard library's cmd module. |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
27 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
28 Drop-in replacement adds several features for command-prompt tools: |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
29 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
30 * Searchable command history (commands: "hi", "li", "run") |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
31 * Load commands from file, save to file, edit commands in file |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
32 * Multi-line commands |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
33 * Case-insensitive commands |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
34 * Special-character shortcut commands (beyond cmd's "@" and "!") |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
35 * Settable environment parameters |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
36 * Parsing commands with flags |
30 | 37 * > (filename), >> (filename) redirect output to file |
38 * < (filename) gets input from file | |
109 | 39 * bare >, >>, < redirect to/from paste buffer |
238 | 40 * accepts abbreviated commands when unambiguous |
41 * `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
|
42 * test apps against sample session transcript (see example/example.py) |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
43 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
44 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
|
45 |
1
59288b38ea7b
moved usage samples back to googlepages
catherine@DellZilla.myhome.westell.com
parents:
0
diff
changeset
|
46 Usage samples at http://catherine.devlin.googlepages.com/cmd2.html |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
47 """, |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
48 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
49 classifiers=[ |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
50 'Development Status :: 4 - Beta', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
51 'Environment :: Console', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
52 'Operating System :: OS Independent', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
53 'Intended Audience :: Developers', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
54 'Intended Audience :: System Administrators', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
55 'Programming Language :: Python', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
56 'License :: OSI Approved :: MIT License', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
57 'Topic :: Software Development :: Libraries :: Python Modules', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
58 ], |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
59 ) |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
60 |