Skip to content

Commit 57ff737

Browse files
authored
Merge pull request #19 from martinRenou/enable_travis
Add travis config file
2 parents 5e147ba + 60f83c7 commit 57ff737

File tree

5 files changed

+31
-8
lines changed

5 files changed

+31
-8
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: generic
2+
os:
3+
- linux
4+
- osx
5+
env:
6+
matrix:
7+
- PYTHON_VERSION=3.5
8+
- PYTHON_VERSION=3.6
9+
- PYTHON_VERSION=3.7
10+
before_install:
11+
- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo apt-get update; fi
12+
- if [[ $TRAVIS_OS_NAME == linux ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; fi
13+
- if [[ $TRAVIS_OS_NAME == osx ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
14+
- bash miniconda.sh -b -p $HOME/miniconda
15+
- export PATH="$HOME/miniconda/bin:$PATH"
16+
- hash -r
17+
- conda config --set always_yes yes --set changeps1 no
18+
- conda update -q conda
19+
- conda info -a
20+
- conda create -q -n test-environment python=$PYTHON_VERSION ipywidgets nodejs
21+
- source activate test-environment
22+
- conda install -c conda-forge flake8
23+
- if [[ $TRAVIS_OS_NAME == linux ]]; then conda install -c conda-forge jupyterlab; fi
24+
install:
25+
- pip install -e .
26+
- if [[ $TRAVIS_OS_NAME == linux && $PYTHON_VERSION != 2.7 ]]; then jupyter labextension install .; fi
27+
script:
28+
- flake8 ipycanvas --ignore=E501

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
[![Documentation](http://readthedocs.org/projects/ipycanvas/badge/?version=latest)](https://ipycanvas.readthedocs.io/en/latest/?badge=latest)
55
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/martinRenou/ipycanvas/stable?filepath=examples)
6+
[![Build Status](https://travis-ci.org/martinRenou/ipycanvas.svg?branch=master)](https://travis-ci.org/martinRenou/ipycanvas)
67

78

89
Interactive widgets library exposing the [browser's Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) to Python. There are some API differences though:

ipycanvas/binary.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
"""Binary module."""
2-
3-
try:
4-
from io import BytesIO as StringIO # python3
5-
except:
6-
from StringIO import StringIO # python2
7-
82
import numpy as np
93

104

ipycanvas/nbextension/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright (c) Martin Renou
55
# Distributed under the terms of the Modified BSD License.
66

7+
78
def _jupyter_nbextension_paths():
89
return [{
910
'section': 'notebook',

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
name = 'ipycanvas'
2323

2424
# Ensure a valid python version
25-
ensure_python('>=3.4')
25+
ensure_python('>=3.5')
2626

2727
# Get our version
2828
version = get_version(pjoin(name, '_version.py'))
@@ -78,7 +78,6 @@
7878
'License :: OSI Approved :: BSD License',
7979
'Programming Language :: Python',
8080
'Programming Language :: Python :: 3',
81-
'Programming Language :: Python :: 3.4',
8281
'Programming Language :: Python :: 3.5',
8382
'Programming Language :: Python :: 3.6',
8483
'Programming Language :: Python :: 3.7',

0 commit comments

Comments
 (0)