Skip to content

Commit d69708b

Browse files
committed
Update setup.py and tox.ini; add travis.yml
1 parent 128daa6 commit d69708b

3 files changed

Lines changed: 38 additions & 3 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
packages=setuptools.find_packages(),
1313
package_data={'': ['*.txt', '*.md']},
1414
install_requires=["liac-arff>=2.1.0",
15-
"numpy>1.6.2",
16-
"scipy>0.9",
15+
"numpy>=1.6.2",
16+
"scipy>=0.13.3",
1717
"xmltodict",
1818
"nose"],
1919
test_suite="nose.collector",

tests/.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
language: python
3+
python:
4+
- "2.7"
5+
- "3.4"
6+
7+
before_install:
8+
- sudo apt-get install -q libatlas3gf-base libatlas-dev liblapack-dev gfortran
9+
10+
install:
11+
- sudo apt-get update
12+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
13+
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
14+
else
15+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
16+
fi
17+
- bash miniconda.sh -b -p $HOME/miniconda
18+
- export PATH="$HOME/miniconda/bin:$PATH"
19+
- hash -r
20+
- conda config --set always_yes yes --set changeps1 no
21+
- conda update -q conda
22+
# Useful for debugging any issues with conda
23+
- conda info -a
24+
25+
# Replace dep1 dep2 ... with your dependencies
26+
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy==0.13.3 matplotlib setuptools nose
27+
- source activate test-environment
28+
- python setup.py install
29+
- pip install xmltodict
30+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
31+
pip install mock
32+
fi
33+
- python setup.py install
34+
35+
# command to run tests, e.g. python setup.py test
36+
script: python setup.py test

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ deps =
66
numpy > 1.6.2
77
scipy > 0.9
88
pandas > 0.13.1
9-
scikit-learn
109
xmltodict
1110
nose
1211
mock

0 commit comments

Comments
 (0)