Skip to content

Commit

Permalink
BUG Enforce Cython==0.29.33
Browse files Browse the repository at this point in the history
Temporary fix to #8

Compiling wiht Cython 3.0.2 causes errors.
  • Loading branch information
pedroilidio committed Sep 18, 2023
1 parent 3999341 commit e3b7032
Show file tree
Hide file tree
Showing 6 changed files with 443 additions and 516 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ env/
ENV/
env.bak/
venv.bak/
env*

# Spyder project settings
.spyderproject
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [
"setuptools",
"wheel",
"numpy>=1.22.0",
"cython>=0.29.33",
"cython==0.29.33",
"scikit-learn==1.3.0"
]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython>=0.29.33
cython==0.29.33
scikit-learn==1.3.0
numpy>=1.22
imbalanced-learn==0.9.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
zip_safe=False,

install_requires=[
'cython>=0.29.33',
'cython==0.29.33',
'scikit-learn==1.3.0',
'numpy>=1.22.2',
'imbalanced-learn==0.9.1',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def classification_data(n_samples, n_features, random_state):
random_state=random_state,
noise=0.0,
centers=10,
row_kwargs={'center_box': [.3, .7], 'cluster_std': .1},
col_kwargs={'center_box': [.3, .7], 'cluster_std': .1},
row_kwargs={'center_box': (.3, .7), 'cluster_std': .1},
col_kwargs={'center_box': (.3, .7), 'cluster_std': .1},
)
return X, Y, x, y

Expand Down

0 comments on commit e3b7032

Please sign in to comment.