-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
55 lines (49 loc) · 2.14 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
__author__ = 'Doug Rohm'
import re
import ast
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('pi_sht1x/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))
download_url = 'https://github.com/drohm/pi-sht1x/releases/tag/{0}'.format(version)
classifiers = ['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Home Automation',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: System :: Hardware :: Hardware Drivers',
'Topic :: System :: Monitoring',
'Topic :: System :: Operating System Kernels :: Linux',
'Topic :: Software Development',
'Topic :: Utilities']
setup(
name='pi-sht1x',
version=version,
url='https://github.com/drohm/pi-sht1x',
license='MIT',
author=__author__,
author_email='[email protected]',
description='Python 3 library for Sensirion SHT1x series of temperature & humidity sensors for the Raspberry Pi.',
long_description=long_description,
include_package_data=True,
download_url=download_url,
packages=['pi_sht1x', 'examples'],
install_requires=[
'RPi.GPIO>=0.7.0',
],
classifiers=classifiers,
keywords='sht sensor sht1x sensirion T temperature humidity RH dew-point celsius measurement'
' gpio serial 2-wire crc crc-8 hardware driver ic'
)