Skip to content

Commit b861b3a

Browse files
authored
MNT/CI drop python 3.5 (#683)
1 parent 1aea608 commit b861b3a

File tree

8 files changed

+57
-73
lines changed

8 files changed

+57
-73
lines changed

.travis.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,13 @@ env:
2828

2929
matrix:
3030
include:
31-
# This environment tests the using anaconda
32-
# Ubuntu 14.04 environment
33-
- env: DISTRIB="ubuntu" TEST_DOC="true" TEST_NUMPYDOC="false"
34-
# Latest release
35-
- env: DISTRIB="conda" PYTHON_VERSION="3.7"
31+
- env: PYTHON_VERSION="3.7"
3632
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="master"
3733
OPTIONAL_DEPS="keras" TEST_DOC="true" TEST_NUMPYDOC="false"
38-
- env: DISTRIB="conda" PYTHON_VERSION="3.7"
34+
- env: PYTHON_VERSION="3.7"
3935
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="master"
4036
OPTIONAL_DEPS="tensorflow" TEST_DOC="true" TEST_NUMPYDOC="false"
41-
- env: DISTRIB="conda" PYTHON_VERSION="3.7"
37+
- env: PYTHON_VERSION="3.7"
4238
NUMPY_VERSION="*" SCIPY_VERSION="*" SKLEARN_VERSION="master"
4339
OPTIONAL_DEPS="false" TEST_DOC="false" TEST_NUMPYDOC="true"
4440

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ Dependencies
5252
imbalanced-learn is tested to work under Python 3.6+.
5353
The dependency requirements are based on the last scikit-learn release:
5454

55-
* scipy(>=0.17)
56-
* numpy(>=1.11)
55+
* scipy(>=0.19.1)
56+
* numpy(>=1.13.3)
5757
* scikit-learn(>=0.22)
5858
* joblib(>=0.11)
5959
* keras 2 (optional)

azure-pipelines.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
- job: linting
44
displayName: Linting
55
pool:
6-
vmImage: ubuntu-16.04
6+
vmImage: ubuntu-18.04
77
steps:
88
- bash: echo "##vso[task.prependpath]$CONDA/bin"
99
displayName: Add conda to PATH
@@ -19,15 +19,15 @@ jobs:
1919
- template: build_tools/azure/posix.yml
2020
parameters:
2121
name: Linux
22-
vmImage: ubuntu-16.04
22+
vmImage: ubuntu-18.04
2323
dependsOn: [linting]
2424
matrix:
2525
# Linux environment to test that scikit-learn can be built against
26-
# versions of numpy, scipy with ATLAS that comes with Ubuntu Xenial 16.04
27-
# i.e. numpy 1.11 and scipy 0.17
28-
py35_ubuntu_atlas:
26+
# versions of numpy, scipy with ATLAS that comes with Ubuntu Bionic 18.04
27+
# i.e. numpy 1.13.3 and scipy 0.19
28+
py36_ubuntu_atlas:
2929
DISTRIB: 'ubuntu'
30-
PYTHON_VERSION: '3.5'
30+
PYTHON_VERSION: '3.6'
3131
JOBLIB_VERSION: '*'
3232
# Linux environment to test the latest available dependencies and MKL.
3333
pylatest_pip_openblas_pandas:
@@ -60,12 +60,12 @@ jobs:
6060
- template: build_tools/azure/posix-32.yml
6161
parameters:
6262
name: Linux32
63-
vmImage: ubuntu-16.04
63+
vmImage: ubuntu-18.04
6464
dependsOn: [linting]
6565
matrix:
66-
py35_ubuntu_atlas_32bit:
66+
py36_ubuntu_atlas_32bit:
6767
DISTRIB: 'ubuntu-32'
68-
PYTHON_VERSION: '3.5'
68+
PYTHON_VERSION: '3.6'
6969
JOBLIB_VERSION: '*'
7070
TEST_DOCSTRINGS: 'true'
7171

@@ -100,6 +100,6 @@ jobs:
100100
PYTEST_VERSION: '*'
101101
COVERAGE: 'true'
102102
CHECK_WARNINGS: 'true'
103-
py35_pip_openblas_32bit:
104-
PYTHON_VERSION: '3.5'
103+
py36_pip_openblas_32bit:
104+
PYTHON_VERSION: '3.6'
105105
PYTHON_ARCH: '32'

build_tools/azure/install.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
set -e
4+
set -x
45

56
UNAMESTR=`uname`
67

@@ -70,14 +71,14 @@ if [[ "$DISTRIB" == "conda" ]]; then
7071
elif [[ "$DISTRIB" == "ubuntu" ]]; then
7172
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
7273
sudo apt-get update
73-
sudo apt-get install python3-scipy libatlas3-base libatlas-base-dev libatlas-dev python3-virtualenv git
74+
sudo apt-get install python3-scipy libatlas3-base libatlas-base-dev python3-virtualenv git
7475
python3 -m virtualenv --system-site-packages --python=python3 $VIRTUALENV
7576
source $VIRTUALENV/bin/activate
7677
python -m pip install pytest==$PYTEST_VERSION pytest-cov joblib cython
7778
python -m pip install git+https://github.com/scikit-learn/scikit-learn.git
7879
elif [[ "$DISTRIB" == "ubuntu-32" ]]; then
7980
apt-get update
80-
apt-get install -y python3-dev python3-scipy libatlas3-base libatlas-base-dev libatlas-dev python3-virtualenv git
81+
apt-get install -y python3-dev python3-scipy libatlas3-base libatlas-base-dev python3-virtualenv git
8182
python3 -m virtualenv --system-site-packages --python=python3 $VIRTUALENV
8283
source $VIRTUALENV/bin/activate
8384
python -m pip install pytest==$PYTEST_VERSION pytest-cov joblib cython

build_tools/azure/posix-32.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
-e OMP_NUM_THREADS=$OMP_NUM_THREADS
4141
-e OPENBLAS_NUM_THREADS=$OPENBLAS_NUM_THREADS
4242
-e SKLEARN_SKIP_NETWORK_TESTS=$SKLEARN_SKIP_NETWORK_TESTS
43-
i386/ubuntu:16.04
43+
i386/ubuntu:18.04
4444
sleep 1000000
4545
displayName: 'Start container'
4646
- script: >

build_tools/travis/install.sh

+31-45
Original file line numberDiff line numberDiff line change
@@ -17,57 +17,43 @@ export CXX=/usr/lib/ccache/g++
1717
# ~60M is used by .ccache when compiling from scratch at the time of writing
1818
ccache --max-size 100M --show-stats
1919

20-
if [[ "$DISTRIB" == "conda" ]]; then
21-
# Deactivate the travis-provided virtual environment and setup a
22-
# conda-based environment instead
23-
deactivate
20+
# Deactivate the travis-provided virtual environment and setup a
21+
# conda-based environment instead
22+
deactivate
2423

25-
# Install miniconda
26-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
27-
-O miniconda.sh
28-
MINICONDA_PATH=/home/travis/miniconda
29-
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
30-
export PATH=$MINICONDA_PATH/bin:$PATH
24+
# Install miniconda
25+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
26+
-O miniconda.sh
27+
MINICONDA_PATH=/home/travis/miniconda
28+
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
29+
export PATH=$MINICONDA_PATH/bin:$PATH
3130

32-
# Configure the conda environment and put it in the path using the
33-
# provided versions
34-
conda create -n testenv --yes python=$PYTHON_VERSION pip
35-
source activate testenv
36-
conda install --yes numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION
31+
# Configure the conda environment and put it in the path using the
32+
# provided versions
33+
conda create -n testenv --yes python=$PYTHON_VERSION pip
34+
source activate testenv
3735

38-
if [[ "$OPTIONAL_DEPS" == "keras" ]]; then
39-
conda install --yes pandas keras tensorflow=1
40-
KERAS_BACKEND=tensorflow
41-
python -c "import keras.backend"
42-
sed -i -e 's/"backend":[[:space:]]*"[^"]*/"backend":\ "'$KERAS_BACKEND'/g' ~/.keras/keras.json;
43-
elif [[ "$OPTIONAL_DEPS" == "tensorflow" ]]; then
44-
conda install --yes pandas tensorflow
45-
fi
36+
pip install --upgrade pip setuptools
37+
echo "Installing numpy and scipy master wheels"
38+
dev_url=https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com
39+
pip install --pre --upgrade --timeout=60 -f $dev_url numpy scipy pandas cython
40+
echo "Installing joblib master"
41+
pip install https://github.com/joblib/joblib/archive/master.zip
4642

47-
if [[ "$SKLEARN_VERSION" == "master" ]]; then
48-
pip install --pre -f https://sklearn-nightly.scdn8.secure.raxcdn.com scikit-learn
49-
else
50-
conda install --yes scikit-learn=$SKLEARN_VERSION
51-
fi
52-
53-
conda install --yes pytest pytest-cov
54-
pip install codecov
55-
pip install -U git+https://github.com/numpy/numpydoc.git
56-
57-
elif [[ "$DISTRIB" == "ubuntu" ]]; then
58-
# At the time of writing numpy 1.9.1 is included in the travis
59-
# virtualenv but we want to use the numpy installed through apt-get
60-
# install.
61-
deactivate
62-
# Create a new virtualenv using system site packages for python, numpy
63-
virtualenv --system-site-packages --python=python3 testvenv
64-
source testvenv/bin/activate
43+
if [[ "$OPTIONAL_DEPS" == "keras" ]]; then
44+
conda install --yes keras tensorflow=1
45+
KERAS_BACKEND=tensorflow
46+
python -c "import keras.backend"
47+
sed -i -e 's/"backend":[[:space:]]*"[^"]*/"backend":\ "'$KERAS_BACKEND'/g' ~/.keras/keras.json;
48+
elif [[ "$OPTIONAL_DEPS" == "tensorflow" ]]; then
49+
conda install --yes tensorflow
50+
fi
6551

66-
pip install --pre -f https://sklearn-nightly.scdn8.secure.raxcdn.com scikit-learn
67-
pip3 install pandas
68-
pip3 install pytest pytest-cov codecov sphinx numpydoc
52+
pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn
6953

70-
fi
54+
conda install --yes pytest pytest-cov
55+
pip install codecov
56+
pip install -U git+https://github.com/numpy/numpydoc.git
7157

7258
python --version
7359
python -c "import numpy; print('numpy %s' % numpy.__version__)"

doc/install.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ Prerequisites
77

88
The imbalanced-learn package requires the following dependencies:
99

10-
* numpy (>=1.11)
11-
* scipy (>=0.17)
10+
* python (>=3.6)
11+
* numpy (>=1.13.3)
12+
* scipy (>=0.19.1)
1213
* scikit-learn (>=0.22)
1314
* keras 2 (optional)
1415
* tensorflow (optional)
1516

1617
Install
1718
=======
1819

19-
imbalanced-learn is currently available on the PyPi's reporitories and you can
20+
imbalanced-learn is currently available on the PyPi's repositories and you can
2021
install it via `pip`::
2122

2223
pip install -U imbalanced-learn

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
'Programming Language :: Python :: 3.7',
3737
'Programming Language :: Python :: 3.8']
3838
INSTALL_REQUIRES = [
39-
'numpy>=1.11',
40-
'scipy>=0.17',
39+
'numpy>=1.13.3',
40+
'scipy>=0.19.1',
4141
'scikit-learn>=0.22',
4242
'joblib>=0.11'
4343
]

0 commit comments

Comments
 (0)