From 5167097445e72c8c8c8c01c5e273d5c7ff7990ae Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Tue, 12 Nov 2024 16:26:56 +0100 Subject: [PATCH] Fix version error message when building package After the commit ecb8013b5f 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. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1656b7d8..c5f4a61c 100755 --- a/setup.py +++ b/setup.py @@ -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"]