Skip to content

Add newer python excursions on appveyor #5048

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 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
71cd775
add newer python appveyor excursions
bollwyvl Nov 12, 2019
fc49f1b
actually use other python versions in appveyor
bollwyvl Nov 12, 2019
c079df9
break up deps into variables
bollwyvl Nov 12, 2019
5664124
more work on appveyor vs conda vs python 3.8
bollwyvl Nov 13, 2019
36b765e
accept mix of defaults and conda-forge, restore nodejs
bollwyvl Nov 13, 2019
d6170c0
restore fast finish
bollwyvl Nov 13, 2019
d722a3f
try creating/activating new env
bollwyvl Nov 13, 2019
3a4122a
activate the env each time
bollwyvl Nov 13, 2019
b8e3a74
try tmp directory to force module discovery, change ignore technique
bollwyvl Nov 13, 2019
de69da1
try with selenium, firefox
bollwyvl Nov 13, 2019
cfb8805
pin firefox to esr, fix nose invocation
bollwyvl Nov 13, 2019
13592e1
nose now need --traverse-namespace perhaps
bollwyvl Nov 13, 2019
2b0d40c
remove ff/gecko, skip selenium with NOSE_EXCLUDE, add nose-cov
bollwyvl Nov 13, 2019
0598d94
Merge remote-tracking branch 'minrk/py38-tornado' into add-more-windo…
bollwyvl Nov 13, 2019
5a8958a
upgrade conda, just to be sure
bollwyvl Nov 13, 2019
0e8c35b
remove selenium env vars
bollwyvl Nov 13, 2019
fd5481f
restore always_yes
bollwyvl Nov 13, 2019
462f443
more verbose activation
bollwyvl Nov 14, 2019
39abe36
Merge remote-tracking branch 'minrk/py38-tornado' into add-more-windo…
bollwyvl Nov 14, 2019
d271d84
use pip versions of jupyter_core and jupyter_client while working on PRs
bollwyvl Nov 14, 2019
090c2ac
Merge remote-tracking branch 'upstream/master' into add-more-windows-ci
bollwyvl Jan 9, 2020
81a49b6
update conda specs with bottom pins, try breaking up test lines
bollwyvl Jan 9, 2020
6419ecb
always be activating
bollwyvl Jan 9, 2020
2efb0e9
try alternate string encoding
bollwyvl Jan 9, 2020
3f64742
try alternate line ending
bollwyvl Jan 9, 2020
08d9e3d
give up on multiline appveyor
bollwyvl Jan 9, 2020
76ace3e
try quoting
bollwyvl Jan 9, 2020
a39a0dc
list out files for debugging
bollwyvl Jan 9, 2020
dafc213
add bower cache
bollwyvl Jan 9, 2020
83e1641
sdist/wheel are in dist, not build
bollwyvl Jan 9, 2020
d543421
use for loop to install wheel
bollwyvl Jan 9, 2020
1cd1cc5
single percent (not a bat file?)
bollwyvl Jan 9, 2020
41981e8
back to double percent, remove parens and pipes
bollwyvl Jan 9, 2020
0ae12d0
back to single
bollwyvl Jan 9, 2020
13f7628
use pip --find-links
bollwyvl Jan 9, 2020
2d95776
force install from dist folder (in dist folder)
bollwyvl Jan 9, 2020
cce930a
force no index for installing wheel
bollwyvl Jan 9, 2020
cbe5d9f
dedent the asyncio patch in launchnotebook
bollwyvl Jan 9, 2020
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
49 changes: 35 additions & 14 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,49 @@
# miniconda bootstrap from conda-forge recipe
matrix:
fast_finish: true

cache:
- '%LOCALAPPDATA%\bower\cache\packages -> bower.json'

environment:
CONDA_ACTIVATE: "call C:\\Miniconda36-x64\\Scripts\\activate.bat"
CONDA_BUILD_DEPS: >-
"babel"
"nodejs >=6.0"
"pip"
CONDA_RUN_DEPS: >-
"ipykernel"
"ipython_genutils"
"jinja2"
"jupyter_client >=5.3.4"
"jupyter_core >=4.6.0"
"nbconvert"
"nbformat"
"prometheus_client"
"pyzmq"
"send2trash"
"terminado >=0.8.1"
"tornado"
"traitlets >=4.2.1"
CONDA_TEST_DEPS: >
"nose"
"nose-cov"
"requests"
NOSE_EXCLUDE: selenium
matrix:
- CONDA_PY: 36
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
- CONDA_PY: ">=3.8,<3.9.0a0"
- CONDA_PY: ">=3.7,<3.8.0a0"
- CONDA_PY: ">=3.6,<3.7.0a0"

platform:
- x64

build: off

install:
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda config --set show_channel_urls true
- cmd: conda config --add channels conda-forge
#- cmd: conda update --yes --quiet conda
- cmd: conda install -y pyzmq tornado jupyter_client nbformat ipykernel pip nodejs nose
# not using `conda install -y` on nbconvent package because there is
# currently a bug with the version that the anaconda installs, so we will just install it with pip
- cmd: pip install nbconvert
- cmd: python setup.py build
- cmd: pip install .[test]
- cmd: '%CONDA_ACTIVATE% && conda upgrade -y -c conda-forge conda'
- cmd: '%CONDA_ACTIVATE% && conda create -y -n notebook-test -c conda-forge -c defaults "python %CONDA_PY%" %CONDA_BUILD_DEPS% %CONDA_RUN_DEPS% %CONDA_TEST_DEPS% || exit 1'
- cmd: '%CONDA_ACTIVATE% notebook-test && npm install && python setup.py sdist bdist_wheel || exit 1'
- cmd: '%CONDA_ACTIVATE% notebook-test && cd dist && python -m pip install --no-deps --no-index --ignore-installed --find-links=. notebook'

test_script:
- nosetests -v notebook --exclude-dir notebook\tests\selenium
- '%CONDA_ACTIVATE% notebook-test && md tst_tmp && cd tst_tmp && nosetests -vv --with-cov --traverse-namespace --cov notebook notebook || exit 1'
6 changes: 3 additions & 3 deletions notebook/tests/launchnotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def start_thread():
token=cls.token,
)
if 'asyncio' in sys.modules:
app._init_asyncio_patch()
import asyncio
asyncio.set_event_loop(asyncio.new_event_loop())
app._init_asyncio_patch()
import asyncio
asyncio.set_event_loop(asyncio.new_event_loop())
# don't register signal handler during tests
app.init_signal = lambda : None
# clear log handlers and propagate to root for nose to capture it
Expand Down