From 48e421e3bb182c06d18e04372136c523d0ea8a86 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 18:41:35 -0400 Subject: [PATCH] Requiring Python >=3.8 enables walrus operator (#852) (#855) * Requiring Python >=3.8 enables walrus operator * Update comment to be evergreen --------- Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com> (cherry picked from commit 4368ef497d05e6069b4b45ea100d4258536e9521) Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> --- .changes/unreleased/Fixes-20230803-102915.yaml | 6 ++++++ setup.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Fixes-20230803-102915.yaml diff --git a/.changes/unreleased/Fixes-20230803-102915.yaml b/.changes/unreleased/Fixes-20230803-102915.yaml new file mode 100644 index 000000000..6070fb448 --- /dev/null +++ b/.changes/unreleased/Fixes-20230803-102915.yaml @@ -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" diff --git a/setup.py b/setup.py index 6835fc3d6..391060e09 100644 --- a/setup.py +++ b/setup.py @@ -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.") @@ -92,5 +92,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", )