mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Early support for Python3.10 Fixes #1940
This commit is contained in:
parent
8c0899d086
commit
496170b4e5
2
.github/workflows/testing.yml
vendored
2
.github/workflows/testing.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8]
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -83,7 +83,7 @@ class WebServer:
|
|||||||
def _run_application(self, handler, ssl_context=None):
|
def _run_application(self, handler, ssl_context=None):
|
||||||
try:
|
try:
|
||||||
srv = self._loop.create_server(handler, self._host, self._port, ssl=ssl_context)
|
srv = self._loop.create_server(handler, self._host, self._port, ssl=ssl_context)
|
||||||
self._server, startup_res = self._loop.run_until_complete(asyncio.gather(srv, self._app.startup(), loop=self._loop))
|
self._server, startup_res = self._loop.run_until_complete(asyncio.gather(srv, self._app.startup()))
|
||||||
except (RuntimeError, OSError, asyncio.CancelledError) as e:
|
except (RuntimeError, OSError, asyncio.CancelledError) as e:
|
||||||
log.critical("Could not start the server: {}".format(e))
|
log.critical("Could not start the server: {}".format(e))
|
||||||
return False
|
return False
|
||||||
|
1
setup.py
1
setup.py
@ -80,6 +80,7 @@ setup(
|
|||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user