Skip to content

Commit

Permalink
Adding ne setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoViML committed Mar 31, 2024
1 parent da098fb commit 50a1bdc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"wordcloud",
"emoji",
# Assuming numpy version <1.25.0 is compatible with older Python versions and older HoloViews
"numpy<1.25.0",
"pandas",
"pyamg",
"matplotlib<=3.7.4", # Specify versions compatible with older Python versions
Expand All @@ -21,9 +20,7 @@
"statsmodels",
"nltk",
"textblob",
"holoviews~=1.14.9", # Older compatible version
"bokeh~=2.4.2", # Ensure compatibility with older HoloViews
"hvplot~=0.7.3", # Older compatible version
"panel>=0.12.6",
"xgboost>=0.82,<1.7",
"fsspec>=0.8.3",
Expand All @@ -33,12 +30,20 @@
# Define default dependencies (compatible with older Python versions)
install_requires = list_req

if python_version >= (3, 11):
install_requires = list_req + [
"numpy<1.25.0",
"hvplot~=0.7.3", # Older compatible version
"holoviews~=1.14.9", # Older compatible version
]

# 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.25.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
]
Expand All @@ -47,6 +52,8 @@
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
]
Expand Down

0 comments on commit 50a1bdc

Please sign in to comment.