Fix TeamCity Service Message quoting
[third_party/pexpect] / setup.py
1 from distutils.core import setup
2 import os
3 import re
4
5 with open(os.path.join(os.path.dirname(__file__), 'pexpect', '__init__.py'), 'r') as f:
6     for line in f:
7         version_match = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", line)
8         if version_match:
9             version = version_match.group(1)
10             break
11     else:
12         raise Exception("couldn't find version number")
13
14 long_description = """
15 Pexpect is a pure Python module for spawning child applications; controlling
16 them; and responding to expected patterns in their output. Pexpect works like
17 Don Libes' Expect. Pexpect allows your script to spawn a child application and
18 control it as if a human were typing commands.
19
20 Pexpect can be used for automating interactive applications such as ssh, ftp,
21 passwd, telnet, etc. It can be used to a automate setup scripts for duplicating
22 software package installations on different servers. It can be used for
23 automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
24 Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
25 does not require TCL or Expect nor does it require C extensions to be compiled.
26 It should work on any platform that supports the standard Python pty module.
27 The Pexpect interface was designed to be easy to use.
28 """
29
30 setup (name='pexpect',
31     version=version,
32     py_modules=['pxssh', 'fdpexpect', 'FSM', 'screen', 'ANSI'],
33     packages=['pexpect'],
34     description='Pexpect allows easy control of interactive console applications.',
35     long_description=long_description,
36     author='Noah Spurrier; Thomas Kluyver; Jeff Quast',
37     author_email='noah@noah.org; thomas@kluyver.me.uk; contact@jeffquast.com',
38     url='http://pexpect.readthedocs.org/',
39     license='ISC license',
40     platforms='UNIX',
41     classifiers = [
42         'Development Status :: 5 - Production/Stable',
43         'Environment :: Console',
44         'Intended Audience :: Developers',
45         'Intended Audience :: System Administrators',
46         'License :: OSI Approved :: ISC License (ISCL)',
47         'Operating System :: POSIX',
48         'Operating System :: MacOS :: MacOS X',
49         'Programming Language :: Python',
50         'Programming Language :: Python :: 2.6',
51         'Programming Language :: Python :: 2.7',
52         'Programming Language :: Python :: 3',
53         'Topic :: Software Development',
54         'Topic :: Software Development :: Libraries :: Python Modules',
55         'Topic :: Software Development :: Quality Assurance',
56         'Topic :: Software Development :: Testing',
57         'Topic :: System',
58         'Topic :: System :: Archiving :: Packaging',
59         'Topic :: System :: Installation/Setup',
60         'Topic :: System :: Shells',
61         'Topic :: System :: Software Distribution',
62         'Topic :: Terminals',
63     ],
64     install_requires=['ptyprocess'],
65 )