8000 [wip] - ipyplotly fixes by chriddyp · Pull Request #956 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

[wip] - ipyplotly fixes #956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
attempt #1 to get tests running in circle
we’ll end up adding a lot of this stuff back at the end. for now, let’s
just only test python 35
  • Loading branch information
chriddyp committed Mar 5, 2018
commit 64098d2fe0d16a971cf7273b90cf6de014b0c45c
12 changes: 11 additions & 1 deletion circle.yml
8000
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,26 @@ dependencies:

override:

# Temporary workaround
- mv plotly/graph_objs/graph_objs.py plotly/graph_objs/graph_objs_temp.py
- touch plotly/graph_objs/graph_objs.py
- mv plotly/graph_objs/graph_objs_temp.py plotly/graph_objs/graph_objs.py

# install everything tox knows about and the plotly package.
- pip install -e .
- pip install tox
- tox --notest
- python setup.py codegen
- pip install -I .
- jupyter nbextension enable --py widgetsnbextension
- jupyter nbextension install --py --symlink --sys-prefix plotlywidget
- jupyter nbextension enable --py --sys-prefix plotlywidget

# we need to cd out of the project root to ensure the install worked
- cd ~ && python -c "import plotly"

# install jupyter test JS requirements
- cd ${PLOTLY_JUPYTER_TEST_DIR} && npm i
# - cd ${PLOTLY_JUPYTER_TEST_DIR} && npm i

cache_directories:

Expand Down
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy
pandas
ipywidgets
68 changes: 36 additions & 32 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ deps=
requests==2.12.4
six==1.10.0
pytz==2016.10
numpy
pandas
ipywidgets
yapf
optional: numpy==1.11.3
optional: ipython[all]==5.1.0
optional: jupyter==1.0.0
Expand All @@ -67,23 +71,23 @@ deps=
optional: pyshp==1.2.10

; CORE ENVIRONMENTS
[testenv:py27-core]
basepython={env:PLOTLY_TOX_PYTHON_27:}
commands=
python --version
nosetests {posargs} -x plotly/tests/test_core

[testenv:py33-core]
basepython={env:PLOTLY_TOX_PYTHON_33:}
commands=
python --version
nosetests {posargs} -x plotly/tests/test_core

[testenv:py34-core]
basepython={env:PLOTLY_TOX_PYTHON_34:}
commands=
python --version
nosetests {posargs} -x plotly/tests/test_core
; [testenv:py27-core]
; basepython={env:PLOTLY_TOX_PYTHON_27:}
; commands=
; python --version
; nosetests {posargs} -x plotly/tests/test_core
;
; [testenv:py33-core]
; basepython={env:PLOTLY_TOX_PYTHON_33:}
; commands=
; python --version
; nosetests {posargs} -x plotly/tests/test_core
;
; [testenv:py34-core]
; basepython={env:PLOTLY_TOX_PYTHON_34:}
; commands=
; python --version
; nosetests {posargs} -x plotly/tests/test_core

[testenv:py35-core]
basepython={env:PLOTLY_TOX_PYTHON_35:}
Expand All @@ -92,21 +96,21 @@ commands=
nosetests {posargs} -x plotly/tests/test_core

; OPTIONAL ENVIRONMENTS
[testenv:py27-optional]
basepython={env:PLOTLY_TOX_PYTHON_27:}
commands=
python --version
; Do some coverage reporting. No need to do this for all environments.
mkdir -p {envbindir}/../../coverage-reports/{envname}
coverage erase
coverage run --include="*/plotly/*" --omit="*/tests*" {envbindir}/nosetests {posargs} -x plotly/tests
coverage html -d "{envbindir}/../../coverage-reports/{envname}" --title={envname}

[testenv:py34-optional]
basepython={env:PLOTLY_TOX_PYTHON_34:}
commands=
python --version
nosetests {posargs} -x plotly/tests
; [testenv:py27-optional]
; basepython={env:PLOTLY_TOX_PYTHON_27:}
; commands=
; python --version
; ; Do some coverage reporting. No need to do this for all environments.
; mkdir -p {envbindir}/../../coverage-reports/{envname}
; coverage erase
; coverage run --include="*/plotly/*" --omit="*/tests*" {envbindir}/nosetests {posargs} -x plotly/tests
; coverage html -d "{envbindir}/../../coverage-reports/{envname}" --title={envname}
;
; [testenv:py34-optional]
; basepython={env:PLOTLY_TOX_PYTHON_34:}
; commands=
; python --version
; nosetests {posargs} -x plotly/tests

[testenv:py35-optional]
basepython={env:PLOTLY_TOX_PYTHON_35:}
Expand Down
0