-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
71 lines (62 loc) · 2.38 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import sys
import os
import io
from setuptools import setup, find_packages
if sys.version_info < (3, 7):
sys.exit('Sorry, Python < 3.7 is not supported.')
def is_raspberrypi():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
if 'raspberry pi' in m.read().lower():
return True
except Exception:
pass
return False
def is_coral():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
if 'coral' in m.read().lower():
return True
except Exception:
pass
return False
with open("README.md", "r") as fh:
long_description = fh.read()
deps = ['numpy', 'Pillow', 'psutil']
if is_raspberrypi(): # drone
deps.append(['picamera', 'yamspy==0.3.3', 'opencv-python'])
elif is_coral(): # drone
deps.append(['yamspy==0.3.3', 'opencv-python'])
else: # remote
deps.append(['opencv-contrib-python', 'pysimplegui'])
setup(name='cognifly',
packages=[package for package in find_packages()],
version='0.3.3',
license='MIT',
description='Control the CogniFly open-source drone from python',
long_description=long_description,
long_description_content_type="text/markdown",
author='Yann Bouteiller',
url='https://github.com/thecognifly/cognifly-python',
download_url='https://github.com/thecognifly/cognifly-python/archive/refs/tags/v0.3.3.tar.gz',
keywords=['cognifly', 'drone', 'remote', 'control'],
install_requires=deps,
scripts=["scripts/cognifly-controller", ],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Framework :: Robot Framework :: Library',
'Topic :: Education',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
package_data={'cognifly': [
'cognifly_remote/sprites/gamepad_off.png',
'cognifly_remote/sprites/gamepad_on.png']}
)