1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Fixes #181 (drop Python 3.3).

This commit is contained in:
grossmj 2015-06-03 12:08:11 -06:00
parent d8fb33dba2
commit 9f15fdbc2b
2 changed files with 8 additions and 5 deletions

View File

@ -199,9 +199,9 @@ def run():
if server_config.getboolean("local"):
log.warning("Local mode is enabled. Beware, clients will have full control on your filesystem")
# we only support Python 3 version >= 3.3
if sys.version_info < (3, 3):
raise RuntimeError("Python 3.3 or higher is required")
# we only support Python 3 version >= 3.4
if sys.version_info < (3, 4):
raise RuntimeError("Python 3.4 or higher is required")
user_log.info("Running with Python {major}.{minor}.{micro} and has PID {pid}".format(
major=sys.version_info[0], minor=sys.version_info[1],

View File

@ -19,6 +19,9 @@ import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# we only support Python 3 version >= 3.4
if sys.version_info < (3, 4):
raise RuntimeError("Python 3.4 or higher is required")
class PyTest(TestCommand):
def finalize_options(self):
@ -42,7 +45,7 @@ dependencies = [
]
if sys.version_info == (3, 3):
if sys.version_info == (3, 4):
dependencies.append("asyncio>=3.4.2")
setup(
@ -75,8 +78,8 @@ setup(
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
],
)