From cc1d4e8e1d293bced22aaea6437b381f1bced5fc Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Fri, 3 Jun 2022 10:15:11 +0800 Subject: [PATCH] Fix installation after black formatting changes The black formatting broke the regular expression used in setup.py to extract the version number of the library. It thus became impossible to install it. This commit adjusts the regular expression so the version number can be extracted again successfully. Signed-off-by: Rodrigo Tobar --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2011069..8680386 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ with io.open(os.path.join(here, 'merklelib', '__init__.py'), encoding='utf-8') as fp: - version = re.compile(r".*__version__ = '(.*?)'", re.S).match(fp.read()).group(1) + version = re.compile(r".*__version__ = \"(.*?)\"", re.S).match(fp.read()).group(1) try: with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: