Skip to content

Commit 1b3ea7d

Browse files
authored
Merge pull request #77 from FoamyGuy/circuitpython_org_pypi_name
fix pypi names for circuitpython org libraries
2 parents bdcdafd + 3845cee commit 1b3ea7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def get_module_name(library_path):
6464
if repo[-4:] == ".git":
6565
repo = repo[:-4]
6666
module_name = repo.split("/")[-1].replace("_", "-")
67+
68+
# circuitpython org repos are deployed to pypi without "org" in the pypi name
69+
module_name = re.sub(r"^circuitpython-org-", "circuitpython-", module_name)
6770
return module_name, repo
6871

6972
def get_bundle_requirements(directory, package_list):

0 commit comments

Comments
 (0)