Skip to content

Commit

Permalink
requirements: Remove catboost from required dependencies
Browse files Browse the repository at this point in the history
Catch all exceptions at import attempt.
  • Loading branch information
ales-erjavec committed Jan 27, 2025
1 parent c76c669 commit 88f99c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Orange/classification/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pull members from modules to Orange.classification namespace
# pylint: disable=wildcard-import
# pylint: disable=wildcard-import,broad-except

from .base_classification import (ModelClassification as Model,
LearnerClassification as Learner,
Expand All @@ -23,7 +23,7 @@
from .scoringsheet import *
try:
from .catgb import *
except ModuleNotFoundError:
except Exception:
pass
from .gb import *
try:
Expand Down
2 changes: 1 addition & 1 deletion Orange/regression/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from ..classification.simple_tree import *
try:
from .catgb import *
except ModuleNotFoundError:
except Exception:
pass
from .gb import *
try:
Expand Down
5 changes: 2 additions & 3 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ requirements:
- python
- pip
- cython
- numpy
- numpy >= 2
- recommonmark
- setuptools
- sphinx >=4.2.0,<8
Expand All @@ -43,14 +43,13 @@ requirements:
# core requirements
- baycomp >=1.0.2
- bottleneck >=1.3.4
- catboost >=1.0.1
- chardet >=3.0.2
- httpx >=0.21
- joblib >=1.2.0
- keyring
- keyrings.alt
- networkx
- numpy >=1.20.0,<2
- numpy >=1.20.0
- openpyxl >=3.1.3
- openTSNE >=0.6.1,!=0.7.0
- pandas >=1.4.0,!=1.5.0,!=2.0.0
Expand Down
1 change: 0 additions & 1 deletion requirements-core.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
baycomp>=1.0.2
bottleneck>=1.3.4
catboost>=1.0.1
# Encoding detection
chardet>=3.0.2
httpx>=0.21.0
Expand Down

0 comments on commit 88f99c7

Please sign in to comment.