Skip to content

Commit b509d96

Browse files
committed
Closes #5532: Drop support for Python 3.6
1 parent efea511 commit b509d96

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: [3.6, 3.7, 3.8]
8+
python-version: [3.7, 3.8]
99
services:
1010
redis:
1111
image: redis

docs/release-notes/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version-2.11.md
1+
version-2.12.md

docs/release-notes/version-2.12.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# NetBox v2.12
2+
3+
## v2.12-beta1 (FUTURE)
4+
5+
### Other Changes
6+
7+
* [#5532](https://github.com/netbox-community/netbox/issues/5532) - Drop support for Python 3.6

netbox/netbox/settings.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Environment setup
1717
#
1818

19-
VERSION = '2.11.1'
19+
VERSION = '2.12-beta1'
2020

2121
# Hostname
2222
HOSTNAME = platform.node()
@@ -25,15 +25,9 @@
2525
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2626

2727
# Validate Python version
28-
if platform.python_version_tuple() < ('3', '6'):
29-
raise RuntimeError(
30-
"NetBox requires Python 3.6 or higher (current: Python {})".format(platform.python_version())
31-
)
32-
# TODO: Remove in NetBox v2.12
3328
if platform.python_version_tuple() < ('3', '7'):
34-
warnings.warn(
35-
"Support for Python 3.6 will be dropped in NetBox v2.12. Please upgrade to Python 3.7 or later at your "
36-
"earliest convenience."
29+
raise RuntimeError(
30+
f"NetBox requires Python 3.7 or higher (current: Python {platform.python_version()})"
3731
)
3832

3933

0 commit comments

Comments
 (0)