Skip to content

Commit f97c7cb

Browse files
authored
Merge pull request #1561 from juhasch/fix/ci
Update CI tests, update version
2 parents febc884 + 3c434a0 commit f97c7cb

File tree

14 files changed

+55
-58
lines changed

14 files changed

+55
-58
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.5.0
2+
current_version = 0.5.3
33
commit = True
44
message = release {new_version}
55
tag = False

.travis.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,33 @@ matrix:
1818
include:
1919
# packaging sanity check
2020
- os: linux
21-
python: '3.6'
21+
python: '3.8'
2222
env: TOXENV=check
2323
# python linting
2424
- os: linux
25-
python: '3.6'
25+
python: '3.8'
2626
env: TOXENV=lint
2727
# check docs build correctly
2828
- os: linux
29-
python: '3.6'
29+
python: '3.8'
3030
env: TOXENV=docs_build
3131
# check docs links
3232
- os: linux
33-
python: '3.6'
33+
python: '3.8'
3434
env: TOXENV=docs_linkcheck
3535
# check that conda build/install works
3636
- os: linux
37-
python: '3.6'
37+
python: '3.8'
3838
env: TOXENV=condarecipe
3939
# linux, various python and notebook versions
4040
- os: linux
41-
python: '3.6'
42-
env: TOXENV=py36-notebook55
41+
python: '3.8'
42+
env: TOXENV=py38-notebook60
4343
- os: linux
44-
python: '3.6'
45-
env: TOXENV=py36-notebook60
44+
python: '3.8'
45+
env: TOXENV=py38-notebook
4646
- os: linux
47-
python: '3.6'
48-
env: TOXENV=py36-notebook
49-
- os: linux
50-
python: '3.6'
47+
python: '3.8'
5148
env: TOXENV=appveyorartifacts
5249
allow_failures:
5350
- env: TOXENV=appveyorartifacts

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ 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).
24+
- Replace `template_path` with `extra_template_paths` [#1532](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/1532). Nbconvert 6.0 replaced `template_path` with `extra_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).
2525
- Update `install_requires` list in `setup.py` with 'nbconvert >=6.0'
2626
- Drop support for python < 3.6
2727

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ def main():
4040
`the repository issues page <https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues>`_
4141
if you encounter any problems, and create a new issue if needed!
4242
""", # noqa: E501
43-
version='0.5.2',
43+
version='0.5.3',
4444
author='ipython-contrib and jupyter-contrib developers',
4545
author_email='[email protected]',
4646
url=('https://github.com/'
4747
'ipython-contrib/jupyter_contrib_nbextensions.git'),
4848
download_url=('https://github.com/'
4949
'ipython-contrib/jupyter_contrib_nbextensions'
50-
'/tarball/0.5.1'),
50+
'/tarball/0.5.3'),
5151
keywords=['IPython', 'Jupyter', 'notebook'],
5252
license='BSD',
5353
platforms=['Any'],
@@ -67,7 +67,7 @@ def main():
6767
'jupyter_nbextensions_configurator >=0.4.0',
6868
'nbconvert >=6.0',
6969
'notebook >=6.0',
70-
'pyyaml',
70+
# 'pyyaml',
7171
'tornado',
7272
'traitlets >=4.1',
7373
'lxml'
@@ -79,7 +79,7 @@ def main():
7979
'pip',
8080
'requests',
8181
],
82-
'test:python_version == "3.6"': [
82+
'test:python_version == "3.8"': [
8383
'mock',
8484
],
8585
},

src/jupyter_contrib_nbextensions/__init__.py

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

55
import jupyter_nbextensions_configurator
66

7-
__version__ = '0.5.1'
7+
__version__ = '0.5.3'
88

99

1010
def _jupyter_server_extension_paths():

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_paths = [
10+
c.Exporter.extra_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_paths = [
10+
c.Exporter.extra_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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def toggle_install_config(install, user=False, sys_prefix=False,
120120
if logger:
121121
logger.info('-- Configuring nbconvert template path')
122122
# our templates directory
123-
_update_config_list(config, 'Exporter.template_paths', [
123+
_update_config_list(config, 'Exporter.extra_template_pathss', [
124124
'.',
125125
jupyter_contrib_nbextensions.nbconvert_support.templates_directory(),
126126
], install)

src/jupyter_contrib_nbextensions/migrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _uninstall_pre_config(logger=None):
117117
# and notebook < 4.2 key server_extensions
118118
_update_config_list(
119119
config, 'NotebookApp.server_extensions', to_remove, False)
120-
_update_config_list(config, 'NotebookApp.extra_template_paths', [
120+
_update_config_list(config, 'NotebookApp.extra_template_pathss', [
121121
os.path.join(jupyter_data_dir(), 'templates'),
122122
], False)
123123
_set_managed_config(cm, config_basename, config, logger)
@@ -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_paths', [
131+
_update_config_list(config, 'Exporter.extra_template_pathss', [
132132
'.', os.path.join(jupyter_data_dir(), 'templates'),
133133
], False)
134134
_update_config_list(config, 'Exporter.preprocessors', [

src/jupyter_contrib_nbextensions/nbconvert_support/exporter_inliner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ExporterInliner(HTMLExporter):
1313
help='css and js scripts to wrap in html <style> or <script> tags')
1414

1515
def _template_file_default(self):
16-
return 'inliner'
16+
return 'inliner.tpl'
1717

1818
def from_notebook_node(self, nb, resources=None, **kw):
1919

@@ -39,8 +39,8 @@ def default_config(self):
3939
templates_directory)
4040
contrib_templates_dir = templates_directory()
4141

42-
template_paths = c.TemplateExporter.setdefault('template_paths', [])
43-
if contrib_templates_dir not in template_paths:
44-
template_paths.append(contrib_templates_dir)
42+
extra_template_paths = c.TemplateExporter.setdefault('extra_template_paths', [])
43+
if contrib_templates_dir not in extra_template_paths:
44+
extra_template_paths.append(contrib_templates_dir)
4545

4646
return c

0 commit comments

Comments
 (0)