-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (39 loc) · 1.32 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
# -*- coding: utf-8 -*-
import sys
import os.path
import platform
import setuptools
NAME = 'raspi_ios'
root_dir = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(root_dir, 'README.md')
with open(readme_file) as f:
long_description = f.read()
version_module = os.path.join(root_dir, NAME, 'version.py')
with open(version_module) as f:
exec(f.read())
if sys.version_info[:2] < (3, 5):
raise Exception("raspi_ios requires Python >= 3.5")
if not platform.machine().startswith('arm'):
raise Exception('raspi_ios only support raspberry')
if platform.system().lower() != 'linux':
raise Exception('raspi_ios only support linux')
packages = [NAME]
setuptools.setup(
name=NAME,
version=version,
description="Raspberry pi websocket io server",
long_description=long_description,
url='https://github.com/amaork/raspi-ios',
author='Amaork',
author_email='[email protected]',
license='MIT',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
],
packages=packages,
extras_require={
':python_version>="3.5"': ['asyncio', 'websockets==3.4', 'websocket', 'lockfile', 'python-daemon',
'spidev==3.3', 'RPi.GPIO', 'pyserial', 'raspi_io>=0.26', 'pylibi2c', 'pylibmmal'],
},
)