adafruit / circuitpython-build-tools

Build scripts for CircuitPython libraries and the bundle
MIT License
28 stars 17 forks source link

Fix generation of dependencies[] array #113

Closed jepler closed 10 months ago

jepler commented 10 months ago

This fixes #112. I introduced the problem in #110. No internal dependencies were noticed, and these items were listed under external_dependencies instead.

This in turn affected the screenshot builder & bundlefly.

With the bug, the json data about pycamera looks like this:

{
  "dependencies": [],
  "external_dependencies": [
    "adafruit-circuitpython-aw9523",
    "adafruit-circuitpython-busdevice",
    "adafruit-circuitpython-debouncer",
    "adafruit-circuitpython-display-text",
    "adafruit-circuitpython-lis3dh",
    "adafruit-circuitpython-neopixel"
  ],
  "package": true,
  "path": "lib/adafruit_pycamera",
  "pypi_name": "adafruit-circuitpython-pycamera",
  "repo": "https://github.com/adafruit/adafruit_circuitpython_pycamera",
  "version": "0.0.7"
}

it should look like this:

{
  "dependencies": [
    "adafruit_aw9523",
    "adafruit_bus_device",
    "adafruit_debouncer",
    "adafruit_display_text",
    "adafruit_lis3dh",
    "neopixel"
  ],
  "external_dependencies": [],
  "package": true,
  "path": "lib/adafruit_pycamera",
  "pypi_name": "adafruit-circuitpython-pycamera",
  "repo": "https://github.com/adafruit/adafruit_circuitpython_pycamera",
  "version": "0.0.7"
}