Skip to content

Commit

Permalink
Fix setup.py to read version correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aecio committed May 24, 2024
1 parent 75c19cf commit 789f212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read_version():
for line in file:
parts = line.strip().split(" ")
if parts and parts[0] == "__version__":
return parts[-1].strip("'")
return parts[-1].strip("'").strip("\"")

raise KeyError("Version not found in {0}".format(module_path))

Expand Down

0 comments on commit 789f212

Please sign in to comment.