forked from milas/rfdevices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (59 loc) · 1.85 KB
/
setup.py
File metadata and controls
65 lines (59 loc) · 1.85 KB
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
56
57
58
59
60
61
62
63
64
65
import os
import sys
from setuptools import setup, find_packages
import versioneer
# try to convert from markdown to RST but don't blow-up if we can't
readme_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
try:
from pypandoc import convert
readme = convert(readme_path, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
with open(readme_path, 'r', encoding='utf-8') as f:
readme = f.read()
install_requires = ['Adafruit-GPIO']
if sys.version_info[0] == 3 and sys.version_info[1] < 5:
# need backport typing package
install_requires.append('typing')
setup(
name='rfdevices',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
install_requires=install_requires,
scripts=['scripts/rfsend'],
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
package_data={
'rfdevices': ['protocols/*.conf']
},
author='Milas Bowman',
author_email='milasb@gmail.com',
description='Control household RF devices with low-cost GPIO modules',
long_description=readme,
url='https://github.com/milas/rfdevices',
license='BSD',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development',
'Topic :: Home Automation',
'Topic :: System :: Hardware',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
],
keywords=[
'rpi',
'raspberry',
'raspberry pi',
'adafruit',
'beaglebone',
'rf',
'gpio',
'radio',
'433',
'433mhz',
'315',
'315mhz'
]
)