Skip to content

Commit

Permalink
Closes #5532: Drop support for Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Apr 21, 2021
1 parent efea511 commit b509d96
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8]
services:
redis:
image: redis
Expand Down
2 changes: 1 addition & 1 deletion docs/release-notes/index.md
7 changes: 7 additions & 0 deletions docs/release-notes/version-2.12.md
Original file line number Diff line number Diff line change
@@ -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
12 changes: 3 additions & 9 deletions netbox/netbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Environment setup
#

VERSION = '2.11.1'
VERSION = '2.12-beta1'

# Hostname
HOSTNAME = platform.node()
Expand All @@ -25,15 +25,9 @@
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# 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'):
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."
raise RuntimeError(
f"NetBox requires Python 3.7 or higher (current: Python {platform.python_version()})"
)


Expand Down

0 comments on commit b509d96

Please sign in to comment.