Auto install: - Move finding libraries from auto-file into command utils (libraries_from_auto_file) - Find the first possible code.py alternative in order (like main.py) - Replace libraries_from_code_py using the ast module instead of findimports - Get all imports to find local python imports - Find all dependencies from user code recursively Update backends: - Add get_file_content in Backends subclasses - Remove no longer used get_auto_file_path() - Add list_dir() to DiskBackend Update tests - Add non-bundle imports - Add submodule import - Add another mock device to test finding code.py
11 lines
393 B
Python
11 lines
393 B
Python
# SPDX-FileCopyrightText: 2021 Jeff Epler for Adafruit Industries
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
# pylint: disable=all
|
|
import os, sys
|
|
import adafruit_bus_device
|
|
from adafruit_button import Button
|
|
from adafruit_esp32spi import adafruit_esp32spi_socketpool
|
|
from adafruit_display_text import wrap_text_to_pixels, wrap_text_to_lines
|
|
import adafruit_hid.consumer_control
|
|
import import_styles_sub
|