Skip to content

Commit 8e20e1c

Browse files
committed
stubber: clean tests and bump version
1 parent 8f3caa0 commit 8e20e1c

22 files changed

+45
-42
lines changed

.vscode/launch.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,29 @@
2626
},
2727
{
2828
"name": "CLI: mpflash",
29-
"type": "python",
29+
"type": "debugpy",
3030
"request": "launch",
3131
"module": "mpflash.cli_main",
32-
"justMyCode": false,
32+
"justMyCode": true,
3333
"cwd": "${workspaceFolder}",
3434
"args": [
35-
// "-V",
36-
// "--ignore",
37-
// "/dev/ttyAMA0",
35+
"-VV",
3836
"flash",
3937
// "--board",
4038
// "SEEED_WIO_TERMINAL",
39+
// "PICO",
40+
// "--serial",
41+
// "COM22",
42+
// "--board",
43+
// "--ignore",
44+
// "/dev/ttyAMA0",
45+
// "/dev/ttyACM0",
4146
// "--version",
4247
// "?",
4348
// "preview",
4449
// "--board",
4550
// "--no-erase",
4651
// "v1.22.2",
47-
// "--serial",
48-
// "/dev/ttyACM0",
4952
// "--port",
5053
// "samd",
5154
]

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"python.analysis.autoSearchPaths": true,
3-
"python.analysis.diagnosticMode": "openFilesOnly",
3+
"python.analysis.diagnosticMode": "workspace",
44
// "python.analysis.logLevel": "Trace",
55
//////////////////////////////////////////////////////////////
66
"python.testing.pytestEnabled": true,
@@ -135,5 +135,6 @@
135135
"typings"
136136
],
137137
"austin.mode": "Wall time",
138-
"austin.binaryMode": true
138+
"austin.binaryMode": true,
139+
"python.languageServer": "Pylance"
139140
}

mip/full.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
]
1919
],
2020
"deps": [],
21-
"version": "1.20.2"
21+
"version": "1.20.4"
2222
}

mip/minified.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
]
1919
],
2020
"deps": [],
21-
"version": "1.20.2"
21+
"version": "1.20.4"
2222
}

mip/mpy_v5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
]
1919
],
2020
"deps": [],
21-
"version": "1.20.2"
21+
"version": "1.20.4"
2222
}

mip/mpy_v6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
]
1919
],
2020
"deps": [],
21-
"version": "1.20.2"
21+
"version": "1.20.4"
2222
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
]
1919
],
2020
"deps": [],
21-
"version": "1.20.2"
21+
"version": "1.20.4"
2222
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repo-path = "./repos"
88

99
[tool.poetry]
1010
name = "micropython-stubber"
11-
version = "1.20.3b1"
11+
version = "1.20.4"
1212
description = "Tooling to create and maintain stubs for MicroPython"
1313
authors = ["Jos Verlinde <[email protected]>"]
1414
license = "MIT"

src/stubber/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""get the version"""
22

3-
__version__ = "1.20.2"
3+
__version__ = "1.20.4"

src/stubber/board/createstubs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
except ImportError:
2525
from ucollections import OrderedDict # type: ignore
2626

27-
__version__ = "v1.20.2"
27+
__version__ = "v1.20.4"
2828
ENOENT = 2
2929
_MAX_CLASS_LEVEL = 2 # Max class nesting
3030
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
@@ -596,10 +596,10 @@ def _info(): # type:() -> dict[str, str]
596596
if (
597597
info["version"]
598598
and info["version"].endswith(".0")
599-
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.20.2 do not have a micro .0
599+
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.20.4 do not have a micro .0
600600
and info["version"] <= "1.19.9"
601601
):
602-
# versions from 1.10.0 to 1.20.2 do not have a micro .0
602+
# versions from 1.10.0 to 1.20.4 do not have a micro .0
603603
info["version"] = info["version"][:-2]
604604

605605
# spell-checker: disable

0 commit comments

Comments
 (0)