Skip to content

Commit e419ad4

Browse files
authored
Merge pull request #45 from ngoix/fix_travis
try and fix CI
2 parents d9a777f + 5714a93 commit e419ad4

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ env:
2020
# This environment tests the newest supported Anaconda release (4.4.0)
2121
# It also runs tests requiring Pandas.
2222
- DISTRIB="conda" PYTHON_VERSION="3.6.1" INSTALL_MKL="true"
23-
NUMPY_VERSION="1.13" SCIPY_VERSION="0.19.0" PANDAS_VERSION="0.20.2"
23+
NUMPY_VERSION="1.13.3" SCIPY_VERSION="0.19.1" PANDAS_VERSION="0.20.2"
2424
CYTHON_VERSION="0.25.2" COVERAGE=true
2525

2626
# This environment use pytest to run the tests. It uses the newest
2727
# supported Anaconda release (4.4.0). It also runs tests requiring Pandas.
2828
- USE_PYTEST="true" DISTRIB="conda" PYTHON_VERSION="3.6.1"
29-
INSTALL_MKL="true" NUMPY_VERSION="1.12.1" SCIPY_VERSION="0.19.0"
30-
PANDAS_VERSION="0.20.1" CYTHON_VERSION="0.25.2"
29+
INSTALL_MKL="true" NUMPY_VERSION="1.13.3" SCIPY_VERSION="0.19.1"
30+
PANDAS_VERSION="0.20.2" CYTHON_VERSION="0.25.2"
3131
TEST_DOCSTRINGS="true"
3232

3333
# flake8 linting on diff wrt common ancestor with upstream/master
34-
- RUN_FLAKE8="true" SKIP_TESTS="true"
35-
DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_MKL="true"
36-
NUMPY_VERSION="1.13" SCIPY_VERSION="0.19.0" CYTHON_VERSION="0.23.5"
34+
- RUN_FLAKE8="true" SKIP_TESTS="true" PANDAS_VERSION="0.20.2"
35+
DISTRIB="conda" PYTHON_VERSION="3.6.1" INSTALL_MKL="true"
36+
NUMPY_VERSION="1.13" SCIPY_VERSION="0.19.1" CYTHON_VERSION="0.25.2"
3737

3838

3939
install: source ci_scripts/travis/install.sh

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ scipy>=0.17.0
44
pandas>=0.18.1
55
numpydoc
66
sphinx_gallery
7-
xlrd >= 0.9.0
7+
xlrd >= 0.9.0

skrules/skope_rules.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from sklearn.utils.multiclass import check_classification_targets
1010
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
1111
from sklearn.ensemble import BaggingClassifier, BaggingRegressor
12-
from sklearn.externals import six
1312
from sklearn.tree import _tree
1413

1514
from .rule import Rule, replace_feature_name
@@ -221,7 +220,7 @@ def fit(self, X, y, sample_weight=None):
221220
# ensure that max_samples is in [1, n_samples]:
222221
n_samples = X.shape[0]
223222

224-
if isinstance(self.max_samples, six.string_types):
223+
if isinstance(self.max_samples, str):
225224
raise ValueError('max_samples (%s) is not supported.'
226225
'Valid choices are: "auto", int or'
227226
'float' % self.max_samples)

0 commit comments

Comments
 (0)