@@ -87,11 +87,11 @@ def validate_source_bundle(source):
87
87
data = os .path .join (source , 'metadata.json' )
88
88
89
89
if not os .path .exists (icon ):
90
- raise ValueError ('icon missing, make sure icon.png is present in the source bundle' )
90
+ raise ValueError ('icon missing, make sure icon.png is present in the source bundle: {}' . format ( source ) )
91
91
if not os .path .exists (code ):
92
- raise ValueError ('code missing, make sure code.py is present in the source bundle' )
92
+ raise ValueError ('code missing, make sure code.py is present in the source bundle: {}' . format ( source ) )
93
93
if not os .path .exists (data ):
94
- raise ValueError ('metadata missing, make sure metadata.json is present in the source bundle' )
94
+ raise ValueError ('metadata missing, make sure metadata.json is present in the source bundle: {}' . format ( source ) )
95
95
96
96
icon = bitmap_from_image_path (icon )
97
97
@@ -267,7 +267,7 @@ def create_ghuser_component(source, target, version=None):
267
267
libdir = os .path .abspath (args .ghio )
268
268
gh_io = find_ghio_assembly (libdir )
269
269
source_bundles = [d for d in os .listdir (sourcedir )
270
- if os .path .isdir (os .path .join (sourcedir , d ))]
270
+ if os .path .isdir (os .path .join (sourcedir , d )) and d not in ( '__pycache__' , '.git' ) ]
271
271
272
272
print ('GHPython componentizer' )
273
273
print ('======================' )
0 commit comments