Skip to content

Commit 01545da

Browse files
committed
Drop Python 3.6 support and switch to 3.7+ API
1 parent 1f1ef9c commit 01545da

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
18+
python-version: ['3.7', '3.8', '3.9', '3.10']
1919

2020
steps:
2121
- uses: actions/checkout@v2

jupyter_console/ptshell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,13 +650,13 @@ async def interact(self, loop=None, display_banner=None):
650650
self.run_cell(code, store_history=True)
651651

652652
async def _main_task(self):
653-
loop = asyncio.get_event_loop()
654-
tasks = [asyncio.ensure_future(self.interact(loop=loop))]
653+
loop = asyncio.get_running_loop()
654+
tasks = [asyncio.create_task(self.interact(loop=loop))]
655655

656656
if self.include_other_output:
657657
# only poll the iopub channel asynchronously if we
658658
# wish to include external content
659-
tasks.append(asyncio.ensure_future(self.handle_external_iopub(loop=loop)))
659+
tasks.append(asyncio.create_task(self.handle_external_iopub(loop=loop)))
660660

661661
_, pending = await asyncio.wait(tasks, return_when=asyncio.FIRST_COMPLETED)
662662

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[mypy]
2-
python_version = 3.6
2+
python_version = 3.7
33
ignore_missing_imports = True
44
follow_imports = silent

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import sys
1717

1818

19-
if sys.version_info < (3, 6):
19+
if sys.version_info < (3, 7):
2020
pip_message = 'This may be due to an out of date pip. Make sure you have pip >= 9.0.1.'
2121
try:
2222
import pip
@@ -32,10 +32,11 @@
3232

3333

3434
error = """
35-
Jupyter_Console 6.2+ supports Python 3.6 and above.
35+
Jupyter_Console 6.2+ supports Python 3.7 and above.
3636
When using Python 2.7, please install and older version of Jupyter Console
3737
Python 3.3 and 3.4 were supported up to Jupyter Console 5.x.
3838
Python 3.5 was supported up to Jupyter Console 6.1.0.
39+
Python 3.6 was supported up to Jupyter Console 6.4.3.
3940
4041
Python {py} detected.
4142
{pip}
@@ -82,7 +83,6 @@
8283
'License :: OSI Approved :: BSD License',
8384
'Programming Language :: Python',
8485
'Programming Language :: Python :: 3',
85-
'Programming Language :: Python :: 3.6',
8686
'Programming Language :: Python :: 3.7',
8787
'Programming Language :: Python :: 3.8',
8888
'Programming Language :: Python :: 3.9',
@@ -97,7 +97,7 @@
9797
extras_require={
9898
'test:sys_platform != "win32"': ['pexpect'],
9999
},
100-
python_requires='>=3.6',
100+
python_requires='>=3.7',
101101
entry_points={
102102
'console_scripts': [
103103
'jupyter-console = jupyter_console.app:main',

0 commit comments

Comments
 (0)