-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
56 lines (44 loc) · 1.55 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
import os
from setuptools import find_packages
from setuptools import setup
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(dir_path, 'src', 'airobot', 'version.py')) as fp:
exec(fp.read())
def read_requirements_file(filename):
req_file_path = '%s/%s' % (dir_path, filename)
with open(req_file_path) as f:
return [line.strip() for line in f]
packages = find_packages('src')
# Ensure that we don't pollute the global namespace.
for p in packages:
assert p == 'airobot' or p.startswith('airobot.')
def pkg_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('../..', path, filename))
return paths
extra_pkg_files = pkg_files('src/airobot/urdfs')
setup(
name='airobot',
version=__version__,
author='MIT Improbable AI',
url='https://github.com/Improbable-AI/airobot.git',
license='MIT',
packages=packages,
package_dir={'': 'src'},
package_data={
'airobot': extra_pkg_files,
},
python_requires='>=2.7, <3.11',
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Framework :: Robot Framework"
],
install_requires=read_requirements_file('requirements.txt'),
)