forked from anki/vector-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (55 loc) · 1.92 KB
/
setup.py
File metadata and controls
64 lines (55 loc) · 1.92 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
# Copyright (c) 2018 Anki, Inc.
"""
Vector SDK, by Anki.
Requirements:
* Python 3.6.1 or later
"""
import os.path
import sys
from setuptools import setup
if sys.version_info < (3, 6, 1):
sys.exit('The Anki Vector SDK requires Python 3.6.1 or later')
HERE = os.path.abspath(os.path.dirname(__file__))
def fetch_version():
"""Get the version from the package"""
with open(os.path.join(HERE, 'anki_vector', 'version.py')) as version_file:
versions = {}
exec(version_file.read(), versions)
return versions
VERSION_DATA = fetch_version()
VERSION = VERSION_DATA['__version__']
def get_requirements() -> list:
"""Load the requirements from requirements.txt into a list"""
reqs = []
with open(os.path.join(HERE, 'requirements.txt')) as requirements_file:
for line in requirements_file:
reqs.append(line.strip())
return reqs
setup(
name='anki_vector',
version=VERSION,
description="SDK for Anki's Vector robot",
long_description=__doc__,
url='https://developer.anki.com',
author='Anki, Inc',
author_email='developer@anki.com',
license='Apache License, Version 2.0',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
],
zip_safe=True,
keywords='anki vector robot robotics sdk'.split(),
packages=['anki_vector', 'anki_vector.messaging'],
install_requires=get_requirements(),
extras_require={
'3dviewer': ['PyOpenGL>=3.1'],
'docs': ['sphinx', 'sphinx_rtd_theme', 'sphinx_autodoc_typehints'],
'experimental': ['keras', 'scikit-learn', 'scipy', 'tensorflow'],
'test': ['pytest', 'requests', 'requests_toolbelt'],
}
)