From 583dab2e84bba90e372e90ebfed7a3525243c3bb Mon Sep 17 00:00:00 2001 From: Dominik Date: Tue, 3 Oct 2023 15:34:41 -0700 Subject: [PATCH] fix variable scope in setup.py --- setup.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 0994cea1..34311bf1 100755 --- a/setup.py +++ b/setup.py @@ -7,21 +7,22 @@ if sys.version_info.minor < 6: warn("Analysis methods were developed using Python 3.6") -# get version +# get version and other attributes +version_info = {} with open("src/palantir/version.py") as f: - exec(f.read()) + exec(f.read(), version_info) with open("README.md", "r") as fh: long_description = fh.read() setup( name="palantir", - version=__version__, # read in from the exec of version.py; ignore error + version=version_info['__version__'], + author=version_info['__author__'], + author_email=version_info['__author_email__'], description="Palantir for modeling continuous cell state and cell fate choices in single cell data", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/dpeerlab/palantir", - author=__author__, - author_email=__author_email__, package_dir={"": "src"}, packages=["palantir"], install_requires=[