Skip to content

Commit

Permalink
Fix version error message when building package
Browse files Browse the repository at this point in the history
After the commit ecb8013 in which we changed the way the python code
is formatted, the "hack" to get the version in setup.py no longer
worked.

The current commit fixes this. A better management of the version should
be implemented. For example, using setuptools_scm could be a good
option.
  • Loading branch information
pgiraud committed Nov 12, 2024
1 parent 0241f23 commit 5167097
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 @@ -6,7 +6,7 @@
with open("powa/__init__.py") as f:
for line in f:
if line.startswith("__VERSION__"):
__VERSION__ = line.split("=")[1].replace("'", "").strip()
__VERSION__ = line.split("=")[1].replace('"', "").strip()


requires = ["tornado>=2.0", "psycopg2"]
Expand Down

0 comments on commit 5167097

Please sign in to comment.