Skip to content

Commit

Permalink
dependencies: fix breaking change in nbconvert by capping it
Browse files Browse the repository at this point in the history
  • Loading branch information
fenekku authored and lnielsen committed Sep 11, 2020
1 parent 2a65fad commit 340121b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Expand Up @@ -2,9 +2,11 @@
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2020 Northwestern University.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

[pytest]
addopts = --pep8 --ignore=docs --cov=invenio_previewer --cov-report=term-missing
filterwarnings = ignore::pytest.PytestDeprecationWarning
6 changes: 4 additions & 2 deletions run-tests.sh
@@ -1,15 +1,17 @@
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2020 Northwestern University.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


pydocstyle invenio_previewer && \
isort -rc -c -df **/*.py && \
isort invenio_previewer tests --check-only --diff && \
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
python setup.py test && \
pytest && \
sphinx-build -qnNW -b doctest docs docs/_build/doctest
11 changes: 3 additions & 8 deletions setup.py
Expand Up @@ -17,17 +17,11 @@
history = open('CHANGES.rst').read()

tests_require = [
'check-manifest>=0.25',
'coverage>=4.5.3',
'invenio-config>=1.0.2',
'invenio-theme>=1.3.0a10',
'invenio-db[versioning]>=1.0.2',
'isort>=4.3.4',
'mock>=1.3.0',
'pydocstyle>=1.0.0',
'pytest-cov>=2.7.1',
'pytest-pep8>=1.0.6',
'pytest>=4.6.4,<5.0.0',
'pytest-invenio>=1.3.2',
]

extras_require = {
Expand Down Expand Up @@ -60,7 +54,8 @@
'invenio-records-ui>=1.1.0',
'ipython>=4.1.0',
'mistune>=0.7.2',
'nbconvert[execute]>=4.1.0',
# NOTE: nbclient package provides execute in nbconvert >= 6.X
'nbconvert[execute]>=4.1.0,<6.0.0',
'nbformat>=4.0.1',
'tornado>=4.1,<=5.1.1', # required by nbconvert -> jupyter-client
]
Expand Down

0 comments on commit 340121b

Please sign in to comment.