Skip to content

Commit ad3deda

Browse files
committed
⬆️ nbconvert-> nbclient, coverage v4 -> v5
1 parent e9c2ea4 commit ad3deda

16 files changed

+1044
-731
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: [ubuntu-latest]
29-
python-version: [3.6, 3.7, 3.8]
29+
python-version: [3.7, 3.8, 3.9]
3030

3131
runs-on: ${{ matrix.os }}
3232

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,21 @@ classifiers = [
1515
"Topic :: Software Development :: Testing",
1616
"Programming Language :: Python",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.6",
1918
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
2121
"Programming Language :: Python :: Implementation :: CPython",
2222
"Operating System :: OS Independent",
2323
"License :: OSI Approved :: BSD License",
2424
]
25-
requires-python = ">=3.6"
25+
requires-python = "~=3.7"
2626
dependencies = [
2727
"pytest>=3.5.0",
28-
"attrs<21,>=19",
29-
"jupyter_client",
30-
"nbconvert~=5.6.0",
28+
"attrs<23,>=19",
29+
"nbclient~=0.5.10",
3130
"nbdime",
3231
"nbformat",
3332
"jsonschema",
34-
"importlib_resources",
3533
]
3634

3735
[project.urls]
@@ -40,9 +38,10 @@ Documentation = "https://pytest-notebook.readthedocs.io"
4038

4139
[project.optional-dependencies]
4240
testing = [
43-
"coverage~=4.5.1",
4441
"pytest-cov",
4542
"pytest-regressions",
43+
"ipykernel",
44+
"coverage~=5.0",
4645
"black==19.3b0",
4746
"beautifulsoup4==4.8.0",
4847
]

pytest_notebook/example_nbs/example2.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
],
119119
"source": [
120120
"# code cell + png\n",
121-
"display.Image('128x128.png', width=200, unconfined=True)"
121+
"display.Image(filename='128x128.png', width=200, unconfined=True)"
122122
]
123123
},
124124
{
@@ -145,7 +145,7 @@
145145
],
146146
"source": [
147147
"# code cell + jpg\n",
148-
"display.Image('128x128.jpg', width=200, unconfined=True)"
148+
"display.Image(filename='128x128.jpg', width=200, unconfined=True)"
149149
]
150150
},
151151
{

0 commit comments

Comments
 (0)