circup 1.5.3__tar.gz → 1.6.0__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 (70) hide show
  1. circup-1.6.0/.isort.cfg +5 -0
  2. {circup-1.5.3/circup.egg-info → circup-1.6.0}/PKG-INFO +38 -24
  3. {circup-1.5.3 → circup-1.6.0}/README.rst +30 -16
  4. {circup-1.5.3 → circup-1.6.0}/circup/__init__.py +201 -353
  5. circup-1.6.0/circup/backends.py +829 -0
  6. circup-1.6.0/circup/shared.py +144 -0
  7. {circup-1.5.3 → circup-1.6.0/circup.egg-info}/PKG-INFO +38 -24
  8. {circup-1.5.3 → circup-1.6.0}/circup.egg-info/SOURCES.txt +6 -1
  9. circup-1.6.0/tests/mock_device/boot_out.txt +3 -0
  10. circup-1.6.0/tests/mock_device/boot_out.txt.license +3 -0
  11. {circup-1.5.3 → circup-1.6.0}/tests/test_circup.py +228 -105
  12. {circup-1.5.3 → circup-1.6.0}/.github/ISSUE_TEMPLATE.md +0 -0
  13. {circup-1.5.3 → circup-1.6.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  14. {circup-1.5.3 → circup-1.6.0}/.github/workflows/build.yml +0 -0
  15. {circup-1.5.3 → circup-1.6.0}/.github/workflows/release.yml +0 -0
  16. {circup-1.5.3 → circup-1.6.0}/.gitignore +0 -0
  17. {circup-1.5.3 → circup-1.6.0}/.pre-commit-config.yaml +5 -5
  18. {circup-1.5.3 → circup-1.6.0}/.pylintrc +0 -0
  19. {circup-1.5.3 → circup-1.6.0}/CODE_OF_CONDUCT.rst +0 -0
  20. {circup-1.5.3 → circup-1.6.0}/CODE_OF_CONDUCT.rst.license +0 -0
  21. {circup-1.5.3 → circup-1.6.0}/CONTRIBUTING.rst +0 -0
  22. {circup-1.5.3 → circup-1.6.0}/CONTRIBUTING.rst.license +0 -0
  23. {circup-1.5.3 → circup-1.6.0}/LICENSE +0 -0
  24. {circup-1.5.3 → circup-1.6.0}/LICENSES/CC-BY-4.0.txt +0 -0
  25. {circup-1.5.3 → circup-1.6.0}/LICENSES/MIT.txt +0 -0
  26. {circup-1.5.3 → circup-1.6.0}/LICENSES/Unlicense.txt +0 -0
  27. {circup-1.5.3 → circup-1.6.0}/README.rst.license +0 -0
  28. {circup-1.5.3 → circup-1.6.0}/circup/config/bundle_config.json +0 -0
  29. {circup-1.5.3 → circup-1.6.0}/circup/config/bundle_config.json.license +0 -0
  30. {circup-1.5.3 → circup-1.6.0}/circup.egg-info/dependency_links.txt +0 -0
  31. {circup-1.5.3 → circup-1.6.0}/circup.egg-info/entry_points.txt +0 -0
  32. {circup-1.5.3 → circup-1.6.0}/circup.egg-info/requires.txt +7 -7
  33. {circup-1.5.3 → circup-1.6.0}/circup.egg-info/top_level.txt +0 -0
  34. {circup-1.5.3 → circup-1.6.0}/docs/_static/favicon.ico +0 -0
  35. {circup-1.5.3 → circup-1.6.0}/docs/_static/favicon.ico.license +0 -0
  36. {circup-1.5.3 → circup-1.6.0}/docs/conf.py +0 -0
  37. {circup-1.5.3 → circup-1.6.0}/docs/index.rst +0 -0
  38. {circup-1.5.3 → circup-1.6.0}/docs/index.rst.license +0 -0
  39. {circup-1.5.3 → circup-1.6.0}/docs/logo.png +0 -0
  40. {circup-1.5.3 → circup-1.6.0}/docs/logo.png.license +0 -0
  41. {circup-1.5.3 → circup-1.6.0}/readthedocs.yml +0 -0
  42. {circup-1.5.3 → circup-1.6.0}/requirements.txt +0 -0
  43. {circup-1.5.3 → circup-1.6.0}/requirements.txt.license +0 -0
  44. {circup-1.5.3 → circup-1.6.0}/setup.cfg +0 -0
  45. {circup-1.5.3 → circup-1.6.0}/setup.py +0 -0
  46. {circup-1.5.3 → circup-1.6.0}/tests/__init__.py +0 -0
  47. {circup-1.5.3 → circup-1.6.0}/tests/bad_module/__init__.py +0 -0
  48. {circup-1.5.3 → circup-1.6.0}/tests/bad_module/my_module.py +0 -0
  49. {circup-1.5.3 → circup-1.6.0}/tests/bad_python.py +0 -0
  50. {circup-1.5.3 → circup-1.6.0}/tests/bundle.json +0 -0
  51. {circup-1.5.3 → circup-1.6.0}/tests/bundle.json.license +0 -0
  52. {circup-1.5.3 → circup-1.6.0}/tests/device.json +0 -0
  53. {circup-1.5.3 → circup-1.6.0}/tests/device.json.license +0 -0
  54. {circup-1.5.3 → circup-1.6.0}/tests/dir_module/__init__.py +0 -0
  55. {circup-1.5.3 → circup-1.6.0}/tests/dir_module/my_module.py +0 -0
  56. {circup-1.5.3 → circup-1.6.0}/tests/import_styles.py +0 -0
  57. {circup-1.5.3 → circup-1.6.0}/tests/local_module.py +0 -0
  58. {circup-1.5.3 → circup-1.6.0}/tests/local_module_cp7.mpy +0 -0
  59. {circup-1.5.3 → circup-1.6.0}/tests/local_module_cp7.mpy.license +0 -0
  60. {circup-1.5.3 → circup-1.6.0}/tests/mount_exists.txt +0 -0
  61. {circup-1.5.3 → circup-1.6.0}/tests/mount_exists.txt.license +0 -0
  62. {circup-1.5.3 → circup-1.6.0}/tests/mount_missing.txt +0 -0
  63. {circup-1.5.3 → circup-1.6.0}/tests/mount_missing.txt.license +0 -0
  64. {circup-1.5.3 → circup-1.6.0}/tests/remote_module.py +0 -0
  65. {circup-1.5.3 → circup-1.6.0}/tests/test_bundle_config.json +0 -0
  66. {circup-1.5.3 → circup-1.6.0}/tests/test_bundle_config.json.license +0 -0
  67. {circup-1.5.3 → circup-1.6.0}/tests/test_bundle_config_local.json +0 -0
  68. {circup-1.5.3 → circup-1.6.0}/tests/test_bundle_config_local.json.license +0 -0
  69. {circup-1.5.3 → circup-1.6.0}/tests/test_module.mpy +0 -0
  70. {circup-1.5.3 → circup-1.6.0}/tests/test_module.mpy.license +0 -0
@@ -0,0 +1,5 @@
1
+ # SPDX-FileCopyrightText: 2023 Vladimír Kotal
2
+ #
3
+ # SPDX-License-Identifier: Unlicense
4
+ [settings]
5
+ profile = black
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: circup
3
- Version: 1.5.3
3
+ Version: 1.6.0
4
4
  Summary: A tool to manage/update libraries on CircuitPython devices.
5
5
  Home-page: https://github.com/adafruit/circup
6
6
  Author: Adafruit Industries
@@ -57,16 +57,16 @@ Requires-Dist: sphinx; extra == "dev"
57
57
  Requires-Dist: wheel; extra == "dev"
58
58
  Requires-Dist: twine; extra == "dev"
59
59
  Provides-Extra: all
60
- Requires-Dist: pylint; extra == "all"
61
- Requires-Dist: coverage; extra == "all"
62
- Requires-Dist: pytest-cov; extra == "all"
63
60
  Requires-Dist: pytest-faulthandler; extra == "all"
64
- Requires-Dist: sphinx; extra == "all"
65
- Requires-Dist: pytest-random-order>=1.0.0; extra == "all"
66
- Requires-Dist: black; extra == "all"
67
61
  Requires-Dist: pytest; extra == "all"
68
- Requires-Dist: wheel; extra == "all"
62
+ Requires-Dist: coverage; extra == "all"
63
+ Requires-Dist: pytest-random-order>=1.0.0; extra == "all"
69
64
  Requires-Dist: twine; extra == "all"
65
+ Requires-Dist: sphinx; extra == "all"
66
+ Requires-Dist: wheel; extra == "all"
67
+ Requires-Dist: pytest-cov; extra == "all"
68
+ Requires-Dist: pylint; extra == "all"
69
+ Requires-Dist: black; extra == "all"
70
70
 
71
71
 
72
72
  CircUp
@@ -159,24 +159,32 @@ To get help, just type the command::
159
159
  A tool to manage and update libraries on a CircuitPython device.
160
160
 
161
161
  Options:
162
- --verbose Comprehensive logging is sent to stdout.
163
- --version Show the version and exit.
164
- --path DIRECTORY Path to CircuitPython directory. Overrides automatic
165
- path detection.
166
- --help Show this message and exit.
167
- -r --requirement Supports requirements.txt tracking of library
168
- requirements with freeze and install commands.
162
+ --verbose Comprehensive logging is sent to stdout.
163
+ --path DIRECTORY Path to CircuitPython directory. Overrides automatic
164
+ path detection.
165
+ --host TEXT Hostname or IP address of a device. Overrides automatic
166
+ path detection.
167
+ --password TEXT Password to use for authentication when --host is used.
168
+ --board-id TEXT Manual Board ID of the CircuitPython device. If provided
169
+ in combination with --cpy-version, it overrides the
170
+ detected board ID.
171
+ --cpy-version TEXT Manual CircuitPython version. If provided in combination
172
+ with --board-id, it overrides the detected CPy version.
173
+ --version Show the version and exit.
174
+ --help Show this message and exit.
169
175
 
170
176
  Commands:
171
- freeze Output details of all the modules found on the connected...
172
- install Installs .mpy version of named module(s) onto the device.
173
- install --py Installs .py version of named module(s).
174
- list Lists all out of date modules found on the connected...
175
- show Show the long list of all available modules in the bundle.
176
- show <query> Search the names in the modules in the bundle for a match.
177
- uninstall Uninstall a named module(s) from the connected device.
178
- update Update modules on the device. Use --all to automatically update
179
- all modules.
177
+ bundle-add Add bundles to the local bundles list, by "user/repo"...
178
+ bundle-remove Remove one or more bundles from the local bundles list.
179
+ bundle-show Show the list of bundles, default and local, with URL,...
180
+ freeze Output details of all the modules found on the connected...
181
+ install Install a named module(s) onto the device.
182
+ list Lists all out of date modules found on the connected...
183
+ show Show a list of available modules in the bundle.
184
+ uninstall Uninstall a named module(s) from the connected device.
185
+ update Update modules on the device. Use --all to automatically
186
+ update all modules without Major Version warnings.
187
+
180
188
 
181
189
 
182
190
  To automatically install all modules imported by ``code.py``,
@@ -291,6 +299,12 @@ The ``--version`` flag will tell you the current version of the
291
299
  $ circup --version
292
300
  CircUp, A CircuitPython module updater. Version 0.0.1
293
301
 
302
+
303
+ To use circup via the `Web Workflow <https://learn.adafruit.com/getting-started-with-web-workflow-using-the-code-editor>`_. on devices that support it. Use the ``--host`` and ``--password`` arguments before your circup command.::
304
+
305
+ $ circup --host 192.168.1.119 --password s3cr3t install adafruit_hid
306
+ $ circup --host cpy-9573b2.local --password s3cr3t install adafruit_hid
307
+
294
308
  That's it!
295
309
 
296
310
 
@@ -89,24 +89,32 @@ To get help, just type the command::
89
89
  A tool to manage and update libraries on a CircuitPython device.
90
90
 
91
91
  Options:
92
- --verbose Comprehensive logging is sent to stdout.
93
- --version Show the version and exit.
94
- --path DIRECTORY Path to CircuitPython directory. Overrides automatic
95
- path detection.
96
- --help Show this message and exit.
97
- -r --requirement Supports requirements.txt tracking of library
98
- requirements with freeze and install commands.
92
+ --verbose Comprehensive logging is sent to stdout.
93
+ --path DIRECTORY Path to CircuitPython directory. Overrides automatic
94
+ path detection.
95
+ --host TEXT Hostname or IP address of a device. Overrides automatic
96
+ path detection.
97
+ --password TEXT Password to use for authentication when --host is used.
98
+ --board-id TEXT Manual Board ID of the CircuitPython device. If provided
99
+ in combination with --cpy-version, it overrides the
100
+ detected board ID.
101
+ --cpy-version TEXT Manual CircuitPython version. If provided in combination
102
+ with --board-id, it overrides the detected CPy version.
103
+ --version Show the version and exit.
104
+ --help Show this message and exit.
99
105
 
100
106
  Commands:
101
- freeze Output details of all the modules found on the connected...
102
- install Installs .mpy version of named module(s) onto the device.
103
- install --py Installs .py version of named module(s).
104
- list Lists all out of date modules found on the connected...
105
- show Show the long list of all available modules in the bundle.
106
- show <query> Search the names in the modules in the bundle for a match.
107
- uninstall Uninstall a named module(s) from the connected device.
108
- update Update modules on the device. Use --all to automatically update
109
- all modules.
107
+ bundle-add Add bundles to the local bundles list, by "user/repo"...
108
+ bundle-remove Remove one or more bundles from the local bundles list.
109
+ bundle-show Show the list of bundles, default and local, with URL,...
110
+ freeze Output details of all the modules found on the connected...
111
+ install Install a named module(s) onto the device.
112
+ list Lists all out of date modules found on the connected...
113
+ show Show a list of available modules in the bundle.
114
+ uninstall Uninstall a named module(s) from the connected device.
115
+ update Update modules on the device. Use --all to automatically
116
+ update all modules without Major Version warnings.
117
+
110
118
 
111
119
 
112
120
  To automatically install all modules imported by ``code.py``,
@@ -221,6 +229,12 @@ The ``--version`` flag will tell you the current version of the
221
229
  $ circup --version
222
230
  CircUp, A CircuitPython module updater. Version 0.0.1
223
231
 
232
+
233
+ To use circup via the `Web Workflow <https://learn.adafruit.com/getting-started-with-web-workflow-using-the-code-editor>`_. on devices that support it. Use the ``--host`` and ``--password`` arguments before your circup command.::
234
+
235
+ $ circup --host 192.168.1.119 --password s3cr3t install adafruit_hid
236
+ $ circup --host cpy-9573b2.local --password s3cr3t install adafruit_hid
237
+
224
238
  That's it!
225
239
 
226
240