pytty

view setup.py @ 31:34b161a8e076

Now supports whatever baud rates are offered by the termios module, which differs from platform to platform. This uses dict comprehension, so PyTTY no longer supports Python 2.6.
author Arc Riley <arcriley@gmail.com>
date Fri, 20 Jul 2012 18:21:54 -0400
parents 0c4060d7c478
children
line source
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 # PyTTY works with Python 2.7 and above only
5 import sys
6 if sys.version_info[0:2] < (2, 7) :
7 raise RuntimeError('Python 2.7 or above is required for this package.')
10 from src import __author__, __credits__, __doc__, __version__
11 from distutils.core import setup
14 if __name__ == '__main__' : setup(
15 #
16 ###########################################################################
17 #
18 # PyPI settings (for pypi.python.org)
19 #
20 name = 'PyTTY', # Name of project, not module
21 version = __version__.split()[0],
22 description = __doc__.splitlines()[0],
23 long_description = '\n'.join(__doc__.splitlines()[2:]),
24 maintainer = 'Arc Riley',
25 maintainer_email = 'arcriley@gmail.org',
26 url = 'http://www.pytty.org/',
27 download_url = 'http://pypi.python.org/pypi/PyTTY',
28 license = 'GNU Lesser General Public License version 3 (LGPLv3)',
29 classifiers = [
30 'Development Status :: 3 - Alpha',
31 'Intended Audience :: Developers',
32 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
33 'Natural Language :: English',
34 'Operating System :: POSIX',
35 'Programming Language :: Python :: 2.7',
36 'Programming Language :: Python :: 3',
37 'Programming Language :: Python :: 3.1',
38 'Programming Language :: Python :: 3.2',
39 'Programming Language :: Python :: Implementation :: CPython',
40 'Topic :: Communications',
41 'Topic :: Terminals :: Serial',
42 ],
43 #
44 ###########################################################################
45 #
46 # Package settings
47 #
48 packages = ['pytty'],
49 package_dir = {'pytty' : 'src'},
50 #
51 ###########################################################################
52 )