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 28, 2024
1 parent 53a3b08 commit cde191a
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 @@ -17,7 +17,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 cde191a

Please sign in to comment.