Skip to content

Commit 88f99c7

Browse files
committed
requirements: Remove catboost from required dependencies
Catch all exceptions at import attempt.
1 parent c76c669 commit 88f99c7

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Orange/classification/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Pull members from modules to Orange.classification namespace
2-
# pylint: disable=wildcard-import
2+
# pylint: disable=wildcard-import,broad-except
33

44
from .base_classification import (ModelClassification as Model,
55
LearnerClassification as Learner,
@@ -23,7 +23,7 @@
2323
from .scoringsheet import *
2424
try:
2525
from .catgb import *
26-
except ModuleNotFoundError:
26+
except Exception:
2727
pass
2828
from .gb import *
2929
try:

Orange/regression/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ..classification.simple_tree import *
1818
try:
1919
from .catgb import *
20-
except ModuleNotFoundError:
20+
except Exception:
2121
pass
2222
from .gb import *
2323
try:

conda-recipe/meta.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ requirements:
2323
- python
2424
- pip
2525
- cython
26-
- numpy
26+
- numpy >= 2
2727
- recommonmark
2828
- setuptools
2929
- sphinx >=4.2.0,<8
@@ -43,14 +43,13 @@ requirements:
4343
# core requirements
4444
- baycomp >=1.0.2
4545
- bottleneck >=1.3.4
46-
- catboost >=1.0.1
4746
- chardet >=3.0.2
4847
- httpx >=0.21
4948
- joblib >=1.2.0
5049
- keyring
5150
- keyrings.alt
5251
- networkx
53-
- numpy >=1.20.0,<2
52+
- numpy >=1.20.0
5453
- openpyxl >=3.1.3
5554
- openTSNE >=0.6.1,!=0.7.0
5655
- pandas >=1.4.0,!=1.5.0,!=2.0.0

requirements-core.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
baycomp>=1.0.2
22
bottleneck>=1.3.4
3-
catboost>=1.0.1
43
# Encoding detection
54
chardet>=3.0.2
65
httpx>=0.21.0

0 commit comments

Comments
 (0)