mpflash 1.24.0__py3-none-any.whl → 1.24.1__py3-none-any.whl
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.
- mpflash/common.py +2 -2
- mpflash/versions.py +3 -3
- {mpflash-1.24.0.dist-info → mpflash-1.24.1.dist-info}/METADATA +1 -1
- {mpflash-1.24.0.dist-info → mpflash-1.24.1.dist-info}/RECORD +7 -7
- {mpflash-1.24.0.dist-info → mpflash-1.24.1.dist-info}/LICENSE +0 -0
- {mpflash-1.24.0.dist-info → mpflash-1.24.1.dist-info}/WHEEL +0 -0
- {mpflash-1.24.0.dist-info → mpflash-1.24.1.dist-info}/entry_points.txt +0 -0
mpflash/common.py
CHANGED
@@ -32,8 +32,8 @@ PORT_FWTYPES = {
|
|
32
32
|
# https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#getting-a-higher-rate-limit
|
33
33
|
PAT_NO_ACCESS = (
|
34
34
|
"github_pat"
|
35
|
-
+ "
|
36
|
-
+ "
|
35
|
+
+ "_11AAHPVFQ0K6OKbI9xPFWG"
|
36
|
+
+ "_3KossOkuuxRJ6MZrP5o2vMsAW2i3QFZx2BECNjL4o30S2XQBWF77JgQbJda"
|
37
37
|
)
|
38
38
|
PAT = os.environ.get("GITHUB_TOKEN") or PAT_NO_ACCESS
|
39
39
|
GH_CLIENT = Github(auth=Auth.Token(PAT))
|
mpflash/versions.py
CHANGED
@@ -72,16 +72,16 @@ def clean_version(
|
|
72
72
|
|
73
73
|
|
74
74
|
@cache_to_disk(n_days_to_cache=1)
|
75
|
-
def micropython_versions(minver: str = "v1.20", reverse: bool = False):
|
75
|
+
def micropython_versions(minver: str = "v1.20", reverse: bool = False, cache_it=True):
|
76
76
|
"""Get the list of micropython versions from github tags"""
|
77
|
-
|
77
|
+
|
78
78
|
try:
|
79
79
|
gh_client = GH_CLIENT
|
80
80
|
repo = gh_client.get_repo("micropython/micropython")
|
81
81
|
versions = [tag.name for tag in repo.get_tags() if parse(tag.name) >= parse(minver)]
|
82
82
|
# Only keep the last preview
|
83
83
|
versions = [v for v in versions if not v.endswith(V_PREVIEW) or v == versions[-1]]
|
84
|
-
except Exception:
|
84
|
+
except Exception as e:
|
85
85
|
versions = [
|
86
86
|
"v9.99.9-preview",
|
87
87
|
"v1.22.2",
|
@@ -13,7 +13,7 @@ mpflash/cli_flash.py,sha256=pVqEsDocDT3KmIMTpXdym-ZlzThLSIp6oVtYib65dys,7595
|
|
13
13
|
mpflash/cli_group.py,sha256=VWwYHiPVV19sQEr5lL8LlcPyZ-A6Gs79eMDJy8LLt90,2615
|
14
14
|
mpflash/cli_list.py,sha256=ja21AZ4yghGTtOHkEtV1EOmT6EYxOiU2gzJc-mZaDto,2427
|
15
15
|
mpflash/cli_main.py,sha256=5EkvzsqOUDXvNaW814oSUcPWeNhnwh78Sg0MteDv_fk,1133
|
16
|
-
mpflash/common.py,sha256=
|
16
|
+
mpflash/common.py,sha256=hgt-B0kIIrTMuOyXMQODN3KyodXB_Gpr-C-ytH7iXvo,7398
|
17
17
|
mpflash/config.py,sha256=tdpvAvAlpco1GfeG2evn5tAKYluLEanqwrrvkir7QcQ,1073
|
18
18
|
mpflash/connected.py,sha256=woYhuXoWpfzRMDUpBLVQZbVTGtMsKWNd5z1rsR1ELXA,3578
|
19
19
|
mpflash/download.py,sha256=wE4uBSFFMAKOBH4jwHweL0wVYh4vi74t1673ku_IeoA,14305
|
@@ -45,9 +45,9 @@ mpflash/vendor/click_aliases.py,sha256=c853EHSlkE2DvFqeFvFpwXKuJj3_jsXDP7iotVOKa
|
|
45
45
|
mpflash/vendor/dfu.py,sha256=ZXMcE6aH4-43Wh4tbQT4U-q-BU3RUiL3JAxmP_QAK2s,5755
|
46
46
|
mpflash/vendor/pydfu.py,sha256=_MdBRo1EeNeKDqFPSTB5tNL1jGSBJgsVeVjE5e7Pb8s,20542
|
47
47
|
mpflash/vendor/readme.md,sha256=iIIZxuLUIGHQ0KODzYVtMezsztvyxCXcNJp_AzwTIPk,86
|
48
|
-
mpflash/versions.py,sha256=
|
49
|
-
mpflash-1.24.
|
50
|
-
mpflash-1.24.
|
51
|
-
mpflash-1.24.
|
52
|
-
mpflash-1.24.
|
53
|
-
mpflash-1.24.
|
48
|
+
mpflash/versions.py,sha256=5XhbR5Ef2291zBaDTcrfDjCl8iAIiuJKVfV6oNpPofY,4628
|
49
|
+
mpflash-1.24.1.dist-info/entry_points.txt,sha256=Jk_visOhYOsZIcSP2Ms9hKqfKy1iorR-6dYltSoWCpY,52
|
50
|
+
mpflash-1.24.1.dist-info/LICENSE,sha256=mWpNhsIxWzetYNnTpr4eb3HtgsxGIC8KcYWxXEcxQvE,1077
|
51
|
+
mpflash-1.24.1.dist-info/METADATA,sha256=_nDL8N-jdz-CNAw-MOaEtZmX1ZnAkcSRmubfn_7lR80,17650
|
52
|
+
mpflash-1.24.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
53
|
+
mpflash-1.24.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|