mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #5532: Drop support for Python 3.6
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -5,7 +5,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.7, 3.8]
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
|
@ -1 +1 @@
|
|||||||
version-2.11.md
|
version-2.12.md
|
7
docs/release-notes/version-2.12.md
Normal file
7
docs/release-notes/version-2.12.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# NetBox v2.12
|
||||||
|
|
||||||
|
## v2.12-beta1 (FUTURE)
|
||||||
|
|
||||||
|
### Other Changes
|
||||||
|
|
||||||
|
* [#5532](https://github.com/netbox-community/netbox/issues/5532) - Drop support for Python 3.6
|
@ -16,7 +16,7 @@ from django.core.validators import URLValidator
|
|||||||
# Environment setup
|
# Environment setup
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION = '2.11.1'
|
VERSION = '2.12-beta1'
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
HOSTNAME = platform.node()
|
HOSTNAME = platform.node()
|
||||||
@ -25,15 +25,9 @@ HOSTNAME = platform.node()
|
|||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
# Validate Python version
|
# Validate Python version
|
||||||
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'):
|
if platform.python_version_tuple() < ('3', '7'):
|
||||||
warnings.warn(
|
raise RuntimeError(
|
||||||
"Support for Python 3.6 will be dropped in NetBox v2.12. Please upgrade to Python 3.7 or later at your "
|
f"NetBox requires Python 3.7 or higher (current: Python {platform.python_version()})"
|
||||||
"earliest convenience."
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user