Skip to content

Commit 7dfa01b

Browse files
committed
Fix: Allow checkkout with missing tag
Bump version to 1.16.3 Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent c03da53 commit 7dfa01b

File tree

11 files changed

+158
-24
lines changed

11 files changed

+158
-24
lines changed

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.16.2"
11+
version = "1.16.3"
1212
description = "Tooling to create and maintain stubs for MicroPython"
1313
authors = ["Jos Verlinde <jos_verlinde@hotmail.com>"]
1414
license = "MIT"

scripts/get_firmwares.ipynb

Lines changed: 140 additions & 8 deletions
Large diffs are not rendered by default.

src/stubber/__init__.py

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

33

4-
__version__ = "1.16.2"
4+
__version__ = "1.16.3"

src/stubber/basicgit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _run_local_git(
4242
return None
4343
except subprocess.CalledProcessError as e: # pragma: no cover
4444
# add some logging for github actions
45-
log.error(f"{str(e)} : { e.stderr.decode('utf-8')}")
45+
log.error(f"{str(e)} : { e.stderr}")
4646
return None
4747
if result.stderr and result.stderr != b"":
4848
stderr = result.stderr
@@ -150,7 +150,7 @@ def checkout_tag(tag: str, repo: Optional[Union[str, Path]] = None) -> bool:
150150
"""
151151
checkout a specific git tag
152152
"""
153-
cmd = ["git", "checkout", "tags/" + tag, "--detach", "--quiet", "--force"]
153+
cmd = ["git", "checkout", tag, "--quiet", "--force"]
154154
result = _run_local_git(cmd, repo=repo, expect_stderr=True, capture_output=True)
155155
if not result:
156156
return False

src/stubber/board/createstubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from ucollections import OrderedDict # type: ignore
2626

2727

28-
__version__ = "v1.16.2"
28+
__version__ = "v1.16.3"
2929
ENOENT = 2
3030
_MAX_CLASS_LEVEL = 2 # Max class nesting
3131
LIBS = [".", "/lib", "/sd/lib", "/flash/lib", "lib"]

src/stubber/board/createstubs_db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- cross compilation, using mpy-cross, to avoid the compilation step on the micropython device
1919
2020
21-
This variant was generated from createstubs.py by micropython-stubber v1.16.2
21+
This variant was generated from createstubs.py by micropython-stubber v1.16.3
2222
"""
2323
# Copyright (c) 2019-2023 Jos Verlinde
2424

@@ -59,7 +59,7 @@ def feed(self):
5959

6060
wdt.feed()
6161

62-
__version__ = "v1.16.2"
62+
__version__ = "v1.16.3"
6363
ENOENT = 2
6464
_MAX_CLASS_LEVEL = 2 # Max class nesting
6565
LIBS = [".", "/lib", "/sd/lib", "/flash/lib", "lib"]

src/stubber/board/createstubs_db_min.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- cross compilation, using mpy-cross, to avoid the compilation step on the micropython device
1919
2020
21-
This variant was generated from createstubs.py by micropython-stubber v1.16.2
21+
This variant was generated from createstubs.py by micropython-stubber v1.16.3
2222
"""
2323
# Copyright (c) 2019-2023 Jos Verlinde
2424

@@ -59,7 +59,7 @@ def feed(self):
5959

6060
wdt.feed()
6161

62-
__version__ = "v1.16.2"
62+
__version__ = "v1.16.3"
6363
ENOENT = 2
6464
_MAX_CLASS_LEVEL = 2 # Max class nesting
6565
LIBS = [".", "/lib", "/sd/lib", "/flash/lib", "lib"]

src/stubber/board/createstubs_mem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- cross compilation, using mpy-cross,
1010
to avoid the compilation step on the micropython device
1111
12-
This variant was generated from createstubs.py by micropython-stubber v1.16.2
12+
This variant was generated from createstubs.py by micropython-stubber v1.16.3
1313
"""
1414
# Copyright (c) 2019-2023 Jos Verlinde
1515

@@ -50,7 +50,7 @@ def feed(self):
5050

5151
wdt.feed()
5252

53-
__version__ = "v1.16.2"
53+
__version__ = "v1.16.3"
5454
ENOENT = 2
5555
_MAX_CLASS_LEVEL = 2 # Max class nesting
5656
LIBS = [".", "/lib", "/sd/lib", "/flash/lib", "lib"]

src/stubber/board/createstubs_mem_min.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- cross compilation, using mpy-cross,
1010
to avoid the compilation step on the micropython device
1111
12-
This variant was generated from createstubs.py by micropython-stubber v1.16.2
12+
This variant was generated from createstubs.py by micropython-stubber v1.16.3
1313
"""
1414
# Copyright (c) 2019-2023 Jos Verlinde
1515

@@ -50,7 +50,7 @@ def feed(self):
5050

5151
wdt.feed()
5252

53-
__version__ = "v1.16.2"
53+
__version__ = "v1.16.3"
5454
ENOENT = 2
5555
_MAX_CLASS_LEVEL = 2 # Max class nesting
5656
LIBS = [".", "/lib", "/sd/lib", "/flash/lib", "lib"]

src/stubber/board/createstubs_min.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def feed(self):
4040

4141
wdt.feed()
4242

43-
__version__ = "v1.16.2"
43+
__version__ = "v1.16.3"
4444
ENOENT = 2
4545
_MAX_CLASS_LEVEL = 2 # Max class nesting
4646
LIBS = [".", "/lib", "/sd/lib", "/flash/lib", "lib"]

0 commit comments

Comments
 (0)