-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
36 lines (33 loc) · 1.22 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
from setuptools import find_packages, setup
from glob import glob
import os
package_name = 'mini_tof'
# Get the list of files in the readers subdirectory
readers_files = glob(os.path.join(package_name, 'readers', '*'))
readers_files = [f for f in readers_files if os.path.isfile(f)] # Ensure only files are included
setup(
name=package_name,
version='0.0.0',
packages=find_packages(exclude=['test']),
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
# copy everything in the "readers" directory to the install location, so that we can
# access them with e.g., 'from readers import tmf8820_reader".
('lib/' + package_name + '/readers', readers_files),
],
install_requires=['setuptools'],
zip_safe=True,
maintainer='Carter Sifferman',
maintainer_email='[email protected]',
description='Package for interfacing with miniature ToF sensors',
license='MIT',
tests_require=['pytest'],
entry_points={
'console_scripts': [
'tof_publisher = mini_tof.tof_publisher:main',
'tof_visualizer = mini_tof.tof_visualizer:main',
],
},
)