micropython-stubber icon indicating copy to clipboard operation
micropython-stubber copied to clipboard

stubber build: Incorrect package versions When specifying multiple versions to be build at the same time

Open Josverl opened this issue 1 year ago • 0 comments

when using a compound cmdline such as stubber -v build --version v1.21.0 --version latest --version v1.20.0 --port auto --board auto

An incorrect incorrect version will be created such as : publish/micropython-latest-esp32-esp32_generic-stubs/pyproject.toml

[tool.poetry]
name = "micropython-esp32-esp32_generic-stubs"
version = "1.21.0a1"

if runnning only stubber -v build --version latest --port auto --board auto the correct pre-release versions are generated such as :

[tool.poetry]
name = "micropython-esp32-esp32_generic-stubs"
version = "1.22.0a289"

Possible related code :

  • https://github.com/Josverl/micropython-stubber/blob/QA_namedtuple/src/stubber/publish/stubpackage.py#L113-L114
  • or the git checkout of the micropython repo is not handled correctly when using multiple versions

Josverl avatar Dec 26 '23 09:12 Josverl