From 1d0aaef6bcc162d26be7cb575aec9290d5ce6a14 Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sat, 9 Jul 2022 11:12:17 +0200 Subject: [PATCH 1/5] Fix travis URL --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index aef1066..03cb945 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -# http://travis-ci.org/#!/jupyter-contrib/jupyter_nbextensions_configurator +# http://travis-ci.com/#!/jupyter-contrib/jupyter_nbextensions_configurator language: python sudo: false addons: From b865932aec462ad662994db677b2c07861746475 Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sat, 9 Jul 2022 11:22:48 +0200 Subject: [PATCH 2/5] Fix Python versions in AppVeyor --- appveyor.yml | 45 +++++++++++++++------------------------------ 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 457847e..ab88572 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,36 +8,21 @@ cache: - '%LOCALAPPDATA%\pip\Cache' environment: matrix: - - TOXENV: 'py27-notebook' - TOXPYTHON: C:\Python27\python.exe - PYTHON_HOME: C:\Python27 - PYTHON_VERSION: '2.7' - PYTHON_ARCH: '32' - - TOXENV: 'py33-notebook' - TOXPYTHON: C:\Python33\python.exe - PYTHON_HOME: C:\Python33 - PYTHON_VERSION: '3.3' - PYTHON_ARCH: '32' - - TOXENV: 'py34-notebook40' - TOXPYTHON: C:\Python34\python.exe - PYTHON_HOME: C:\Python34 - PYTHON_VERSION: '3.4' - PYTHON_ARCH: '32' - - TOXENV: 'py34-notebook41' - TOXPYTHON: C:\Python34\python.exe - PYTHON_HOME: C:\Python34 - PYTHON_VERSION: '3.4' - PYTHON_ARCH: '32' - - TOXENV: 'py34-notebook4x' - TOXPYTHON: C:\Python34\python.exe - PYTHON_HOME: C:\Python34 - PYTHON_VERSION: '3.4' - PYTHON_ARCH: '32' - - TOXENV: 'py35-notebook' - TOXPYTHON: C:\Python35\python.exe - PYTHON_HOME: C:\Python35 - PYTHON_VERSION: '3.5' - PYTHON_ARCH: '32' + - TOXENV: 'py36-notebook57' + TOXPYTHON: C:\Python36-x64\python.exe + PYTHON_HOME: C:\Python36-x64 + PYTHON_VERSION: '3.6' + PYTHON_ARCH: '64' + - TOXENV: 'py36-notebook64' + TOXPYTHON: C:\Python36-x64\python.exe + PYTHON_HOME: C:\Python36-x64 + PYTHON_VERSION: '3.6' + PYTHON_ARCH: '64' + - TOXENV: 'py36-notebook' + TOXPYTHON: C:\Python36-x64\python.exe + PYTHON_HOME: C:\Python36-x64 + PYTHON_VERSION: '3.6' + PYTHON_ARCH: '64' init: - ps: echo $env:TOXENV - ps: ls C:\Python* From 50cc5705ba8aef80d5556fee3d47870bd12508e5 Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sat, 9 Jul 2022 11:25:30 +0200 Subject: [PATCH 3/5] Version dependency --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 998658a..14293b8 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ deps = notebookmaster: https://github.com/jupyter/notebook/archive/master.zip notebook: notebook requests - selenium>=4.3 + selenium commands = {posargs:coverage run --parallel-mode --source=src -m nose -vv -a '!uses_jupyterhub' tests} From fdffb8a87dd9e0acf76fd3ba22af33cbf4ed9791 Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sat, 9 Jul 2022 11:35:31 +0200 Subject: [PATCH 4/5] Fix Selenium failing with Firefox --- tests/nbextensions_test_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/nbextensions_test_base.py b/tests/nbextensions_test_base.py index 64da235..a0b0725 100644 --- a/tests/nbextensions_test_base.py +++ b/tests/nbextensions_test_base.py @@ -39,6 +39,7 @@ from selenium.webdriver.remote import remote_connection from selenium.webdriver.support import expected_conditions as ec from selenium.webdriver.support.ui import WebDriverWait + from selenium.webdriver.common.desired_capabilities import DesiredCapabilities # don't show selenium debug logs remote_connection.LOGGER.setLevel(logging.INFO) @@ -227,6 +228,7 @@ def init_webdriver(cls): # 'platform': 'Mac OS X 10.9', 'platform': 'Linux', 'browserName': 'firefox', + 'marionette': False, 'version': 'latest', 'tags': [os.environ['TOXENV'], 'CI'], 'name': cls.__name__ @@ -244,7 +246,9 @@ def init_webdriver(cls): desired_capabilities=capabilities, command_executor=hub_url) else: cls.log.info('Using local webdriver.') - cls.driver = webdriver.Firefox() + cap = DesiredCapabilities().FIREFOX + cap["marionette"] = False + cls.driver = webdriver.Firefox(capabilities=cap) return cls.driver def run(self, results): From 280ca29d8584dc029c9c467fec424aa33bd02561 Mon Sep 17 00:00:00 2001 From: Juergen Hasch Date: Sat, 9 Jul 2022 11:51:17 +0200 Subject: [PATCH 5/5] Remove Python 3.7 for now --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 03cb945..88d638e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,15 +15,12 @@ matrix: env: TOXENV=lint # check that conda build/install works - os: linux - python: '3.7' + python: '3.6' env: TOXENV=condarecipe # linux, various python and notebook versions - os: linux python: '3.6' env: TOXENV=py36-notebook - - os: linux - python: '3.7' - env: TOXENV=py37-notebook - os: linux python: 'pypy' env: TOXENV=pypy-notebook