Skip to content

Commit fb53675

Browse files
committed
fix build issue
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 489692c commit fb53675

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

launch_pytest/setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import glob
2+
from pathlib import Path
23

34
from setuptools import find_packages
45
from setuptools import setup
@@ -14,7 +15,15 @@
1415
('share/ament_index/resource_index/packages', [f'resource/{package_name}']),
1516
(f'lib/{package_name}', glob.glob('example_processes/**')),
1617
(f'share/{package_name}', ['package.xml']),
17-
(f'share/{package_name}/examples', glob.glob(f'test/{package_name}/examples/[!_]**')),
18+
(
19+
f'share/{package_name}/examples',
20+
[x for x in glob.glob(
21+
f'test/{package_name}/examples/[!_]*') if Path(x).is_file()]
22+
),
23+
(
24+
f'share/{package_name}/examples/executables',
25+
glob.glob(f'test/{package_name}/examples/executables/[!_]*')
26+
),
1827
],
1928
entry_points={
2029
'pytest11': ['launch_pytest = launch_pytest.plugin'],

0 commit comments

Comments
 (0)