annotate setup.py @ 438:a5f3d5a89d6c tip

pyparsing 2.0.0 only if on Python3
author Catherine Devlin <catherine.devlin@gmail.com>
date Tue, 19 Feb 2013 04:33:12 -0500
parents c4c35f002aef
children
rev   line source
0
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
1 #!/usr/bin/python
386
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
2 try:
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
3 from setuptools import setup, find_packages
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
4 except ImportError:
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
5 from distutils.core import setup
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
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
438
a5f3d5a89d6c pyparsing 2.0.0 only if on Python3
Catherine Devlin <catherine.devlin@gmail.com>
parents: 436
diff changeset
10 if sys.version_info.major < 3:
a5f3d5a89d6c pyparsing 2.0.0 only if on Python3
Catherine Devlin <catherine.devlin@gmail.com>
parents: 436
diff changeset
11 install_requires = ['pyparsing == 1.5.7']
a5f3d5a89d6c pyparsing 2.0.0 only if on Python3
Catherine Devlin <catherine.devlin@gmail.com>
parents: 436
diff changeset
12 else:
a5f3d5a89d6c pyparsing 2.0.0 only if on Python3
Catherine Devlin <catherine.devlin@gmail.com>
parents: 436
diff changeset
13 install_requires = ['pyparsing >= 2.0.0']
a5f3d5a89d6c pyparsing 2.0.0 only if on Python3
Catherine Devlin <catherine.devlin@gmail.com>
parents: 436
diff changeset
14
0
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
15 setup(
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
16 name="cmd2",
436
c4c35f002aef to version 0.6.4
catherine.devlin@gmail.com
parents: 424
diff changeset
17 version="0.6.4",
399
f7cb69b0da9e change version number to 0.6.2
catherine.devlin@gmail.com
parents: 398
diff changeset
18 py_modules=["cmd2"],
311
54e2dd53ba38 excluded --options from --comments with .NotAny
catherine@bothari
parents: 295
diff changeset
19 use_2to3=True,
0
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
20
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
21 # metadata for upload to PyPI
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
22 author = 'Catherine Devlin',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
23 author_email = 'catherine.devlin@gmail.com',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
24 description = "Extra features for standard library's cmd module",
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
25 license = 'MIT',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
26 keywords = 'command prompt console cmd',
381
04897151927b doc handling corrections
catherine@Drou
parents: 344
diff changeset
27 url = 'http://packages.python.org/cmd2/',
311
54e2dd53ba38 excluded --options from --comments with .NotAny
catherine@bothari
parents: 295
diff changeset
28 install_requires = install_requires,
0
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
29 long_description = """Enhancements for standard library's cmd module.
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 Drop-in replacement adds several features for command-prompt tools:
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 * Searchable command history (commands: "hi", "li", "run")
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
34 * Load commands from file, save to file, edit commands in file
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
35 * Multi-line commands
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
36 * Case-insensitive commands
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
37 * Special-character shortcut commands (beyond cmd's "@" and "!")
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
38 * Settable environment parameters
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
39 * Parsing commands with flags
30
786b3ea3e440 new version 0.3.1
catherine@localhost
parents: 13
diff changeset
40 * > (filename), >> (filename) redirect output to file
786b3ea3e440 new version 0.3.1
catherine@localhost
parents: 13
diff changeset
41 * < (filename) gets input from file
109
78c4db4c2045 all done but the proper packaging
catherine@dellzilla
parents: 101
diff changeset
42 * bare >, >>, < redirect to/from paste buffer
238
catherine@dellzilla
parents: 211
diff changeset
43 * accepts abbreviated commands when unambiguous
catherine@dellzilla
parents: 211
diff changeset
44 * `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
45 * test apps against sample session transcript (see example/example.py)
0
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
46
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
47 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
48
386
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
49 Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py``
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
50 generates working, Python3-based code.
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
51
381
04897151927b doc handling corrections
catherine@Drou
parents: 344
diff changeset
52 See docs at http://packages.python.org/cmd2/
0
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
53 """,
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
54
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
55 classifiers=[
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
56 'Development Status :: 4 - Beta',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
57 'Environment :: Console',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
58 'Operating System :: OS Independent',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
59 'Intended Audience :: Developers',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
60 'Intended Audience :: System Administrators',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
61 'Programming Language :: Python',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
62 'License :: OSI Approved :: MIT License',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
63 'Topic :: Software Development :: Libraries :: Python Modules',
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
64 ],
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
65 )
febfdc79550b moved repository to Assembla
catherine@DellZilla.myhome.westell.com
parents:
diff changeset
66