Mercurial > python-cmd2
annotate setup.py @ 386:43ea72144e04
setuptools optional
author | catherine@dellzilla |
---|---|
date | Fri, 12 Mar 2010 19:41:57 -0500 |
parents | 99c66656d81b |
children | 43ce9110d5a6 |
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(): | |
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 |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
10 python3 = sys.version_info[0] > 2 |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
11 if python3: |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
12 install_requires = [] # will rely on local pyparsing_py3 copy |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
13 else: |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
14 install_requires = ['pyparsing>=1.5.1'] |
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
15 |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
16 setup( |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
17 name="cmd2", |
384 | 18 version="0.6.1", |
344 | 19 py_modules=["cmd2","pyparsing_py3"], |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
20 use_2to3=True, |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
21 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
22 # metadata for upload to PyPI |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
23 author = 'Catherine Devlin', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
24 author_email = 'catherine.devlin@gmail.com', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
25 description = "Extra features for standard library's cmd module", |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
26 license = 'MIT', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
27 keywords = 'command prompt console cmd', |
381 | 28 url = 'http://packages.python.org/cmd2/', |
311
54e2dd53ba38
excluded --options from --comments with .NotAny
catherine@bothari
parents:
295
diff
changeset
|
29 install_requires = install_requires, |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
30 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
31 long_description = """Enhancements for standard library's cmd module. |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
32 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
33 Drop-in replacement adds several features for command-prompt tools: |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
34 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
35 * Searchable command history (commands: "hi", "li", "run") |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
36 * Load commands from file, save to file, edit commands in file |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
37 * Multi-line commands |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
38 * Case-insensitive commands |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
39 * Special-character shortcut commands (beyond cmd's "@" and "!") |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
40 * Settable environment parameters |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
41 * Parsing commands with flags |
30 | 42 * > (filename), >> (filename) redirect output to file |
43 * < (filename) gets input from file | |
109 | 44 * bare >, >>, < redirect to/from paste buffer |
238 | 45 * accepts abbreviated commands when unambiguous |
46 * `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
|
47 * test apps against sample session transcript (see example/example.py) |
0
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 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
|
50 |
386 | 51 Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py`` |
52 generates working, Python3-based code. | |
53 | |
381 | 54 See docs at http://packages.python.org/cmd2/ |
0
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
55 """, |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
56 |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
57 classifiers=[ |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
58 'Development Status :: 4 - Beta', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
59 'Environment :: Console', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
60 'Operating System :: OS Independent', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
61 'Intended Audience :: Developers', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
62 'Intended Audience :: System Administrators', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
63 'Programming Language :: Python', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
64 'License :: OSI Approved :: MIT License', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
65 'Topic :: Software Development :: Libraries :: Python Modules', |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
66 ], |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
67 ) |
febfdc79550b
moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff
changeset
|
68 |