circup 1.6.1__tar.gz → 1.6.2__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-1.6.1/circup.egg-info → circup-1.6.2}/PKG-INFO +7 -7
- {circup-1.6.1 → circup-1.6.2}/circup/backends.py +20 -3
- {circup-1.6.1 → circup-1.6.2/circup.egg-info}/PKG-INFO +7 -7
- {circup-1.6.1 → circup-1.6.2}/.github/ISSUE_TEMPLATE.md +0 -0
- {circup-1.6.1 → circup-1.6.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {circup-1.6.1 → circup-1.6.2}/.github/workflows/build.yml +0 -0
- {circup-1.6.1 → circup-1.6.2}/.github/workflows/release.yml +0 -0
- {circup-1.6.1 → circup-1.6.2}/.gitignore +0 -0
- {circup-1.6.1 → circup-1.6.2}/.isort.cfg +0 -0
- {circup-1.6.1 → circup-1.6.2}/.pre-commit-config.yaml +0 -0
- {circup-1.6.1 → circup-1.6.2}/.pylintrc +0 -0
- {circup-1.6.1 → circup-1.6.2}/CODE_OF_CONDUCT.rst +0 -0
- {circup-1.6.1 → circup-1.6.2}/CODE_OF_CONDUCT.rst.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/CONTRIBUTING.rst +0 -0
- {circup-1.6.1 → circup-1.6.2}/CONTRIBUTING.rst.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/LICENSE +0 -0
- {circup-1.6.1 → circup-1.6.2}/LICENSES/CC-BY-4.0.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/LICENSES/MIT.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/LICENSES/Unlicense.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/README.rst +0 -0
- {circup-1.6.1 → circup-1.6.2}/README.rst.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup/__init__.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup/config/bundle_config.json +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup/config/bundle_config.json.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup/shared.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup.egg-info/SOURCES.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup.egg-info/dependency_links.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup.egg-info/entry_points.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/circup.egg-info/requires.txt +6 -6
- {circup-1.6.1 → circup-1.6.2}/circup.egg-info/top_level.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/_static/favicon.ico +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/_static/favicon.ico.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/conf.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/index.rst +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/index.rst.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/logo.png +0 -0
- {circup-1.6.1 → circup-1.6.2}/docs/logo.png.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/readthedocs.yml +0 -0
- {circup-1.6.1 → circup-1.6.2}/requirements.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/requirements.txt.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/setup.cfg +0 -0
- {circup-1.6.1 → circup-1.6.2}/setup.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/__init__.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/bad_module/__init__.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/bad_module/my_module.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/bad_python.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/bundle.json +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/bundle.json.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/device.json +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/device.json.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/dir_module/__init__.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/dir_module/my_module.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/import_styles.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/local_module.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/local_module_cp7.mpy +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/local_module_cp7.mpy.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/mock_device/boot_out.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/mock_device/boot_out.txt.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/mount_exists.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/mount_exists.txt.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/mount_missing.txt +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/mount_missing.txt.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/remote_module.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_bundle_config.json +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_bundle_config.json.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_bundle_config_local.json +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_bundle_config_local.json.license +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_circup.py +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_module.mpy +0 -0
- {circup-1.6.1 → circup-1.6.2}/tests/test_module.mpy.license +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: circup
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.2
|
|
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: pytest-faulthandler; extra == "all"
|
|
61
|
-
Requires-Dist: pylint; extra == "all"
|
|
62
|
-
Requires-Dist: wheel; extra == "all"
|
|
63
|
-
Requires-Dist: pytest-random-order>=1.0.0; extra == "all"
|
|
64
|
-
Requires-Dist: coverage; extra == "all"
|
|
65
60
|
Requires-Dist: black; extra == "all"
|
|
61
|
+
Requires-Dist: pytest-cov; extra == "all"
|
|
62
|
+
Requires-Dist: pytest-random-order>=1.0.0; extra == "all"
|
|
66
63
|
Requires-Dist: sphinx; extra == "all"
|
|
64
|
+
Requires-Dist: coverage; extra == "all"
|
|
67
65
|
Requires-Dist: twine; extra == "all"
|
|
68
|
-
Requires-Dist:
|
|
66
|
+
Requires-Dist: wheel; extra == "all"
|
|
67
|
+
Requires-Dist: pytest-faulthandler; extra == "all"
|
|
69
68
|
Requires-Dist: pytest; extra == "all"
|
|
69
|
+
Requires-Dist: pylint; extra == "all"
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
CircUp
|
|
@@ -589,14 +589,31 @@ class WebBackend(Backend):
|
|
|
589
589
|
|
|
590
590
|
def is_device_present(self):
|
|
591
591
|
"""
|
|
592
|
-
returns True if the device is currently connected
|
|
592
|
+
returns True if the device is currently connected and running supported version
|
|
593
593
|
"""
|
|
594
594
|
try:
|
|
595
|
-
|
|
596
|
-
|
|
595
|
+
with self.session.get(f"{self.device_location}/cp/version.json") as r:
|
|
596
|
+
r.raise_for_status()
|
|
597
|
+
web_api_version = r.json().get("web_api_version")
|
|
598
|
+
if web_api_version is None:
|
|
599
|
+
self.logger.error("Unable to get web API version from device.")
|
|
600
|
+
click.secho("Unable to get web API version from device.", fg="red")
|
|
601
|
+
return False
|
|
602
|
+
|
|
603
|
+
if web_api_version < 4:
|
|
604
|
+
self.logger.error(
|
|
605
|
+
f"Device running unsupported web API version {web_api_version} < 4."
|
|
606
|
+
)
|
|
607
|
+
click.secho(
|
|
608
|
+
f"Device running unsupported web API version {web_api_version} < 4.",
|
|
609
|
+
fg="red",
|
|
610
|
+
)
|
|
611
|
+
return False
|
|
597
612
|
except requests.exceptions.ConnectionError:
|
|
598
613
|
return False
|
|
599
614
|
|
|
615
|
+
return True
|
|
616
|
+
|
|
600
617
|
def get_device_versions(self):
|
|
601
618
|
"""
|
|
602
619
|
Returns a dictionary of metadata from modules on the connected device.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: circup
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.2
|
|
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: pytest-faulthandler; extra == "all"
|
|
61
|
-
Requires-Dist: pylint; extra == "all"
|
|
62
|
-
Requires-Dist: wheel; extra == "all"
|
|
63
|
-
Requires-Dist: pytest-random-order>=1.0.0; extra == "all"
|
|
64
|
-
Requires-Dist: coverage; extra == "all"
|
|
65
60
|
Requires-Dist: black; extra == "all"
|
|
61
|
+
Requires-Dist: pytest-cov; extra == "all"
|
|
62
|
+
Requires-Dist: pytest-random-order>=1.0.0; extra == "all"
|
|
66
63
|
Requires-Dist: sphinx; extra == "all"
|
|
64
|
+
Requires-Dist: coverage; extra == "all"
|
|
67
65
|
Requires-Dist: twine; extra == "all"
|
|
68
|
-
Requires-Dist:
|
|
66
|
+
Requires-Dist: wheel; extra == "all"
|
|
67
|
+
Requires-Dist: pytest-faulthandler; extra == "all"
|
|
69
68
|
Requires-Dist: pytest; extra == "all"
|
|
69
|
+
Requires-Dist: pylint; extra == "all"
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
CircUp
|
|
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
|
|
@@ -10,16 +10,16 @@ update_checker
|
|
|
10
10
|
importlib_metadata
|
|
11
11
|
|
|
12
12
|
[all]
|
|
13
|
-
pytest-faulthandler
|
|
14
|
-
pylint
|
|
15
|
-
wheel
|
|
16
|
-
pytest-random-order>=1.0.0
|
|
17
|
-
coverage
|
|
18
13
|
black
|
|
14
|
+
pytest-cov
|
|
15
|
+
pytest-random-order>=1.0.0
|
|
19
16
|
sphinx
|
|
17
|
+
coverage
|
|
20
18
|
twine
|
|
21
|
-
|
|
19
|
+
wheel
|
|
20
|
+
pytest-faulthandler
|
|
22
21
|
pytest
|
|
22
|
+
pylint
|
|
23
23
|
|
|
24
24
|
[dev]
|
|
25
25
|
pytest
|
|
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
|