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