Skip to content

Commit 92138a5

Browse files
committed
include package file based on package name prefix
1 parent c38f93d commit 92138a5

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def build_bundle(libs, bundle_version, output_filename,
109109
with zipfile.ZipFile(output_filename, 'w') as bundle:
110110
build_metadata = {"build-tools-version": build_tools_version}
111111
bundle.comment = json.dumps(build_metadata).encode("utf-8")
112-
if multiple_libs:
113-
total_size += add_file(bundle, "README.txt", os.path.join(top_folder, "README.txt"))
112+
#if multiple_libs:
113+
# total_size += add_file(bundle, "README.txt", os.path.join(top_folder, "README.txt"))
114114
for root, dirs, files in os.walk(build_dir):
115115
ziproot = root[len(build_dir + "/"):]
116116
for filename in files:
@@ -187,3 +187,14 @@ def build_bundles(filename_prefix, output_directory, library_location, library_d
187187
VERSION=bundle_version))
188188
build_bundle(libs, bundle_version, zip_filename,
189189
build_tools_version=build_tools_version, example_bundle=True)
190+
191+
# git ignore
192+
if __name__ == "__main__":
193+
194+
build_bundles(
195+
"test",
196+
"/home/sommersoft/Dev/cpy-build-tools/.bundles",
197+
"/home/sommersoft/Dev/circuitpython_libs/Adafruit_CircuitPython_Bundle/libraries",
198+
2,
199+
"adafruit_"
200+
)

0 commit comments

Comments
 (0)