1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-05 23:59:09 +00:00

Drop Python 3.6 support and require Python >= 3.7

This commit is contained in:
grossmj 2022-03-14 15:13:26 +10:30
parent 3edfa53e9e
commit db739775d0
4 changed files with 12 additions and 19 deletions

View File

@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2

View File

@ -268,9 +268,9 @@ class Server:
else:
log.info(f"Compute authentication is enabled with username '{config.Server.compute_username}'")
# we only support Python 3 version >= 3.6
if sys.version_info < (3, 6, 0):
raise SystemExit("Python 3.6 or higher is required")
# we only support Python 3 version >= 3.7
if sys.version_info < (3, 7, 0):
raise SystemExit("Python 3.7 or higher is required")
log.info(
"Running with Python {major}.{minor}.{micro} and has PID {pid}".format(

View File

@ -1,13 +1,9 @@
uvicorn==0.17.6 ; python_version >= "3.7"
uvicorn==0.16.0 ; python_version < "3.7"
uvicorn==0.17.6
fastapi==0.75.0
python-multipart==0.0.5
websockets==10.2 ; python_version >= "3.7"
websockets==9.1 ; python_version < "3.7"
aiohttp==3.8.1 ; python_version >= "3.7"
aiohttp==3.7.4.post0 ; python_version < "3.7"
async-timeout==4.0.2 ; python_version >= "3.7"
async-timeout==3.0.1 ; python_version < "3.7"
websockets==10.2
aiohttp==3.8.1
async-timeout==4.0.2
aiofiles==0.8.0
Jinja2==3.0.3
sentry-sdk==1.5.7
@ -19,7 +15,4 @@ aiosqlite===0.17.0
passlib[bcrypt]==1.7.4
python-jose==3.3.0
email-validator==1.1.3
async-exit-stack==1.0.1 ; python_version < "3.7"
async-generator==1.10 ; python_version < "3.7"
setuptools==60.6.0; python_version >= '3.7' # don't upgrade because of https://github.com/pypa/setuptools/issues/3084
setuptools==59.6.0; python_version < '3.7' # v59.7.0 dropped support for Python 3.6
setuptools==60.6.0 # don't upgrade because of https://github.com/pypa/setuptools/issues/3084

View File

@ -23,9 +23,9 @@ import subprocess
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# we only support Python 3 version >= 3.6
if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 6, 0):
raise SystemExit("Python 3.6 or higher is required")
# we only support Python 3 version >= 3.7
if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 7, 0):
raise SystemExit("Python 3.7 or higher is required")
class PyTest(TestCommand):