annotate setup.py @ 389:be4194f41916

before jens bundle
author catherine.devlin@gmail.com
date Wed, 07 Jul 2010 19:24:15 -0400
parents 43ce9110d5a6
children 49bd3dc5c205
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
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
99c66656d81b tagging 0.6.1
catherine@Drou
parents: 381
diff changeset
18 version="0.6.1",
344
catherine@Drou
parents: 312
diff changeset
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
04897151927b doc handling corrections
catherine@Drou
parents: 344
diff changeset
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
786b3ea3e440 new version 0.3.1
catherine@localhost
parents: 13
diff changeset
42 * > (filename), >> (filename) redirect output to file
786b3ea3e440 new version 0.3.1
catherine@localhost
parents: 13
diff changeset
43 * < (filename) gets input from file
109
78c4db4c2045 all done but the proper packaging
catherine@dellzilla
parents: 101
diff changeset
44 * bare >, >>, < redirect to/from paste buffer
238
catherine@dellzilla
parents: 211
diff changeset
45 * accepts abbreviated commands when unambiguous
catherine@dellzilla
parents: 211
diff changeset
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
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
51 Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py``
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
52 generates working, Python3-based code.
43ea72144e04 setuptools optional
catherine@dellzilla
parents: 384
diff changeset
53
381
04897151927b doc handling corrections
catherine@Drou
parents: 344
diff changeset
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