Commit graph

519 commits

Author SHA1 Message Date
foamyguy
f2eccab822
Merge pull request #253 from FoamyGuy/autofile_outside_root_subimports
fix subimport finding for auto-files that are not in the root.
2025-08-19 09:39:55 -05:00
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
foamyguy
d1bfdbb042
Merge pull request #247 from FoamyGuy/remove_cporg_bundle
remove circuitpython_org bundle
2025-04-18 09:18:17 -05:00
foamyguy
056c222d57 remove circuitpython_org bundle 2025-04-18 07:52:04 -05:00
foamyguy
e8ce15021c
Merge pull request #246 from dhalbert/10.x-bundles
Add 10.x bundles
2025-04-08 08:47:13 -05:00
Dan Halbert
35dc55668e Add 10.x bundles 2025-04-04 17:48:03 -04:00
foamyguy
dd39ac635f
Merge pull request #244 from Neradoc/auto-install-sub-imports
Auto install sub imports
2025-03-31 09:57:08 -05:00
foamyguy
fa59c1ecf9 remove findimports req, remove comment from test_circup 2025-03-31 09:41:15 -05:00
Neradoc
7b2cf4d252 inform the user of what auto file is being read
link to the documentation on code.py names
2025-03-20 23:49:17 +01:00
Neradoc
cde0dea1e5 sort results from get_all_imports() just for fun
modify mock_device_2 and add a new package module to test relative .imports
2025-02-16 18:04:01 +01:00
Neradoc
e7c7fb6d65 fix tests finding all in imports_from_code 2025-02-16 18:04:01 +01:00
Neradoc
e717ef0306 fix relative paths in package modules
fix finding submodules as "from A import B,C,D"
skip stars (*) in: "from A import *"
2025-02-16 18:04:01 +01: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
Neradoc
43b31da905 fix mock variable in test_get_bundles_dict 2025-02-16 18:04:01 +01:00
foamyguy
9c05ad8f7c
Merge pull request #242 from dhalbert/drop-8.x-bundles
drop 8.x bundle support
2025-02-12 14:54:28 -06:00
Dan Halbert
b28106713e GitHub Actions: stop using ::set-output 2025-02-08 15:46:01 -05:00
Dan Halbert
60c4107dbd update test to 9 2025-02-08 15:19:26 -05:00
Dan Halbert
5fd54fa603 drop 8.x bundle support 2025-02-08 11:23:29 -05:00
foamyguy
1ea6cd2d7b
Merge pull request #240 from slaftos/example-list
Add --list and --rename options to circup example command
2025-01-20 17:18:50 -06:00
Brian K. Jackson(Arakkis)
283a499a02 Remove inacurate comments 2025-01-16 19:19:51 -05:00
Brian K. Jackson(Arakkis)
f873c78912 pylint cares about file encoding 2025-01-15 15:29:08 -05:00
Brian K. Jackson(Arakkis)
831316ae2f Substitute json load/dump for pickle serialization 2025-01-15 15:09:56 -05:00
Brian K. Jackson(Arakkis)
bd834c4603 Add --list and --rename options to example
Added caching of example library example metadata, to speed up tab completion and --list returns

--rename option will rename output to code.py if example resolves to single file

Changed connection announcement to include board name
2025-01-12 07:50:34 -05:00
foamyguy
da8f6c26c5
Merge pull request #236 from FoamyGuy/wwshell_fixes
wwshell fixes
2025-01-03 16:20:26 -06:00
foamyguy
f028b18310 remove prints, fix missing port argument. 2025-01-03 14:56:07 -06:00
Dan Halbert
a03d50463f
Merge pull request #223 from FoamyGuy/wwshell
wwshell file management CLI
2025-01-02 10:47:28 -05:00
Dan Halbert
7c5ba016f3
Merge pull request #226 from FoamyGuy/updating_name_refs_and_versions
Updating name refs and versions + zsh tab completion
2024-12-29 16:13:44 -05:00
Dan Halbert
1eaca649cd
Merge pull request #235 from Neradoc/fix-version-read-1
Slight improvement to reading MPY files module version
2024-12-29 16:12:04 -05:00
Neradoc
1bc332b839 fix sphinx warning 2024-12-29 19:56:10 +01:00
Neradoc
dfc10c91a5 avoid reading random strings (like IP addresses) as version numbers in mpy files
always scan files in a package by alphabetical order so that `__init__` is read first
then keep the first version number found, don't update it later
2024-12-29 19:41:15 +01:00
Dan Halbert
27284f366e
Merge pull request #231 from FoamyGuy/support_py312
python 3.12 support
2024-07-26 23:38:48 -04:00
foamyguy
c3da149010 similarity lines config 2024-07-15 16:12:42 -05:00
foamyguy
995f9392eb python 3.12 support 2024-07-15 16:08:06 -05:00
Scott Shawcroft
9662d8b924
Merge pull request #230 from adafruit/ww-portno
Support web workflow on alternate port numbers
2024-07-08 11:10:58 -07:00
ae3919e4b4 Support web workflow on alternate port numbers 2024-07-08 10:11:49 -05:00
foamyguy
cb3de91da8
Merge pull request #229 from Jessseee/installing_pypi_stubs
Adding option to install library stubs from PyPi
2024-07-01 15:39:02 -05:00
Jesse Visser
9610d7dcb8
add option to install library stubs from pypi 2024-06-17 20:34:33 +02:00
foamyguy
431ccac9b3 merge main 2024-06-17 11:51:23 -05:00
foamyguy
a6985550e1 Merge branch 'main' into wwshell_merge_main
# Conflicts:
#	setup.py
2024-06-17 11:32:02 -05:00
foamyguy
35ca9cccec
remove specific version from click link
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2024-06-08 06:48:32 -05:00
foamyguy
0bfbe875f4 another name change. update version. add zsh instruction 2024-06-07 19:13:53 -05:00
foamyguy
b9c6698aca Merge branch 'main' into updating_name_refs_and_versions 2024-06-07 19:11:48 -05:00
foamyguy
5f444f0f70
Merge pull request #225 from FoamyGuy/use_dynamic_dependencies
enable dynamic depencies
2024-06-07 13:53:51 -05:00
foamyguy
f05ff1896d enable dynamic depencies 2024-06-07 13:45:46 -05:00
foamyguy
dde7615e1b
Merge pull request #224 from FoamyGuy/fix_release_build
add build for release
2024-06-03 17:09:14 -05:00
foamyguy
ed39f029b9 add build for release 2024-06-03 17:03:01 -05:00
foamyguy
0227af6bbc
Merge pull request #214 from sjev/1-switch-from-setuppy-to-pyprojecttoml
switch from setuppy to pyprojecttoml
2024-06-03 16:55:57 -05:00
foamyguy
524e552394 fix release action 2024-06-03 16:41:46 -05:00
foamyguy
50561f5972 fix release action condition 2024-06-03 16:30:33 -05:00