From 48e109aa5f971c4756e56cff88f0f310e69ccf9c Mon Sep 17 00:00:00 2001 From: ghetherington Date: Thu, 9 Oct 2025 16:40:08 -0400 Subject: [PATCH] fixed build failures --- pyproject.toml | 9 +++++++++ setup.py | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..36d1caf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel", + "build", + "requests>=2.25.1", + "pandas>=1.1.0" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index 252d8b4..e7f6c9c 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ from setuptools import setup, find_packages -# Import the version from version.py -from vepi.version import __version__ - +# Read the version from version.py +with open("vepi/version.py", "r", encoding="utf-8") as f: + __version__ = [line for line in f if line.startswith("__version__")][0].split('"')[1] + # Read the README file for the long description with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read()