Skip to content

Commit

Permalink
fix nox tag session (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea authored Mar 2, 2023
1 parent 79dcb7b commit 7194d41
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
10 changes: 3 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def build_python(session: Session) -> None:


@group.session
def tag(session: Session, version: str) -> None:
def tag(session: Session, version: str = "") -> None:
"""Create a new git tag"""
try:
session.run(
Expand All @@ -250,13 +250,9 @@ def tag(session: Session, version: str) -> None:
except Exception:
session.error("Cannot create a tag - there are uncommited changes")

if len(session.posargs) > 1:
session.error("To many arguments")

try:
new_version = version
except IndexError:
if not version:
session.error("No version tag given")
new_version = version

install_requirements_file(session, "make-release")

Expand Down
4 changes: 2 additions & 2 deletions src/client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/client/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"format": "prettier --write ./src",
"test": "echo 'no tests'"
},
"version": "1.0.0"
"version": "0.45.0"
}
2 changes: 1 addition & 1 deletion src/client/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"test": "uvu tests"
},
"type": "module",
"version": "1.0.0"
"version": "0.45.0"
}
2 changes: 1 addition & 1 deletion src/reactpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


__author__ = "The Reactive Python Team"
__version__ = "1.0.0" # DO NOT MODIFY
__version__ = "0.45.0" # DO NOT MODIFY

__all__ = [
"backend",
Expand Down

0 comments on commit 7194d41

Please sign in to comment.