1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #5938: Deprecate support for Python 3.6

This commit is contained in:
Jeremy Stretch
2021-03-08 13:36:56 -05:00
parent 79b19821f6
commit 14bc3a3cf8
3 changed files with 13 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ from django.core.validators import URLValidator
# Environment setup
#
VERSION = '2.10.6-dev'
VERSION = '2.11-beta1'
# Hostname
HOSTNAME = platform.node()
@@ -29,6 +29,12 @@ if platform.python_version_tuple() < ('3', '6'):
raise RuntimeError(
"NetBox requires Python 3.6 or higher (current: Python {})".format(platform.python_version())
)
# TODO: Remove in NetBox v2.12
if platform.python_version_tuple() < ('3', '7'):
warnings.warn(
"Support for Python 3.6 will be dropped in NetBox v2.12. Please upgrade to Python 3.7 or later at your "
"earliest convenience."
)
#