Skip to content

Commit

Permalink
enable support for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienArcellier committed Sep 30, 2023
1 parent cc44020 commit c61703a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions alfred/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ def publish():
# update the existing tags
alfred.run(git, ["fetch"])

current_version: str = git["describe", "--tags", "--abbrev=0"]().strip()
git_status: str = git["status"]()
_, stdout, _ = alfred.run(git, ["describe", "--tags", "--abbrev=0"])
current_version = stdout.strip()

_, stdout, _ = alfred.run(git, ["status"])
git_status = stdout.strip()

on_master = "On branch master" in git_status
if not on_master:
Expand Down

0 comments on commit c61703a

Please sign in to comment.