From 06b3639cb83e8c724d92513798fb069dbe707207 Mon Sep 17 00:00:00 2001 From: James Bowman Date: Mon, 11 Feb 2019 19:18:56 -0800 Subject: [PATCH] Start of Python import --- python/MANIFEST | 3 +++ python/go | 12 ++++++++++++ python/setup.py | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 python/MANIFEST create mode 100755 python/go create mode 100644 python/setup.py diff --git a/python/MANIFEST b/python/MANIFEST new file mode 100644 index 0000000..dd7555a --- /dev/null +++ b/python/MANIFEST @@ -0,0 +1,3 @@ +# file GENERATED by distutils, do NOT edit +setup.py +spidriver.py diff --git a/python/go b/python/go new file mode 100755 index 0000000..3c4c78e --- /dev/null +++ b/python/go @@ -0,0 +1,12 @@ +set -e +python2 setup.py install --user +exit + +echo Python3: +python3 ./confirm.py 1 +echo Python2: +python2 ./confirm.py 1 + +# ./thrash.py 3 +./eve.py 9999 +python3 ./watch.py diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 0000000..96f23a5 --- /dev/null +++ b/python/setup.py @@ -0,0 +1,21 @@ +# coding=utf-8 +from setuptools import setup + +LONG = """\ +I2CDriver is a tool for controlling, monitoring and capturing I2C from your PC's USB port. It connects as a standard USB serial device, so there are no drivers to install.""" + +for l in open("i2cdriver.py", "rt"): + if l.startswith("__version__"): + exec(l) + +setup(name='i2cdriver', + version=__version__, + author='James Bowman', + author_email='jamesb@excamera.com', + url='http://i2cdriver.com', + description='I2CDriver is a desktop I2C interface', + long_description=LONG, + license='GPL', + py_modules=['i2cdriver'], + install_requires=['pyserial'] + )