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.
Files changed (94) hide show
  1. {circup-2.2.5/circup.egg-info → circup-2.2.6}/PKG-INFO +1 -1
  2. {circup-2.2.5 → circup-2.2.6}/circup/command_utils.py +8 -6
  3. {circup-2.2.5 → circup-2.2.6}/circup/commands.py +15 -2
  4. {circup-2.2.5 → circup-2.2.6/circup.egg-info}/PKG-INFO +1 -1
  5. {circup-2.2.5 → circup-2.2.6}/.github/ISSUE_TEMPLATE.md +0 -0
  6. {circup-2.2.5 → circup-2.2.6}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  7. {circup-2.2.5 → circup-2.2.6}/.github/workflows/build.yml +0 -0
  8. {circup-2.2.5 → circup-2.2.6}/.github/workflows/release.yml +0 -0
  9. {circup-2.2.5 → circup-2.2.6}/.gitignore +0 -0
  10. {circup-2.2.5 → circup-2.2.6}/.isort.cfg +0 -0
  11. {circup-2.2.5 → circup-2.2.6}/.pre-commit-config.yaml +0 -0
  12. {circup-2.2.5 → circup-2.2.6}/.pylintrc +0 -0
  13. {circup-2.2.5 → circup-2.2.6}/CODE_OF_CONDUCT.rst +0 -0
  14. {circup-2.2.5 → circup-2.2.6}/CODE_OF_CONDUCT.rst.license +0 -0
  15. {circup-2.2.5 → circup-2.2.6}/CONTRIBUTING.rst +0 -0
  16. {circup-2.2.5 → circup-2.2.6}/CONTRIBUTING.rst.license +0 -0
  17. {circup-2.2.5 → circup-2.2.6}/LICENSE +0 -0
  18. {circup-2.2.5 → circup-2.2.6}/LICENSES/CC-BY-4.0.txt +0 -0
  19. {circup-2.2.5 → circup-2.2.6}/LICENSES/MIT.txt +0 -0
  20. {circup-2.2.5 → circup-2.2.6}/LICENSES/Unlicense.txt +0 -0
  21. {circup-2.2.5 → circup-2.2.6}/README.rst +0 -0
  22. {circup-2.2.5 → circup-2.2.6}/README.rst.license +0 -0
  23. {circup-2.2.5 → circup-2.2.6}/circup/__init__.py +0 -0
  24. {circup-2.2.5 → circup-2.2.6}/circup/backends.py +0 -0
  25. {circup-2.2.5 → circup-2.2.6}/circup/bundle.py +0 -0
  26. {circup-2.2.5 → circup-2.2.6}/circup/config/bundle_config.json +0 -0
  27. {circup-2.2.5 → circup-2.2.6}/circup/config/bundle_config.json.license +0 -0
  28. {circup-2.2.5 → circup-2.2.6}/circup/lazy_metadata.py +0 -0
  29. {circup-2.2.5 → circup-2.2.6}/circup/logging.py +0 -0
  30. {circup-2.2.5 → circup-2.2.6}/circup/module.py +0 -0
  31. {circup-2.2.5 → circup-2.2.6}/circup/shared.py +0 -0
  32. {circup-2.2.5 → circup-2.2.6}/circup/wwshell/README.rst +0 -0
  33. {circup-2.2.5 → circup-2.2.6}/circup/wwshell/README.rst.license +0 -0
  34. {circup-2.2.5 → circup-2.2.6}/circup/wwshell/__init__.py +0 -0
  35. {circup-2.2.5 → circup-2.2.6}/circup/wwshell/commands.py +0 -0
  36. {circup-2.2.5 → circup-2.2.6}/circup.egg-info/SOURCES.txt +0 -0
  37. {circup-2.2.5 → circup-2.2.6}/circup.egg-info/dependency_links.txt +0 -0
  38. {circup-2.2.5 → circup-2.2.6}/circup.egg-info/entry_points.txt +0 -0
  39. {circup-2.2.5 → circup-2.2.6}/circup.egg-info/requires.txt +0 -0
  40. {circup-2.2.5 → circup-2.2.6}/circup.egg-info/top_level.txt +0 -0
  41. {circup-2.2.5 → circup-2.2.6}/docs/_static/favicon.ico +0 -0
  42. {circup-2.2.5 → circup-2.2.6}/docs/_static/favicon.ico.license +0 -0
  43. {circup-2.2.5 → circup-2.2.6}/docs/conf.py +0 -0
  44. {circup-2.2.5 → circup-2.2.6}/docs/index.rst +0 -0
  45. {circup-2.2.5 → circup-2.2.6}/docs/index.rst.license +0 -0
  46. {circup-2.2.5 → circup-2.2.6}/docs/logo.png +0 -0
  47. {circup-2.2.5 → circup-2.2.6}/docs/logo.png.license +0 -0
  48. {circup-2.2.5 → circup-2.2.6}/optional_requirements.txt +0 -0
  49. {circup-2.2.5 → circup-2.2.6}/optional_requirements.txt.license +0 -0
  50. {circup-2.2.5 → circup-2.2.6}/pyproject.toml +0 -0
  51. {circup-2.2.5 → circup-2.2.6}/readthedocs.yml +0 -0
  52. {circup-2.2.5 → circup-2.2.6}/requirements.txt +0 -0
  53. {circup-2.2.5 → circup-2.2.6}/requirements.txt.license +0 -0
  54. {circup-2.2.5 → circup-2.2.6}/setup.cfg +0 -0
  55. {circup-2.2.5 → circup-2.2.6}/tests/__init__.py +0 -0
  56. {circup-2.2.5 → circup-2.2.6}/tests/bad_module/__init__.py +0 -0
  57. {circup-2.2.5 → circup-2.2.6}/tests/bad_module/my_module.py +0 -0
  58. {circup-2.2.5 → circup-2.2.6}/tests/bad_python.py +0 -0
  59. {circup-2.2.5 → circup-2.2.6}/tests/bundle.json +0 -0
  60. {circup-2.2.5 → circup-2.2.6}/tests/bundle.json.license +0 -0
  61. {circup-2.2.5 → circup-2.2.6}/tests/device.json +0 -0
  62. {circup-2.2.5 → circup-2.2.6}/tests/device.json.license +0 -0
  63. {circup-2.2.5 → circup-2.2.6}/tests/dir_module/__init__.py +0 -0
  64. {circup-2.2.5 → circup-2.2.6}/tests/dir_module/my_module.py +0 -0
  65. {circup-2.2.5 → circup-2.2.6}/tests/import_styles.py +0 -0
  66. {circup-2.2.5 → circup-2.2.6}/tests/local_module.py +0 -0
  67. {circup-2.2.5 → circup-2.2.6}/tests/local_module_cp7.mpy +0 -0
  68. {circup-2.2.5 → circup-2.2.6}/tests/local_module_cp7.mpy.license +0 -0
  69. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/apps/test_app/import_styles.py +0 -0
  70. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/apps/test_app/import_styles_sub.py +0 -0
  71. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/boot_out.txt +0 -0
  72. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/boot_out.txt.license +0 -0
  73. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/import_styles.py +0 -0
  74. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/import_styles_sub.py +0 -0
  75. {circup-2.2.5 → circup-2.2.6}/tests/mock_device/lib/adafruit_waveform/.gitkeep +0 -0
  76. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/.gitignore +0 -0
  77. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/boot_out.txt +0 -0
  78. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/boot_out.txt.license +0 -0
  79. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/code.py +0 -0
  80. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/import_styles_sub.py +0 -0
  81. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/package/__init__.py +0 -0
  82. {circup-2.2.5 → circup-2.2.6}/tests/mock_device_2/package/other.py +0 -0
  83. {circup-2.2.5 → circup-2.2.6}/tests/mount_exists.txt +0 -0
  84. {circup-2.2.5 → circup-2.2.6}/tests/mount_exists.txt.license +0 -0
  85. {circup-2.2.5 → circup-2.2.6}/tests/mount_missing.txt +0 -0
  86. {circup-2.2.5 → circup-2.2.6}/tests/mount_missing.txt.license +0 -0
  87. {circup-2.2.5 → circup-2.2.6}/tests/remote_module.py +0 -0
  88. {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config.json +0 -0
  89. {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config.json.license +0 -0
  90. {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config_local.json +0 -0
  91. {circup-2.2.5 → circup-2.2.6}/tests/test_bundle_config_local.json.license +0 -0
  92. {circup-2.2.5 → circup-2.2.6}/tests/test_circup.py +0 -0
  93. {circup-2.2.5 → circup-2.2.6}/tests/test_module.mpy +0 -0
  94. {circup-2.2.5 → circup-2.2.6}/tests/test_module.mpy.license +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: circup
3
- Version: 2.2.5
3
+ Version: 2.2.6
4
4
  Summary: A tool to manage/update libraries on CircuitPython devices.
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT License
@@ -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
- matching_examples = [
127
- example_path
128
- for example_path in available_examples.keys()
129
- if example_path.startswith(incomplete)
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: circup
3
- Version: 2.2.5
3
+ Version: 2.2.6
4
4
  Summary: A tool to manage/update libraries on CircuitPython devices.
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT License
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