Skip to content

Commit 0d800b1

Browse files
authored
CI update conda build files (#334)
* CI update conda build and check doc * DOC add notes for conda build
1 parent 879da06 commit 0d800b1

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

build_tools/travis/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ if [[ "$DISTRIB" == "conda" ]]; then
5151
# Install nose-timer via pip
5252
pip install nose-timer codecov
5353

54+
conda install sphinx numpydoc
55+
5456
elif [[ "$DISTRIB" == "ubuntu" ]]; then
5557
# At the time of writing numpy 1.9.1 is included in the travis
5658
# virtualenv but we want to use the numpy installed through apt-get
@@ -59,7 +61,8 @@ elif [[ "$DISTRIB" == "ubuntu" ]]; then
5961
# Create a new virtualenv using system site packages for python, numpy
6062
virtualenv --system-site-packages testvenv
6163
source testvenv/bin/activate
62-
pip install scikit-learn pandas nose nose-timer pytest pytest-cov codecov
64+
pip install scikit-learn pandas nose nose-timer pytest pytest-cov codecov \
65+
sphinx numpydoc
6366

6467
fi
6568

conda-recipe/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Automatically build and upload on conda channel
2+
3+
* Edit `meta.yml` and update the dependencies version.

conda-recipe/conda_deployement.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
for pyv in {2.7,3.5,3.6} ; do
66
mkdir build_conda
77
conda build --python=$pyv --output-folder build_conda imbalanced-learn
8-
conda convert --platform all build_conda/*.tar.bz2 \
8+
conda convert --platform all build_conda/linux-64/*.tar.bz2 \
99
-o build_conda/
1010
dirs=`ls -l "$PWD/build_conda"`
1111
for d in build_conda/*/ ; do

conda-recipe/imbalanced-learn/meta.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ requirements:
1010
build:
1111
- python
1212
- setuptools
13-
- numpy
14-
- scipy
15-
- scikit-learn
13+
- numpy 1.13.*
14+
- scipy 0.19.*
15+
- scikit-learn 0.19.*
1616
run:
1717
- python
18-
- numpy
19-
- scipy
20-
- scikit-learn
18+
- numpy 1.13.*
19+
- scipy 0.19.*
20+
- scikit-learn 0.19.*
2121

2222
test:
2323
requires:

0 commit comments

Comments
 (0)