forked from anki/cozmo-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
104 lines (87 loc) · 2.96 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright (c) 2016 Anki, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the file LICENSE.txt or at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
'''
Cozmo, by Anki.
Cozmo is a small robot with a big personality.
This library lets you take command of Cozmo and write programs for him.
Cozmo features:
* A camera with advanced vision system
* A robotic lifter
* Independent tank treads
* Pivotable head
* An array of LEDs
* An accelerometer
* A gyroscope
* Cliff detection
* Face recognition
* Path planning
* Animation and behavior systems
* Power cubes, with LEDs, an accelerometer and tap detection
This SDK provides users with access to take control of Cozmo and write simple
or advanced programs with him.
Requirements:
* Python 3.5.1 or later
Optional requirements for camera image processing/display:
* Tkinter (Usually supplied by default with Python)
* Pillow
* NumPy
'''
from setuptools import setup, find_packages
import os.path
import sys
if sys.version_info < (3,5,1):
sys.exit('cozmo requires Python 3.5.1 or later')
here = os.path.abspath(os.path.dirname(__file__))
def fetch_version():
with open(os.path.join(here, 'src', 'cozmo', 'version.py')) as f:
ns = {}
exec(f.read(), ns)
return ns
version_data = fetch_version()
version = version_data['__version__']
cozmoclad_version = version_data['__cozmoclad_version__']
if cozmoclad_version is None:
install_requires = ['cozmoclad']
else:
install_requires = ['cozmoclad==' + cozmoclad_version]
setup(
name='cozmo',
version=version,
description='SDK for Anki Cozmo, the small robot with the big personality',
long_description=__doc__,
url='https://developer.anki.com/cozmo/',
author='Anki, Inc',
author_email='[email protected]',
license='Apache License, Version 2.0',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.5',
],
zip_safe=True,
keywords='anki cozmo robot robotics sdk'.split(),
package_dir={'': 'src'},
packages=find_packages('src'),
package_data={
'cozmo': ['LICENSE.txt']
},
install_requires=install_requires,
extras_require={
'camera': ['Pillow>=3.3', 'numpy>=1.11'],
'test': ['tox', 'pytest'],
}
)