Skip to content

Commit

Permalink
fix variable scope in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
katosh committed Oct 3, 2023
1 parent 0d8d4f8 commit 583dab2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 583dab2

Please sign in to comment.