Skip to content

Commit

Permalink
Sanitize version string when extracted from git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
wookayin committed Aug 22, 2023
1 parent 806b98f commit a04357a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def read_version():
__version__ = read_version()


# A valid version is like 1.1.0, not v1.1.0
__version__ = __version__.lstrip('v')


# brought from https://github.com/kennethreitz/setup.py
class DeployCommand(Command):
Expand Down

0 comments on commit a04357a

Please sign in to comment.