Skip to content

Commit

Permalink
Modify setup.py to handle multiple pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoViML committed Apr 26, 2024
1 parent 1be038f commit a760ff8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 42 deletions.
2 changes: 1 addition & 1 deletion autoviz/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__author__ = "Ram Seshadri"
__description__ = "Automatically Visualize any data set any size with a Single Line of Code"
__url__ = "https://github.com/AutoViML/AutoViz.git"
__version__ = "0.1.902"
__version__ = "0.1.903"
__holo_version__ = "0.0.4"
__license__ = "Apache License 2.0"
__copyright__ = "2020-21 Google"
55 changes: 14 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,50 +25,23 @@
# Define default dependencies (compatible with older Python versions)
install_requires = list_req

if python_version < (3, 10):
install_requires = list_req + [
"numpy<1.24", # older version. otherwise you get numpy bool error
"hvplot~=0.7.3", # Older compatible version
"holoviews<=1.14.9", # Older compatible version
"panel~=0.14.4", ## this is an old versjon of panel
"param==1.13.0", ### something broke in panel without this
"pandas<2.0", ## pandas must be below 2.0 version
"matplotlib<=3.7.4", ## newer version of matplotlib
"seaborn<=0.12.2", ## newer version of seaborn ##
]

# For Python versions >= 3.10 and < 3.11, update the dependency list
if (3, 10) <= python_version <= (3, 11):
install_requires = list_req + [
# Keep most dependencies as is, adjust only where necessary
"numpy>=1.24.0", # Update as needed for compatibility with newer HoloViews
# Update other dependencies as needed
"hvplot>=0.9.2", ###newer hvplot
"holoviews>=1.16.0", # Update based on the bug fix relevant to Python 3.10
# Ensure other dependencies are compatible
"panel>=1.4.0", ## this is a new version of panel
"pandas>=2.0", ## pandas must be below 2.0 version
"matplotlib>3.7.4", ## newer version of matplotlib
"seaborn>0.12.2", ## newer version of seaborn ##
]

# For Python versions >= 3.11, ensure HoloViews is at least 1.15.3 for the bug fix
if python_version > (3, 11):
install_requires = list_req + [
# Adjust dependencies as needed for Python 3.11
"numpy>=1.25.0", # Update as needed for compatibility with newer HoloViews
"hvplot>=0.9.2", ###newer hvplot
"holoviews>=1.15.3", # Ensure version is >= 1.15.3 for Python 3.11 support
# Update or keep other dependencies as needed
"panel>=1.4.0", ## this is a new version of panel
"pandas<2.0", ## pandas must be below 2.0 version
"matplotlib>3.7.4", ## newer version of matplotlib
"seaborn>0.12.2", ## newer version of seaborn ##
]
# Define default dependencies (compatible with older Python versions)
install_requires = list_req + [
# Keep most dependencies as is, adjust only where necessary
"numpy>=1.24.0", # Update as needed for compatibility with newer HoloViews
# Update other dependencies as needed
"hvplot>=0.9.2", ###newer hvplot
"holoviews>=1.16.0", # Update based on the bug fix relevant to Python 3.10
# Ensure other dependencies are compatible
"panel>=1.4.0", ## this is a new version of panel
"pandas>=2.0", ## pandas must be below 2.0 version
"matplotlib>3.7.4", ## newer version of matplotlib
"seaborn>0.12.2", ## newer version of seaborn ##
]

setuptools.setup(
name="autoviz",
version="0.1.902",
version="0.1.903",
author="Ram Seshadri",
description="Automatically Visualize any dataset, any size with a single line of code",
long_description=long_description,
Expand Down

0 comments on commit a760ff8

Please sign in to comment.