Skip to content

Commit 75c2b6e

Browse files
authored
Merge pull request #1532 from demotu/master
replace template_path with template_paths
2 parents 576e21e + 8e14f4a commit 75c2b6e

File tree

14 files changed

+39
-56
lines changed

14 files changed

+39
-56
lines changed

.travis.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# http://travis-ci.org/#!/ipython-contrib/jupyter_contrib_nbextensions
1+
# http://travis-ci.org/#!/ipython-contrib/jupyter_contrib_nbextensions
22
language: python
3-
dist: trusty # required for pandoc>1.9.1
3+
dist: xenial
44
sudo: false
55
addons:
66
apt_packages:
@@ -37,18 +37,12 @@ matrix:
3737
python: '3.6'
3838
env: TOXENV=condarecipe
3939
# linux, various python and notebook versions
40-
- os: linux
41-
python: '2.7'
42-
env: TOXENV=py27-notebook
43-
- os: linux
44-
python: '3.6'
45-
env: TOXENV=py36-notebook54
4640
- os: linux
4741
python: '3.6'
4842
env: TOXENV=py36-notebook55
4943
- os: linux
5044
python: '3.6'
51-
env: TOXENV=py36-notebook44
45+
env: TOXENV=py36-notebook60
5246
- os: linux
5347
python: '3.6'
5448
env: TOXENV=py36-notebook

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Unreleased (aka. GitHub master)
2121
This is where each new PR to the project should add a summary of its changes,
2222
which makes it much easier to fill in each release's changelog :)
2323

24+
- Replace `template_path` with `template_paths` [#1532](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/1532). Nbconvert 6.0 replaced `template_path` with `template_paths` (see https://nbconvert.readthedocs.io/en/latest/changelog.html#significant-changes). This change in Nbconvert 6.0 causes errors in jupyter_latex_envs and in jupyter_contrib_nbextensions (see [#1529](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1529).
25+
- Update `install_requires` list in `setup.py` with 'nbconvert >=6.0'
26+
- Drop support for python < 3.6
27+
2428
0.5.1
2529
-----
2630

appveyor.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,23 @@ environment:
1414
PIP_ONLY_BINARY: lxml
1515
matrix:
1616

17-
- TOXENV: 'py27-notebook'
18-
TOXPYTHON: C:\Python27\python.exe
19-
PYTHON_HOME: C:\Python27
20-
PYTHON_VERSION: '2.7'
21-
PYTHON_ARCH: '32'
22-
23-
- TOXENV: 'py36-notebook44'
17+
- TOXENV: 'py36-notebook60'
2418
TOXPYTHON: C:\Python36\python.exe
2519
PYTHON_HOME: C:\Python36
2620
PYTHON_VERSION: '3.6'
27-
PYTHON_ARCH: '32'
21+
PYTHON_ARCH: '64'
2822

29-
- TOXENV: 'py36-notebook54'
23+
- TOXENV: 'py37-notebook60'
3024
TOXPYTHON: C:\Python36\python.exe
31-
PYTHON_HOME: C:\Python36
32-
PYTHON_VERSION: '3.6'
33-
PYTHON_ARCH: '32'
25+
PYTHON_HOME: C:\Python37
26+
PYTHON_VERSION: '3.7'
27+
PYTHON_ARCH: '64'
3428

35-
- TOXENV: 'py36-notebook55'
36-
TOXPYTHON: C:\Python36\python.exe
37-
PYTHON_HOME: C:\Python36
38-
PYTHON_VERSION: '3.6'
39-
PYTHON_ARCH: '32'
29+
- TOXENV: 'py38-notebook60'
30+
TOXPYTHON: C:\Python38\python.exe
31+
PYTHON_HOME: C:\Python38
32+
PYTHON_VERSION: '3.8'
33+
PYTHON_ARCH: '64'
4034

4135
init:
4236
- ps: echo $env:TOXENV

conda.recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ requirements:
2525
- jupyter_contrib_core >=0.3.3
2626
- jupyter_core
2727
- jupyter_highlight_selected_word >=0.1.1
28-
- jupyter_latex_envs >=1.3.8
28+
- jupyter_latex_envs >=1.4.0
2929
- jupyter_nbextensions_configurator >=0.4.0
3030
- nbconvert >=4.2
31-
- notebook >=4.0
31+
- notebook >=6.0
3232
- pyyaml
3333
- tornado
3434
- traitlets >=4.1

setup.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# Imports
77
# -----------------------------------------------------------------------------
88

9-
from __future__ import print_function
10-
119
import os
1210
from glob import glob
1311

@@ -42,7 +40,7 @@ def main():
4240
`the repository issues page <https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues>`_
4341
if you encounter any problems, and create a new issue if needed!
4442
""", # noqa: E501
45-
version='0.5.1',
43+
version='0.5.2',
4644
author='ipython-contrib and jupyter-contrib developers',
4745
author_email='[email protected]',
4846
url=('https://github.com/'
@@ -65,10 +63,10 @@ def main():
6563
'jupyter_contrib_core >=0.3.3',
6664
'jupyter_core',
6765
'jupyter_highlight_selected_word >=0.1.1',
68-
'jupyter_latex_envs >=1.3.8',
66+
'jupyter_latex_envs >=1.4.0',
6967
'jupyter_nbextensions_configurator >=0.4.0',
70-
'nbconvert >=4.2',
71-
'notebook >=4.0',
68+
'nbconvert >=6.0',
69+
'notebook >=6.0',
7270
'pyyaml',
7371
'tornado',
7472
'traitlets >=4.1',
@@ -81,7 +79,7 @@ def main():
8179
'pip',
8280
'requests',
8381
],
84-
'test:python_version == "2.7"': [
82+
'test:python_version == "3.6"': [
8583
'mock',
8684
],
8785
},

src/jupyter_contrib_nbextensions/application.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""App to install/remove jupyter_contrib_nbextensions."""
33

4-
from __future__ import print_function, unicode_literals
5-
64
import copy
75
import sys
86

src/jupyter_contrib_nbextensions/config_scripts/highlight_html_cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
c = get_config() # noqa
99
c.NbConvertApp.export_format = "html"
10-
c.Exporter.template_path = [
10+
c.Exporter.template_paths = [
1111
'.',
1212
jupyter_contrib_nbextensions.nbconvert_support.templates_directory(),
1313
os.path.join(jcnbe_dir, 'nbextensions', 'highlighter')

src/jupyter_contrib_nbextensions/config_scripts/highlight_latex_cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
c = get_config() # noqa
99
c.NbConvertApp.export_format = "latex"
10-
c.Exporter.template_path = [
10+
c.Exporter.template_paths = [
1111
'.',
1212
jupyter_contrib_nbextensions.nbconvert_support.templates_directory(),
1313
os.path.join(jcnbe_dir, 'nbextensions', 'highlighter')

src/jupyter_contrib_nbextensions/install.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""API to install/remove all jupyter_contrib_nbextensions."""
33

4-
from __future__ import (
5-
absolute_import, division, print_function, unicode_literals,
6-
)
7-
84
import errno
95
import os
106

@@ -124,7 +120,7 @@ def toggle_install_config(install, user=False, sys_prefix=False,
124120
if logger:
125121
logger.info('-- Configuring nbconvert template path')
126122
# our templates directory
127-
_update_config_list(config, 'Exporter.template_path', [
123+
_update_config_list(config, 'Exporter.template_paths', [
128124
'.',
129125
jupyter_contrib_nbextensions.nbconvert_support.templates_directory(),
130126
], install)

src/jupyter_contrib_nbextensions/migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _uninstall_pre_config(logger=None):
128128
config = Config(cm.get(config_basename))
129129
if config and logger:
130130
logger.info('- Removing old config values from {}'.format(config_path))
131-
_update_config_list(config, 'Exporter.template_path', [
131+
_update_config_list(config, 'Exporter.template_paths', [
132132
'.', os.path.join(jupyter_data_dir(), 'templates'),
133133
], False)
134134
_update_config_list(config, 'Exporter.preprocessors', [

0 commit comments

Comments
 (0)