circup 2.2.5__tar.gz → 2.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {circup-2.2.5/circup.egg-info → circup-2.2.6}/PKG-INFO +1 -1
- {circup-2.2.5 → circup-2.2.6}/circup/command_utils.py +8 -6
- {circup-2.2.5 → circup-2.2.6}/circup/commands.py +15 -2
- {circup-2.2.5 → circup-2.2.6/circup.egg-info}/PKG-INFO +1 -1
- {circup-2.2.5 → circup-2.2.6}/.github/ISSUE_TEMPLATE.md +0 -0
- {circup-2.2.5 → circup-2.2.6}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {circup-2.2.5 → circup-2.2.6}/.github/workflows/build.yml +0 -0
- {circup-2.2.5 → circup-2.2.6}/.github/workflows/release.yml +0 -0
- {circup-2.2.5 → circup-2.2.6}/.gitignore +0 -0
- {circup-2.2.5 → circup-2.2.6}/.isort.cfg +0 -0
- {circup-2.2.5 → circup-2.2.6}/.pre-commit-config.yaml +0 -0
- {circup-2.2.5 → circup-2.2.6}/.pylintrc +0 -0
- {circup-2.2.5 → circup-2.2.6}/CODE_OF_CONDUCT.rst +0 -0
- {circup-2.2.5 → circup-2.2.6}/CODE_OF_CONDUCT.rst.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/CONTRIBUTING.rst +0 -0
- {circup-2.2.5 → circup-2.2.6}/CONTRIBUTING.rst.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/LICENSE +0 -0
- {circup-2.2.5 → circup-2.2.6}/LICENSES/CC-BY-4.0.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/LICENSES/MIT.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/LICENSES/Unlicense.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/README.rst +0 -0
- {circup-2.2.5 → circup-2.2.6}/README.rst.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/__init__.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/backends.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/bundle.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/config/bundle_config.json +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/config/bundle_config.json.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/lazy_metadata.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/logging.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/module.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/shared.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/wwshell/README.rst +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/wwshell/README.rst.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/wwshell/__init__.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup/wwshell/commands.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup.egg-info/SOURCES.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup.egg-info/dependency_links.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup.egg-info/entry_points.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup.egg-info/requires.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/circup.egg-info/top_level.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/_static/favicon.ico +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/_static/favicon.ico.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/conf.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/index.rst +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/index.rst.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/logo.png +0 -0
- {circup-2.2.5 → circup-2.2.6}/docs/logo.png.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/optional_requirements.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/optional_requirements.txt.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/pyproject.toml +0 -0
- {circup-2.2.5 → circup-2.2.6}/readthedocs.yml +0 -0
- {circup-2.2.5 → circup-2.2.6}/requirements.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/requirements.txt.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/setup.cfg +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/__init__.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/bad_module/__init__.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/bad_module/my_module.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/bad_python.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/bundle.json +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/bundle.json.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/device.json +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/device.json.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/dir_module/__init__.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/dir_module/my_module.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/import_styles.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/local_module.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/local_module_cp7.mpy +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/local_module_cp7.mpy.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/apps/test_app/import_styles.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/apps/test_app/import_styles_sub.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/boot_out.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/boot_out.txt.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/import_styles.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/import_styles_sub.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device/lib/adafruit_waveform/.gitkeep +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/.gitignore +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/boot_out.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/boot_out.txt.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/code.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/import_styles_sub.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/package/__init__.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/package/other.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mount_exists.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mount_exists.txt.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mount_missing.txt +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/mount_missing.txt.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/remote_module.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config.json +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config.json.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config_local.json +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config_local.json.license +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_circup.py +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_module.mpy +0 -0
- {circup-2.2.5 → circup-2.2.6}/tests/test_module.mpy.license +0 -0
|
@@ -122,12 +122,14 @@ def completion_for_example(ctx, param, incomplete):
|
|
|
122
122
|
|
|
123
123
|
# pylint: disable=unused-argument, consider-iterating-dictionary
|
|
124
124
|
available_examples = get_bundle_examples(get_bundles_list(), avoid_download=True)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
matching_examples = []
|
|
126
|
+
for term in incomplete:
|
|
127
|
+
_examples = [
|
|
128
|
+
example_path
|
|
129
|
+
for example_path in available_examples.keys()
|
|
130
|
+
if term in example_path
|
|
131
|
+
]
|
|
132
|
+
matching_examples.extend(_examples)
|
|
131
133
|
|
|
132
134
|
return sorted(matching_examples)
|
|
133
135
|
|
|
@@ -415,11 +415,24 @@ def install(
|
|
|
415
415
|
)
|
|
416
416
|
@click.pass_context
|
|
417
417
|
def example(ctx, examples, op_list, rename, overwrite):
|
|
418
|
-
"""
|
|
418
|
+
"""\b
|
|
419
419
|
Copy named example(s) from a bundle onto the device. Multiple examples
|
|
420
420
|
can be installed at once by providing more than one example name, each
|
|
421
|
-
separated by a space.
|
|
421
|
+
separated by a space. Example names are in the form of:
|
|
422
|
+
[short_library_name]/[example_file_name_without_py_extension]
|
|
423
|
+
ex: circup example bmp5xx/bmp5xx_simpletest
|
|
424
|
+
\b
|
|
425
|
+
For a list of all available library short names run:
|
|
426
|
+
circup example --list
|
|
427
|
+
\b
|
|
428
|
+
To search for examples run:
|
|
429
|
+
circup example [searchterm] --list
|
|
430
|
+
ex: circup example mlx --list
|
|
422
431
|
"""
|
|
432
|
+
examples = list(examples)
|
|
433
|
+
for i, cur_example in enumerate(examples):
|
|
434
|
+
if cur_example.startswith("adafruit_"):
|
|
435
|
+
examples[i] = cur_example.replace("adafruit_", "")
|
|
423
436
|
|
|
424
437
|
if op_list:
|
|
425
438
|
if examples:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|