Commit graph

9 commits

Author SHA1 Message Date
foamyguy
18a4687739 use 9.x in all test mock devices. Fix package subimport logic. Fix tests. Update from_auto_files_local test to mimic Fruit Jam OS usage. 2025-08-14 10:21:11 -05:00
foamyguy
ab32fc2b5b fix subimport finding for auto-files that are not in the root. 2025-08-14 09:25:45 -05:00
Neradoc
d27ae8164c Make auto-install find user code recursively. Find code.py alternatives.
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
2025-02-16 18:04:01 +01:00
Dan Halbert
60c4107dbd update test to 9 2025-02-08 15:19:26 -05:00
foamyguy
ba726e2047 add mocked lib folder for module update dir test 2024-04-08 08:40:53 -05:00
foamyguy
d88003b5c5 starting to fix tests 2024-04-07 10:32:23 -05:00
foamyguy
1f9bee3ffc black format b4 pylint. fix tests tests to passing 2023-12-18 10:43:34 -06:00
foamyguy
75e501204a license for mock boot_out 2023-11-22 18:06:07 -06:00
foamyguy
a5b40b46d3 fixing tests 2023-11-22 18:02:48 -06:00