blob: 69331e7b501130a5bcd5fb405429b80c54e86191 [file] [log] [blame]
cliechtia3d9de52010-10-23 22:13:39 +00001# setup.py for pySerial
cliechtiff945632009-07-25 01:15:00 +00002#
cliechtia3d9de52010-10-23 22:13:39 +00003# Windows installer:
4# "python setup.py bdist_wininst"
5#
6# Direct install (all systems):
7# "python setup.py install"
8#
9# For Python 3.x use the corresponding Python executable,
10# e.g. "python3 setup.py ..."
cliechtiff945632009-07-25 01:15:00 +000011
cliechti7aaead32009-07-23 14:02:41 +000012import sys
13
Steven Michalskeb028b252015-08-06 22:29:23 -070014try:
15 from setuptools import setup
16except ImportError:
17 from distutils.core import setup
cliechti5600e7c2003-11-06 22:17:21 +000018
cliechtie428c0b2011-08-22 00:10:11 +000019# importing version does not work with Python 3 as files have not yet been
20# converted.
Chris Liechti80e2ae22015-08-04 02:59:50 +020021import serial
22version = serial.VERSION
cliechtif0c9f512011-03-18 11:16:15 +000023
cliechti89b4af12002-02-12 23:24:41 +000024setup(
cliechti67bbe912013-10-13 22:24:37 +000025 name = "pyserial",
cliechti54f69b62009-07-21 19:48:41 +000026 description = "Python Serial Port Extension",
cliechtie428c0b2011-08-22 00:10:11 +000027 version = version,
cliechti54f69b62009-07-21 19:48:41 +000028 author = "Chris Liechti",
29 author_email = "cliechti@gmx.net",
Chris Liechti80e2ae22015-08-04 02:59:50 +020030 url = "https://github.com/pyserial/pyserial",
cliechti0e69a9c2011-03-09 15:30:11 +000031 packages = ['serial', 'serial.tools', 'serial.urlhandler'],
cliechti54f69b62009-07-21 19:48:41 +000032 license = "Python",
33 long_description = "Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython",
cliechti5600e7c2003-11-06 22:17:21 +000034 classifiers = [
cliechti8db88b62003-09-10 20:14:53 +000035 'Development Status :: 5 - Production/Stable',
36 'Intended Audience :: Developers',
37 'Intended Audience :: End Users/Desktop',
Chris Liechti80e2ae22015-08-04 02:59:50 +020038 'License :: OSI Approved :: BSD License',
cliechti8db88b62003-09-10 20:14:53 +000039 'Natural Language :: English',
40 'Operating System :: POSIX',
41 'Operating System :: Microsoft :: Windows',
42 'Programming Language :: Python',
cliechti1eb947d2009-07-25 00:44:23 +000043 'Programming Language :: Python :: 2',
cliechti07709e42010-05-21 00:30:09 +000044 'Programming Language :: Python :: 2.7',
cliechti1eb947d2009-07-25 00:44:23 +000045 'Programming Language :: Python :: 3',
Chris Liechti80e2ae22015-08-04 02:59:50 +020046 'Programming Language :: Python :: 3.4',
47 'Programming Language :: Python :: 3.5',
cliechti8db88b62003-09-10 20:14:53 +000048 'Topic :: Communications',
49 'Topic :: Software Development :: Libraries',
cliechtiff945632009-07-25 01:15:00 +000050 'Topic :: Software Development :: Libraries :: Python Modules',
cliechti8db88b62003-09-10 20:14:53 +000051 'Topic :: Terminals :: Serial',
52 ],
cliechti54f69b62009-07-21 19:48:41 +000053 platforms = 'any',
cliechti16d73772011-03-09 15:33:33 +000054 scripts = ['serial/tools/miniterm.py'],
cliechti54f69b62009-07-21 19:48:41 +000055)