Skip to content

Commit 1da5800

Browse files
author
Bo Peng
committed
Merge branch 'master' of https://github.com/vatlab/sos-python
2 parents 4bc7d11 + 1b382e2 commit 1da5800

File tree

3 files changed

+77
-2
lines changed

3 files changed

+77
-2
lines changed

.travis.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
dist: trusty
2+
group: edge
3+
os:
4+
- linux
5+
# travis does not support python on osx yet (https://github.com/travis-ci/travis-ci/issues/4729)
6+
language: python
7+
python:
8+
#- "3.3" test stops at installing spyder notebook etc
9+
#- "3.4" test fails for unknown reason (sh not found):w
10+
- "3.5"
11+
- "3.6"
12+
before_install:
13+
# Base SoS
14+
- sudo apt-get update
15+
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
16+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
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+
- conda info -a
23+
24+
# downgrade python if needed
25+
- conda create -n python_test python=$TRAVIS_PYTHON_VERSION anaconda
26+
- source activate python_test
27+
28+
- pip install docker rq
29+
- pip install pyyaml psutil tqdm nose
30+
- pip install fasteners pygments networkx pydot pydotplus
31+
- pip install entrypoints jupyter coverage codacy-coverage pytest pytest-cov python-coveralls
32+
- conda install pandas numpy
33+
34+
# SoS Notebook
35+
- pip install jedi notebook nbconvert nbformat pyyaml psutil tqdm scipy
36+
- pip install pygments ipython wand graphviz sos sos-bash
37+
38+
# Python 2
39+
- conda create -n ipykernel_py2 python=2 ipykernel
40+
- source activate ipykernel_py2
41+
- python -m ipykernel install --user
42+
- source deactivate ipykernel_py2
43+
- source activate python_test
44+
45+
sudo: required
46+
install: "python setup.py install"
47+
before_script:
48+
- cd test
49+
script:
50+
- 'if [ $TRAVIS_PYTHON_VERSION == "3.6" ]; then
51+
pytest -x -v;
52+
else
53+
pytest -x -v --cov sos_python --cov-report=xml;
54+
fi'
55+
56+
after_success:
57+
- 'if [ $TRAVIS_PYTHON_VERSION == "3.5" ]; then
58+
coverage combine;
59+
coveralls;
60+
fi'
61+
62+
notifications:
63+
email:
64+
recipients:
65+
- ben.bob@gmail.com
66+
on_success: never
67+
on_failure: always
68+

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
[![PyPI version](https://badge.fury.io/py/sos-python.svg)](https://badge.fury.io/py/sos-python)
2+
[![Build Status](https://travis-ci.org/vatlab/sos-python.svg?branch=master)](https://travis-ci.org/vatlab/sos-python)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/7t5g42fiklrseyrb/branch/master?svg=true)](https://ci.appveyor.com/project/BoPeng/sos-python/branch/master)
4+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0d247d947560411ba92e1b62e8dbb109)](https://www.codacy.com/app/BoPeng/sos-python?utm_source=github.com&utm_medium=referral&utm_content=vatlab/sos-python&utm_campaign=Badge_Grade)
5+
[![Coverage Status](https://coveralls.io/repos/github/vatlab/sos-python/badge.svg)](https://coveralls.io/github/vatlab/sos-python)
6+
17
# sos-python
2-
SoS extension for Python2 and Python3
8+
SoS extension for Python2 and Python3. Please refer to [SoS Homepage](http://vatlab.github.io/SoS/) for details.
9+

src/sos_python/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# version of the SoS language
3434
__sos_version__ = '1.0'
3535
# version of the sos command
36-
__version__ = '0.9.9.1'
36+
__version__ = '0.9.9.2'
3737
__py_version__ = '{}.{}.{}'.format(_py_ver.major, _py_ver.minor, _py_ver.micro)
3838

3939
#

0 commit comments

Comments
 (0)