Skip to content

Commit

Permalink
hotfix for : #487
Browse files Browse the repository at this point in the history
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
  • Loading branch information
Josverl committed Dec 26, 2023
1 parent 69fa468 commit 66c72c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stubber/commands/build_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def cli_build(
ports = list(ports)
boards = list(boards)

if len(versions) > 1 :
raise NotImplementedError("Multiple versions are not supported yet\n See https://github.com/Josverl/micropython-stubber/issues/487")

# db = get_database(publish_path=CONFIG.publish_path, production=production)
log.info(f"Build {family} {versions} {ports} {boards}")

Expand Down
5 changes: 5 additions & 0 deletions src/stubber/commands/publish_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def cli_publish(
ports = list(ports)
boards = list(boards)

if len(versions) > 1:
raise NotImplementedError(
"Multiple versions are not supported yet\n See https://github.com/Josverl/micropython-stubber/issues/487"
)

# db = get_database(publish_path=CONFIG.publish_path, production=production)
destination = "pypi" if production else "test-pypi"
log.info(f"Publish {family} {versions} {ports} {boards} to {destination}")
Expand Down

0 comments on commit 66c72c1

Please sign in to comment.