From 6fc5eba30f7374433329f6ddd5c405bc5f778d90 Mon Sep 17 00:00:00 2001 From: Sakari Ikonen Date: Wed, 25 Oct 2023 16:17:19 +0300 Subject: [PATCH] revert to string parsing for version as import breaks with Tox. --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ea917e5822..83424d5440 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,7 @@ from setuptools import setup, find_packages -from metaflow.version import metaflow_version - -version = metaflow_version +with open("metaflow/version.py", mode="r") as f: + version = f.read().splitlines()[0].split("=")[1].strip(" \"'") setup( include_package_data=True,