Skip to content

Commit

Permalink
Requiring Python >=3.8 enables walrus operator (#852)
Browse files Browse the repository at this point in the history
* Requiring Python >=3.8 enables walrus operator

* Update comment to be evergreen

---------

Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com>
dbeatty10 and mikealfare authored Aug 3, 2023
1 parent 3ed72ee commit 4368ef4
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230803-102915.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Requiring Python >=3.8 enables walrus operator
time: 2023-08-03T10:29:15.371798-06:00
custom:
Author: cemsbr dbeatty10
Issue: "849"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys

# require python 3.7 or newer
# require a supported version of Python
if sys.version_info < (3, 8):
print("Error: dbt does not support this version of Python.")
print("Please upgrade to Python 3.8 or higher.")
@@ -91,5 +91,5 @@ def _dbt_core_version(plugin_version: str) -> str:
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
python_requires=">=3.7",
python_requires=">=3.8",
)

0 comments on commit 4368ef4

Please sign in to comment.