From aba6242d9013fd8df45a9a85228842762092cfff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:41:16 -0800 Subject: [PATCH] [Backport 1.2.latest] trying to fix tox issue causing failures (#538) * trying to fix tox issue causing failures (#534) * updating tox python version, changing contriburing file example for integration tests * remove change to contributing file for backport ease * add changelog * trying to incorprorate mulit python version * trying to fix unit test * remove unneded call to basepython * back to 3.8 (cherry picked from commit 951184703a3d95656b9796033503789bdfa01ce8) * created allowlist_externals part for unit test * adding allowlist to spark-session Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com> Co-authored-by: Matthew McKnight --- .changes/unreleased/Under the Hood-20221202-140724.yaml | 7 +++++++ setup.py | 1 + tox.ini | 7 +++++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Under the Hood-20221202-140724.yaml diff --git a/.changes/unreleased/Under the Hood-20221202-140724.yaml b/.changes/unreleased/Under the Hood-20221202-140724.yaml new file mode 100644 index 000000000..88fee7bea --- /dev/null +++ b/.changes/unreleased/Under the Hood-20221202-140724.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: updating python version in tox +time: 2022-12-02T14:07:24.377668-06:00 +custom: + Author: McKnight-42 + Issue: "536" + PR: "534" diff --git a/setup.py b/setup.py index 0647ffd26..620bc1736 100644 --- a/setup.py +++ b/setup.py @@ -93,6 +93,7 @@ def _get_dbt_core_version(): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", ], python_requires=">=3.7", ) diff --git a/tox.ini b/tox.ini index a75e2a26a..347ed272e 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,9 @@ skipsdist = True envlist = unit, flake8, integration-spark-thrift -[testenv:unit] -basepython = python3.8 +[testenv:{unit,py37,py38,py39,py310,py}] +allowlist_externals = + /bin/bash commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit' passenv = DBT_* PYTEST_ADDOPTS deps = @@ -52,6 +53,8 @@ deps = [testenv:integration-spark-session] basepython = python3 +allowlist_externals = + /bin/bash commands = /bin/bash -c '{envpython} -m pytest -v --profile spark_session {posargs} -n4 tests/functional/adapter/*' passenv = DBT_*