Skip to content

Commit d373639

Browse files
Merge pull request #184 from davidbrochart/no_py36
Drop python3.6, test python3.10
2 parents 7303d42 + 7628cb3 commit d373639

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build_docs:
44
docker:
5-
- image: circleci/python:3.6-stretch
5+
- image: circleci/python:3.7-stretch
66
steps:
77
# Get our data and merge with upstream
88
- run: sudo apt-get update

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
os: [ubuntu-latest, macos-latest, windows-latest]
29-
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
29+
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
3030
exclude:
3131
- os: windows-latest
3232
python-version: 3.8

docs/client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Using a command-line interface
173173

174174
This section will illustrate how to run notebooks from your terminal. It supports the most basic use case. For more sophisticated execution options, consider the `papermill <https://pypi.org/project/papermill/>`_ library.
175175

176-
This library's command line tool is available by running `jupyter execute`. It expects notebooks as input arguments and accepts optional flags to modify the default behavior.
176+
This library's command line tool is available by running ``jupyter execute``. It expects notebooks as input arguments and accepts optional flags to modify the default behavior.
177177

178178
Running a notebook is this easy.::
179179

nbclient/client.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1+
import asyncio
12
import atexit
23
import base64
34
import collections
45
import datetime
56
import signal
6-
from textwrap import dedent
7-
8-
try:
9-
from contextlib import asynccontextmanager
10-
except ImportError:
11-
# Use the backport package async-generator for Python < 3.7.
12-
# This should be removed when nbclient drops support for Python 3.6
13-
from async_generator import asynccontextmanager # type: ignore
14-
15-
import asyncio
167
import typing as t
17-
from contextlib import contextmanager
8+
from contextlib import asynccontextmanager, contextmanager
189
from queue import Empty
10+
from textwrap import dedent
1911
from time import monotonic
2012

2113
from jupyter_client import KernelManager

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
traitlets>=4.2
22
jupyter_client>=6.1.5
33
nbformat>=5.0
4-
async_generator; python_version<'3.7'
54
nest_asyncio

0 commit comments

Comments
 (0)