From 06ec0635c36c4922ad53e3a74a0224dd826583d6 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Mon, 8 Nov 2021 19:29:49 +0100 Subject: [PATCH] Rm py36 tests, pkg metadata, bump reqs --- .github/workflows/main.yml | 4 ++-- CHANGELOG.md | 1 + setup.py | 7 +++---- tox.ini | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 12020127c..6254fc339 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,7 +77,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8] # TODO: support unit testing for python 3.9 (https://github.com/dbt-labs/dbt/issues/3689) + python-version: [3.7, 3.8] # TODO: support unit testing for python 3.9 (https://github.com/dbt-labs/dbt/issues/3689) env: TOXENV: "unit" @@ -171,7 +171,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] steps: - name: Set up Python ${{ matrix.python-version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 416db4e76..f8b4a5d5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ N/A ### Under the hood - Add optional profile parameters for atypical local connection setups ([#21](https://github.com/dbt-labs/dbt-snowflake/issues/21), [#36](https://github.com/dbt-labs/dbt-snowflake/pull/36)) - Bump upper bound on `snowflake-connector-python` to `<2.8.0` ([#44](https://github.com/dbt-labs/dbt-snowflake/pull/44)) +- Remove official support for python 3.6, which is reaching end of life on December 23, 2021 ([dbt-core#4134](https://github.com/dbt-labs/dbt-core/issues/4134), [#38](https://github.com/dbt-labs/dbt-snowflake/pull/45)) ### Contributors - [@laxjesse](https://github.com/laxjesse) ([#36](https://github.com/dbt-labs/dbt-snowflake/pull/36)) diff --git a/setup.py b/setup.py index 6f4aee3fd..1422fe028 100644 --- a/setup.py +++ b/setup.py @@ -4,9 +4,9 @@ import re # require python 3.6 or newer -if sys.version_info < (3, 6): +if sys.version_info < (3, 7): print('Error: dbt does not support this version of Python.') - print('Please upgrade to Python 3.6 or higher.') + print('Please upgrade to Python 3.7 or higher.') sys.exit(1) @@ -88,10 +88,9 @@ def _get_dbt_core_version(): 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], - python_requires=">=3.6.2", + python_requires=">=3.7", ) diff --git a/tox.ini b/tox.ini index 66597434f..5c8a61229 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] skipsdist = True -envlist = py36,py37,py38,py39,flake8 +envlist = py37,py38,py39,flake8 [testenv:flake8] description = flake8 code checks @@ -11,7 +11,7 @@ commands = flake8 --select=E,W,F --ignore=W504,E741 --max-line-length 99 \ deps = -rdev_requirements.txt -[testenv:{unit,py36,py37,py38,py39,py}] +[testenv:{unit,py37,py38,py39,py}] description = unit testing skip_install = true passenv = DBT_* PYTEST_ADDOPTS @@ -20,7 +20,7 @@ deps = -rdev_requirements.txt -e. -[testenv:{integration,py36,py37,py38,py39,py}-{snowflake}] +[testenv:{integration,py37,py38,py39,py}-{snowflake}] description = adapter plugin integration testing skip_install = true passenv = DBT_* SNOWFLAKE_TEST_* PYTEST_ADDOPTS