|
40 | 40 | import pkg_resources
|
41 | 41 |
|
42 | 42 | BLINKA_LIBRARIES = [
|
43 |
| - "adafruit-blinka", |
44 |
| - "adafruit-blinka-bleio", |
45 |
| - "adafruit-blinka-displayio", |
46 |
| - "adafruit-blinka-pyportal", |
47 |
| - "adafruit-python-extended-bus", |
| 43 | + "adafruit_blinka", |
| 44 | + "adafruit_blinka_bleio", |
| 45 | + "adafruit_blinka_displayio", |
| 46 | + "adafruit_blinka_pyportal", |
| 47 | + "adafruit_python_extended_bus", |
| 48 | + "numpy", |
| 49 | + "pillow", |
| 50 | + "pyasn1", |
48 | 51 | "pyserial",
|
| 52 | + "scipy", |
49 | 53 | ]
|
50 | 54 |
|
| 55 | +def normalize_dist_name(name: str) -> str: |
| 56 | + return name.lower().replace("-", "_") |
| 57 | + |
51 | 58 | def add_file(bundle, src_file, zip_name):
|
52 | 59 | bundle.write(src_file, zip_name)
|
53 | 60 | file_size = os.stat(src_file).st_size
|
@@ -93,6 +100,7 @@ def get_bundle_requirements(directory, package_list):
|
93 | 100 | if any(operators in line for operators in [">", "<", "="]):
|
94 | 101 | # Remove everything after any pip style version specifiers
|
95 | 102 | line = re.split("[<|>|=|]", line)[0]
|
| 103 | + line = normalize_dist_name(line) |
96 | 104 | if line not in dependencies and line in package_list:
|
97 | 105 | dependencies.append(package_list[line]["module_name"])
|
98 | 106 | elif line not in pypi_reqs and line not in BLINKA_LIBRARIES:
|
|
0 commit comments