Skip to content

Commit 78f0102

Browse files
committed
Modify setup.py to handle multiple pythons
1 parent a80bc7d commit 78f0102

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

setup.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"emoji",
1414
# Assuming numpy version <1.25.0 is compatible with older Python versions and older HoloViews
1515
"pyamg",
16-
"matplotlib<=3.7.4", # Specify versions compatible with older Python versions
17-
"seaborn>=0.12.2",
1816
"scikit-learn",
1917
"statsmodels",
2018
"nltk",
@@ -27,18 +25,20 @@
2725
# Define default dependencies (compatible with older Python versions)
2826
install_requires = list_req
2927

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

4040
# For Python versions >= 3.10 and < 3.11, update the dependency list
41-
if (3, 10) < python_version <= (3, 11):
41+
if (3, 10) <= python_version <= (3, 11):
4242
install_requires = list_req + [
4343
# Keep most dependencies as is, adjust only where necessary
4444
"numpy>=1.24.0", # Update as needed for compatibility with newer HoloViews
@@ -48,6 +48,8 @@
4848
# Ensure other dependencies are compatible
4949
"panel>=1.4.0", ## this is a new version of panel
5050
"pandas>=2.0", ## pandas must be below 2.0 version
51+
"matplotlib>3.7.4", ## newer version of matplotlib
52+
"seaborn>0.12.2", ## newer version of seaborn ##
5153
]
5254

5355
# For Python versions >= 3.11, ensure HoloViews is at least 1.15.3 for the bug fix
@@ -60,11 +62,13 @@
6062
# Update or keep other dependencies as needed
6163
"panel>=1.4.0", ## this is a new version of panel
6264
"pandas<2.0", ## pandas must be below 2.0 version
65+
"matplotlib>3.7.4", ## newer version of matplotlib
66+
"seaborn>0.12.2", ## newer version of seaborn ##
6367
]
6468

6569
setuptools.setup(
6670
name="autoviz",
67-
version="0.1.901",
71+
version="0.1.902",
6872
author="Ram Seshadri",
6973
description="Automatically Visualize any dataset, any size with a single line of code",
7074
long_description=long_description,

0 commit comments

Comments
 (0)