Skip to content

Commit b355926

Browse files
Allow nbclient 0.4, 0.5 (#24)
1 parent b44d779 commit b355926

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/workflows/pytest.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,3 @@ jobs:
102102
teachopencadd/talktorials/T005_compound_clustering/talktorial.ipynb \
103103
teachopencadd/talktorials/T007_compound_activity_machine_learning/talktorial.ipynb \
104104
teachopencadd/talktorials/T009_compound_ensemble_pharmacophores/talktorial.ipynb \
105-
- if: always()
106-
run: netlify deploy --dir=_build/html --auth=${{ secrets.NETLIFY_TOKEN }} --site=${{ secrets.NETLIFY_SITE_API_ID }}

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ repos:
3434
hooks:
3535
- id: install typeshed
3636
name: typeshed
37-
entry: bash -c 'git clone -q https://github.com/python/typeshed.git || (cd typeshed && git checkout 9af49c0)'
37+
entry: |
38+
bash -c '
39+
git clone -q https://github.com/python/typeshed.git || true
40+
cd typeshed
41+
git checkout 9af49c0
42+
'
3843
language: system
3944
pass_filenames: false
4045
- repo: local

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ packages = [
88
{include = "nbmake", from = "src"},
99
]
1010
readme = "README.md"
11-
version = "0.1.post1"
11+
version = "0.2"
1212

1313
[tool.poetry.plugins."pytest11"]
1414
nbmake = "nbmake.pytest_plugin"
@@ -19,7 +19,7 @@ pathlib = "^1.0.1"
1919
pydantic = "^1.7.2"
2020
pytest = "^6.1.2"
2121
python = "^3.6.1"
22-
nbclient = "<0.4"
22+
nbclient = ">=0.3, <1.0"
2323
jupyter-book = {version = "^0.8.3", optional= true}
2424
nbformat = "^5.0.8"
2525
Pygments = "^2.7.3"
@@ -33,6 +33,7 @@ pre-commit = "^2.8.2"
3333
pytest-cov = "^2.10.1"
3434
pytest-xdist = "^2.1.0"
3535
virtualenv = "^20.1.0"
36+
nbclient = "<0.4"
3637

3738
[build-system]
3839
build-backend = "poetry.core.masonry.api"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
['PyYAML>=5.3.1,<6.0.0',
1515
'Pygments>=2.7.3,<3.0.0',
1616
'ipykernel>=5.4.0,<6.0.0',
17-
'nbclient<0.4',
17+
'nbclient>=0.3,<1.0',
1818
'nbformat>=5.0.8,<6.0.0',
1919
'pathlib>=1.0.1,<2.0.0',
2020
'pydantic>=1.7.2,<2.0.0',
@@ -28,7 +28,7 @@
2828

2929
setup_kwargs = {
3030
'name': 'nbmake',
31-
'version': '0.1.post1',
31+
'version': '0.2',
3232
'description': 'Pytest plugin for testing notebooks',
3333
'long_description': '# nbmake\n[![codecov](https://codecov.io/gh/treebeardtech/nbmake/branch/main/graph/badge.svg?token=9GuDM35FuO)](https://codecov.io/gh/treebeardtech/nbmake)\n[![PyPI versions](https://img.shields.io/pypi/pyversions/nbmake?logo=python&logoColor=white)](https://pypi.org/project/nbmake)\n[![PyPI versions](https://img.shields.io/pypi/v/nbmake?logo=python&logoColor=white)](https://pypi.org/project/nbmake) [![Slack](https://img.shields.io/static/v1?label=slack&message=join&color=green&logo=slack)](https://join.slack.com/t/treebeard-entmoot/shared_invite/zt-jyvuqted-xBjnbvlfcu5P2ltBvn1~mg)\n\n**What?** Pytest plugin for testing and releasing notebook documentation\n\n**Why?** To raise the quality of scientific material through better automation\n\n**Who is this for?** Research/Machine Learning Software Engineers who maintain packages/teaching materials with documentation written in notebooks.\n\n## Functionality\n\n1. Executes notebooks using pytest and nbclient, allowing parallel notebook testing\n2. Optionally writes back to the repo, allowing faster building of [nbsphinx](https://github.com/spatialaudio/nbsphinx) or [jupyter book](https://github.com/executablebooks/jupyter-book) docs\n3. Optionally builds an HTML report using [jupyter-book](https://github.com/executablebooks/jupyter-book) of the test run which can be uploaded to hosting providers such as Netlify.\n\n**See [docs](https://treebeardtech.github.io/nbmake) to get started.**\n<br/>\n<br/>\n\n## See Also\n\n* [nbmake-action](https://github.com/treebeardtech/nbmake-action)\n\n### HTML Report Example\n\n![HTML Report](docs/screen.png)\n\n\n## Developing\n\n### Install local package\n```\npoetry install -E html\n```\n\n### Activate shell\n```\npoetry shell\n```\n\n### Run static checks\n```\npre-commit run --all-files\npre-commit install\n```\n\n### Run tests\n```\npytest\n```\n\n',
3434
'author': 'alex-treebeard',

0 commit comments

Comments
 (0)