cliechti | a3d9de5 | 2010-10-23 22:13:39 +0000 | [diff] [blame] | 1 | # setup.py for pySerial |
cliechti | ff94563 | 2009-07-25 01:15:00 +0000 | [diff] [blame] | 2 | # |
cliechti | a3d9de5 | 2010-10-23 22:13:39 +0000 | [diff] [blame] | 3 | # 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 ..." |
Chris Liechti | fbdd8a0 | 2015-08-09 02:37:45 +0200 | [diff] [blame] | 11 | # |
| 12 | # (C) 2001-2015 Chris Liechti <cliechti@gmx.net> |
| 13 | # |
| 14 | # SPDX-License-Identifier: BSD-3-Clause |
cliechti | ff94563 | 2009-07-25 01:15:00 +0000 | [diff] [blame] | 15 | |
Steven Michalske | b028b25 | 2015-08-06 22:29:23 -0700 | [diff] [blame] | 16 | try: |
| 17 | from setuptools import setup |
| 18 | except ImportError: |
| 19 | from distutils.core import setup |
cliechti | 5600e7c | 2003-11-06 22:17:21 +0000 | [diff] [blame] | 20 | |
cliechti | e428c0b | 2011-08-22 00:10:11 +0000 | [diff] [blame] | 21 | # importing version does not work with Python 3 as files have not yet been |
| 22 | # converted. |
Chris Liechti | 80e2ae2 | 2015-08-04 02:59:50 +0200 | [diff] [blame] | 23 | import serial |
| 24 | version = serial.VERSION |
cliechti | f0c9f51 | 2011-03-18 11:16:15 +0000 | [diff] [blame] | 25 | |
cliechti | 89b4af1 | 2002-02-12 23:24:41 +0000 | [diff] [blame] | 26 | setup( |
Chris Liechti | 8813f57 | 2016-01-31 23:28:33 +0100 | [diff] [blame^] | 27 | name="pyserial", |
| 28 | description="Python Serial Port Extension", |
| 29 | version=version, |
| 30 | author="Chris Liechti", |
| 31 | author_email="cliechti@gmx.net", |
| 32 | url="https://github.com/pyserial/pyserial", |
| 33 | packages=['serial', 'serial.tools', 'serial.urlhandler', 'serial.threaded'], |
| 34 | license="Python", |
| 35 | long_description="Python Serial Port Extension for Win32, OSX, Linux, BSD, Jython, IronPython", |
| 36 | classifiers=[ |
cliechti | 8db88b6 | 2003-09-10 20:14:53 +0000 | [diff] [blame] | 37 | 'Development Status :: 5 - Production/Stable', |
| 38 | 'Intended Audience :: Developers', |
| 39 | 'Intended Audience :: End Users/Desktop', |
Chris Liechti | 80e2ae2 | 2015-08-04 02:59:50 +0200 | [diff] [blame] | 40 | 'License :: OSI Approved :: BSD License', |
cliechti | 8db88b6 | 2003-09-10 20:14:53 +0000 | [diff] [blame] | 41 | 'Natural Language :: English', |
| 42 | 'Operating System :: POSIX', |
| 43 | 'Operating System :: Microsoft :: Windows', |
Chris Liechti | 72726d7 | 2015-10-23 22:03:04 +0200 | [diff] [blame] | 44 | 'Operating System :: MacOS :: MacOS X', |
cliechti | 8db88b6 | 2003-09-10 20:14:53 +0000 | [diff] [blame] | 45 | 'Programming Language :: Python', |
cliechti | 1eb947d | 2009-07-25 00:44:23 +0000 | [diff] [blame] | 46 | 'Programming Language :: Python :: 2', |
cliechti | 07709e4 | 2010-05-21 00:30:09 +0000 | [diff] [blame] | 47 | 'Programming Language :: Python :: 2.7', |
cliechti | 1eb947d | 2009-07-25 00:44:23 +0000 | [diff] [blame] | 48 | 'Programming Language :: Python :: 3', |
Chris Liechti | c2b2679 | 2015-09-22 23:16:07 +0200 | [diff] [blame] | 49 | 'Programming Language :: Python :: 3.2', |
| 50 | 'Programming Language :: Python :: 3.3', |
Chris Liechti | 80e2ae2 | 2015-08-04 02:59:50 +0200 | [diff] [blame] | 51 | 'Programming Language :: Python :: 3.4', |
| 52 | 'Programming Language :: Python :: 3.5', |
cliechti | 8db88b6 | 2003-09-10 20:14:53 +0000 | [diff] [blame] | 53 | 'Topic :: Communications', |
| 54 | 'Topic :: Software Development :: Libraries', |
cliechti | ff94563 | 2009-07-25 01:15:00 +0000 | [diff] [blame] | 55 | 'Topic :: Software Development :: Libraries :: Python Modules', |
cliechti | 8db88b6 | 2003-09-10 20:14:53 +0000 | [diff] [blame] | 56 | 'Topic :: Terminals :: Serial', |
| 57 | ], |
Chris Liechti | 8813f57 | 2016-01-31 23:28:33 +0100 | [diff] [blame^] | 58 | platforms='any', |
| 59 | scripts=['serial/tools/miniterm.py'], |
cliechti | 54f69b6 | 2009-07-21 19:48:41 +0000 | [diff] [blame] | 60 | ) |