Skip to content

Commit

Permalink
Allow nbclient 0.4, 0.5 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-treebeard authored Feb 3, 2021
1 parent b44d779 commit b355926
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,3 @@ jobs:
teachopencadd/talktorials/T005_compound_clustering/talktorial.ipynb \
teachopencadd/talktorials/T007_compound_activity_machine_learning/talktorial.ipynb \
teachopencadd/talktorials/T009_compound_ensemble_pharmacophores/talktorial.ipynb \
- if: always()
run: netlify deploy --dir=_build/html --auth=${{ secrets.NETLIFY_TOKEN }} --site=${{ secrets.NETLIFY_SITE_API_ID }}
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ repos:
hooks:
- id: install typeshed
name: typeshed
entry: bash -c 'git clone -q https://github.com/python/typeshed.git || (cd typeshed && git checkout 9af49c0)'
entry: |
bash -c '
git clone -q https://github.com/python/typeshed.git || true
cd typeshed
git checkout 9af49c0
'
language: system
pass_filenames: false
- repo: local
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages = [
{include = "nbmake", from = "src"},
]
readme = "README.md"
version = "0.1.post1"
version = "0.2"

[tool.poetry.plugins."pytest11"]
nbmake = "nbmake.pytest_plugin"
Expand All @@ -19,7 +19,7 @@ pathlib = "^1.0.1"
pydantic = "^1.7.2"
pytest = "^6.1.2"
python = "^3.6.1"
nbclient = "<0.4"
nbclient = ">=0.3, <1.0"
jupyter-book = {version = "^0.8.3", optional= true}
nbformat = "^5.0.8"
Pygments = "^2.7.3"
Expand All @@ -33,6 +33,7 @@ pre-commit = "^2.8.2"
pytest-cov = "^2.10.1"
pytest-xdist = "^2.1.0"
virtualenv = "^20.1.0"
nbclient = "<0.4"

[build-system]
build-backend = "poetry.core.masonry.api"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
['PyYAML>=5.3.1,<6.0.0',
'Pygments>=2.7.3,<3.0.0',
'ipykernel>=5.4.0,<6.0.0',
'nbclient<0.4',
'nbclient>=0.3,<1.0',
'nbformat>=5.0.8,<6.0.0',
'pathlib>=1.0.1,<2.0.0',
'pydantic>=1.7.2,<2.0.0',
Expand All @@ -28,7 +28,7 @@

setup_kwargs = {
'name': 'nbmake',
'version': '0.1.post1',
'version': '0.2',
'description': 'Pytest plugin for testing notebooks',
'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',
'author': 'alex-treebeard',
Expand Down

0 comments on commit b355926

Please sign in to comment.