forked from autorope/donkeycar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
156 lines (145 loc) · 4.66 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
import os
from setuptools import find_packages, setup
# include the non python files
def package_files(directory, strip_leading):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
package_file = os.path.join(path, filename)
paths.append(package_file[len(strip_leading):])
return paths
car_templates = ['templates/*']
kivy_ui = ['management/*']
web_controller_html = package_files('donkeycar/parts/controllers/templates',
'donkeycar/')
extra_files = car_templates + web_controller_html + kivy_ui
print('extra_files', extra_files)
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='donkeycar',
version="4.4.3",
long_description=long_description,
description='Self driving library for python.',
url='https://github.com/roboracingleague/donkeycar',
author='Will Roscoe, Adam Conway, Tawn Kramer',
author_email='wroscoe@gmail.com, adam@casaconway.com, tawnkramer@gmail.com',
license='MIT',
entry_points={
'console_scripts': [
'donkey=donkeycar.management.base:execute_from_command_line',
],
},
install_requires=[
#'numpy==1.21.6',
'numpy',
'pillow',
'docopt',
'tornado',
'requests',
'h5py',
'PrettyTable',
'paho-mqtt',
"simple_pid",
'progress',
'typing_extensions',
'pyfiglet',
'psutil',
"pynmea2",
'pyserial',
"utm",
"transitions",
"watchdog"
],
extras_require={
'pi': [
'picamera',
'Adafruit_PCA9685',
'adafruit-circuitpython-lis3dh',
'adafruit-circuitpython-ssd1306',
'adafruit-circuitpython-rplidar',
'RPi.GPIO',
'imgaug'
],
'nano': [
'Adafruit_PCA9685',
'adafruit-circuitpython-lis3dh',
'adafruit-circuitpython-ssd1306',
'adafruit-circuitpython-rplidar',
'Jetson.GPIO',
],
'pc': [
'matplotlib',
'kivy',
'protobuf==3.20.3',
#'protobuf==3.19.6',
'pandas',
'pyyaml',
'plotly',
'imgaug',
'segment_anything @ git+https://github.com/facebookresearch/segment-anything.git@main',
'torch',
'torchvision',
'torchaudio'
],
'macm2': [
#'protobuf==3.19.6',
'tensorflow-macos==2.9.2',
'tensorflow-metal==0.5.1',
'kivy==2.1',
'pandas',
'plotly',
'albumentations',
'segment_anything @ git+https://github.com/facebookresearch/segment-anything.git@main#egg=sam',
'torch',
'torchvision',
'torchaudio'
],
'macm2': [
'tensorflow-macos==2.9.2',
'tensorflow-metal==0.5.1',
'kivy==2.1',
'pandas',
'plotly',
'albumentations'
],
'dev': [
'pytest',
'pytest-cov',
'responses',
'mypy'
],
'ci': ['codecov'],
'tf': ['tensorflow==2.2.0'],
'torch': [
'pytorch',
'torchvision==0.12',
'torchaudio',
'fastai'
],
'mm1': ['pyserial']
},
package_data={
'donkeycar': extra_files,
},
include_package_data=True,
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='selfdriving cars donkeycar diyrobocars',
packages=find_packages(exclude=(['tests', 'docs', 'site', 'env'])),
dependency_links=[
'https://download.pytorch.org/whl/cpu']
)