-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
32 lines (31 loc) · 1.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
"""
Alpha library for the AD7606-6 for use with a Raspberry Pi
Written by Benjamin Sumlin, Washington University in St. Louis
Aerosol Impacts and Research Laboratory
Department of Energy, Environmental, and Chemical Engineering
"""
from setuptools import setup
import re
VERSIONFILE="rpi_ad7606/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(name='rpi_ad7606',
version=verstr,
description="Alpha library for interfacing a Raspberry Pi with an Analog Devices AD7606 ADC.",
long_description=verstr + ' - SUPER ALPHA.',
url='http://air.eece.wustl.edu/people/ben-sumlin/',
author='Benjamin Sumlin',
author_email='[email protected]',
license='MIT',
packages=['rpi_ad7606'],
keywords=['ADC'],
classifiers = ['Development Status :: 3 - Alpha','Intended Audience :: Science/Research','Programming Language :: Python :: 3 :: Only'],
install_requires=['pigpio','numpy'],
python_requires='>=3',
zip_safe=False)