diff options
-rw-r--r-- | CHANGES.txt | 2 | ||||
-rw-r--r-- | README.txt | 18 | ||||
-rw-r--r-- | setup.py | 12 |
3 files changed, 27 insertions, 5 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 67f8cc7..7d8d84a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -132,3 +132,5 @@ Version 2.0b2 4 Oct 2003 - Jython support is currenty broken as Jython does not have a Python 2.2 compatible release out yet +Version 2.0 6 Nov 2003 + - Fixes setup.py for older distutils @@ -15,11 +15,12 @@ Project Homepage: pyserial.sourceforge.net Features -------- - same class based interface on all supported platforms +- access to the port settings trough Python 2.2 properties - port numbering starts at zero, no need to know the platform dependant port name in the user program - port name can be specified if access through numbering is inappropriate - support for different bytesizes, stopbits, parity and flow control - with RTS/CTS and/or xon/xoff + with RTS/CTS and/or Xon/Xoff - working with or without receive timeout, blocking or non-blocking - file like API with "read" and "write" ("readline" etc. also supported) - The files in this package are 100% pure Python. @@ -45,6 +46,12 @@ let Distutils do the rest: "python setup.py install" The files get installed in the "Lib/site-packages" directory. +There is also a Windows installer, but for developers it may be interesting +to get the source archive anyway, because it contains examples and the readme. + +Do also have a look at the example files in the examples directory in the +source distribution or online in CVS repository. + Serial to USB adapters ---------------------- Such adapters are reported to work under Mac OSX and Windows. They are @@ -128,7 +135,9 @@ ser = serial.Serial( rtscts=0, #enable RTS/CTS flow control ) -The port is immediately opened on object creation. +The port is immediately opened on object creation, if a port is given. +It is not opened if port is None. + Options for read timeout: timeout=None #wait forever timeout=0 #non-blocking mode (return immediately on read) @@ -169,9 +178,12 @@ bytesize #bytesize in bits parity #parity setting stopbits #stop bit with (1,2) timeout #timeout setting -xonxoff #if XonXoff flow control is enabled +xonxoff #if Xon/Xoff flow control is enabled rtscts #if hardware flow control is enabled +Exceptions +---------- +serial.SerialException Constants --------- @@ -1,20 +1,28 @@ # setup.py from distutils.core import setup +import sys #windows installer: # python setup.py bdist_wininst +# patch distutils if it can't cope with the "classifiers" or +# "download_url" keywords +if sys.version < '2.2.3': + from distutils.dist import DistributionMetadata + DistributionMetadata.classifiers = None + DistributionMetadata.download_url = None + setup( name="pyserial", description="Python Serial Port Extension", - version="2.0b2", + version="2.0", author="Chris Liechti", author_email="cliechti@gmx.net", url="http://pyserial.sourceforge.net/", packages=['serial'], license="Python", long_description="Python Serial Port Extension for Win32, Linux, BSD, Jython", - classifiers=[ + classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: End Users/Desktop', |