Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Josverl committed Apr 15, 2024
1 parent 3304c33 commit a578476
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion mip/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
]
],
"deps": [],
"version": "1.18.0"
"version": "1.19.0"
}
2 changes: 1 addition & 1 deletion mip/minified.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
]
],
"deps": [],
"version": "1.18.0"
"version": "1.19.0"
}
2 changes: 1 addition & 1 deletion mip/mpy_v5.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
]
],
"deps": [],
"version": "1.18.0"
"version": "1.19.0"
}
2 changes: 1 addition & 1 deletion mip/mpy_v6.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
]
],
"deps": [],
"version": "1.18.0"
"version": "1.19.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
]
],
"deps": [],
"version": "1.18.0"
"version": "1.19.0"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repo-path = "./repos"

[tool.poetry]
name = "micropython-stubber"
version = "1.18.0"
version = "1.19.0"
description = "Tooling to create and maintain stubs for MicroPython"
authors = ["Jos Verlinde <jos_verlinde@hotmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/stubber/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""get the version"""

__version__ = "1.18.0"
__version__ = "1.19.0"
2 changes: 1 addition & 1 deletion src/stubber/board/createstubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
except ImportError:
from ucollections import OrderedDict # type: ignore

__version__ = "v1.18.0"
__version__ = "v1.19.0"
ENOENT = 2
_MAX_CLASS_LEVEL = 2 # Max class nesting
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
Expand Down
4 changes: 2 additions & 2 deletions src/stubber/board/createstubs_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- cross compilation, using mpy-cross, to avoid the compilation step on the micropython device
This variant was generated from createstubs.py by micropython-stubber v1.18.0
This variant was generated from createstubs.py by micropython-stubber v1.19.0
"""

# Copyright (c) 2019-2024 Jos Verlinde
Expand All @@ -43,7 +43,7 @@
except ImportError:
from ucollections import OrderedDict # type: ignore

__version__ = "v1.18.0"
__version__ = "v1.19.0"
ENOENT = 2
_MAX_CLASS_LEVEL = 2 # Max class nesting
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
Expand Down
2 changes: 1 addition & 1 deletion src/stubber/board/createstubs_db_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
except O:pass
try:from collections import OrderedDict as l
except O:from ucollections import OrderedDict as l
__version__='v1.18.0'
__version__='v1.19.0'
A3=2
A4=2
A5=['lib','/lib','/sd/lib','/flash/lib',J]
Expand Down
4 changes: 2 additions & 2 deletions src/stubber/board/createstubs_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- cross compilation, using mpy-cross,
to avoid the compilation step on the micropython device
This variant was generated from createstubs.py by micropython-stubber v1.18.0
This variant was generated from createstubs.py by micropython-stubber v1.19.0
"""

# Copyright (c) 2019-2024 Jos Verlinde
Expand All @@ -34,7 +34,7 @@
except ImportError:
from ucollections import OrderedDict # type: ignore

__version__ = "v1.18.0"
__version__ = "v1.19.0"
ENOENT = 2
_MAX_CLASS_LEVEL = 2 # Max class nesting
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
Expand Down
2 changes: 1 addition & 1 deletion src/stubber/board/createstubs_mem_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
except N:pass
try:from collections import OrderedDict as g
except N:from ucollections import OrderedDict as g
__version__='v1.18.0'
__version__='v1.19.0'
y=2
z=2
A0=['lib','/lib','/sd/lib','/flash/lib',J]
Expand Down
2 changes: 1 addition & 1 deletion src/stubber/board/createstubs_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
except N:pass
try:from collections import OrderedDict as h
except N:from ucollections import OrderedDict as h
__version__='v1.18.0'
__version__='v1.19.0'
A0=2
A1=2
A5=['lib','/lib','/sd/lib','/flash/lib',J]
Expand Down
2 changes: 1 addition & 1 deletion src/stubber/publish/candidates.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def board_candidates(
else:
r = git.checkout_tag(repo=mpy_path, tag=version)
if not r:
log.warning(f"Incorrect version or did you run `stubber clone` to get the micropython repo?")
log.warning(f"Incorrect version: {version} or did you forget to run `stubber clone` to get the micropython repo?")
return []
ports = list_micropython_ports(family=family, mpy_path=mpy_path)
for port in ports:
Expand Down
18 changes: 7 additions & 11 deletions src/stubber/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,25 @@
@section("micropython-stubber")
class StubberConfig(Config):
"stubber configuration class"
# legacy
# stub_path = key(key_name="stub-path", cast=Path, required=False, default=Path("./stubs"))
# "a Path to the stubs directory"

# relative to stubs folder
fallback_path = key(key_name="fallback-path", cast=Path, required=False, default=Path("typings/fallback"))
fallback_path: Path = key(key_name="fallback-path", cast=Path, required=False, default=Path("typings/fallback"))
"a Path to the fallback stubs directory"

# ------------------------------------------------------------------------------------------
# micropython and micropython-lib are relative to ./repo folder
repo_path = key(key_name="repo-path", cast=Path, required=False, default=Path("./repos"))
repo_path: Path = key(key_name="repo-path", cast=Path, required=False, default=Path("./repos"))
"a Path to the repo directory"

mpy_path = key(key_name="mpy-path", cast=Path, required=False, default=Path("micropython"))
mpy_path: Path = key(key_name="mpy-path", cast=Path, required=False, default=Path("micropython"))
"a Path to the micropython folder in the repos directory"

mpy_lib_path = key(key_name="mpy-lib-path", cast=Path, required=False, default=Path("micropython-lib"))
mpy_lib_path: Path = key(key_name="mpy-lib-path", cast=Path, required=False, default=Path("micropython-lib"))
"a Path to the micropython-lib folder in the repos directory"

mpy_stubs_path = key(key_name="mpy-stubs-path", cast=Path, required=False, default=Path("micropython-stubs"))
mpy_stubs_path: Path = key(key_name="mpy-stubs-path", cast=Path, required=False, default=Path("micropython-stubs"))
"a Path to the micropython-stubs folder in the repos directory (or current directory)"

stable_version = key(key_name="stable-version", cast=str, required=False, default="1.20.0")
stable_version: str = key(key_name="stable-version", cast=str, required=False, default="1.20.0")

"last published stable"

Expand Down Expand Up @@ -101,7 +97,7 @@ def readconfig(filename: str = "pyproject.toml", prefix: str = "tool.", must_exi
while not (path / filename).exists():
path = path.parent
if path == path.parent:
log.info(f"Could not find config file: {filename}")
log.trace(f"Could not find config file: {filename}")
use_toml = False
break

Expand Down

0 comments on commit a578476

Please sign in to comment.