Skip to content

Commit 243a717

Browse files
committed
Added PyPI Name for external package matching
1 parent 3bb57a8 commit 243a717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def build_bundle_json(libs, bundle_version, output_filename, package_folder_pref
103103
module_name, repo = get_module_name(library_path)
104104
if package_info["module_name"] is not None:
105105
package["module_name"] = package_info["module_name"]
106+
package["pypi_name"] = module_name
106107
package["repo"] = repo
107108
package["is_folder"] = package_info["is_package"]
108109
package["version"] = package_info["version"]
@@ -114,6 +115,7 @@ def build_bundle_json(libs, bundle_version, output_filename, package_folder_pref
114115
for id in packages:
115116
library = {}
116117
library["package"] = packages[id]["is_folder"]
118+
library["pypi_name"] = packages[id]["pypi_name"]
117119
library["version"] = packages[id]["version"]
118120
library["repo"] = packages[id]["repo"]
119121
library["path"] = packages[id]["path"]

0 commit comments

Comments
 (0)