From 8e07cf39d3f3c69ceeb5b588ae66ab04b64260ea Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Sat, 4 Feb 2023 18:27:17 -0700 Subject: [PATCH] Support Python 3.10 --- README.md | 2 +- setup.py | 7 ++++--- tox.ini | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a7dc196..f8fa03c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This is an experimental plugin: - MySQL 8.0 - MariaDB 10.5 - Compatiblity with other [dbt packages](https://hub.getdbt.com/) (like [dbt_utils](https://hub.getdbt.com/dbt-labs/dbt_utils/latest/)) is also untested -- Supported Python Versions are: 3.6, 3.7, 3.8 & 3.9 +- Supported Python Versions are: 3.6, 3.7, 3.8, 3.9 & 3.10 Please read these docs carefully and use at your own risk. [Issues](https://github.com/dbeatty10/dbt-mysql/issues/new) and [PRs](https://github.com/dbeatty10/dbt-mysql/blob/main/CONTRIBUTING.rst#contributing) welcome! diff --git a/setup.py b/setup.py index a739308..0931070 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,9 @@ import sys import re -if sys.version_info < (3, 7) or sys.version_info >= (3, 10): +if sys.version_info < (3, 7) or sys.version_info >= (3, 11): print('Error: dbt-mysql does not support this version of Python.') - print('Please install Python 3.7 or higher but less than 3.10.') + print('Please install Python 3.7 or higher but less than 3.11.') sys.exit(1) @@ -92,6 +92,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,<3.10", + python_requires=">=3.7,<3.11", ) diff --git a/tox.ini b/tox.ini index 32e1004..2198ecb 100644 --- a/tox.ini +++ b/tox.ini @@ -4,13 +4,13 @@ envlist = flake8, unit, integration-mysql-8.0, integration-mysql-5.7 [testenv:flake8] -basepython = python3.9 +basepython = python3.10 commands = /bin/bash -c '$(which flake8) --select=E,W,F --max-line-length=88 --extend-ignore=E203,W504 dbt/' deps = -r{toxinidir}/requirements-dev.txt [testenv:unit] -basepython = python3.9 +basepython = python3.10 commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit' passenv = DBT_INVOCATION_ENV deps = @@ -18,7 +18,7 @@ deps = -r{toxinidir}/requirements-dev.txt [testenv:integration-mysql-8.0] -basepython = python3.9 +basepython = python3.10 commands = {envpython} -m pytest -v --profile mysql {posargs} tests/functional passenv = DBT_INVOCATION_ENV DBT_MYSQL_SERVER_NAME DBT_MYSQL_80_PORT deps = @@ -27,7 +27,7 @@ deps = -e. [testenv:integration-mysql-5.7] -basepython = python3.9 +basepython = python3.10 commands = {envpython} -m pytest -v --profile mysql5 {posargs} tests/functional passenv = DBT_INVOCATION_ENV DBT_MYSQL_SERVER_NAME DBT_MYSQL_57_PORT deps = @@ -36,7 +36,7 @@ deps = -e. [testenv:integration-mariadb-10.5] -basepython = python3.9 +basepython = python3.10 commands = {envpython} -m pytest -v --profile mariadb {posargs} tests/functional passenv = DBT_INVOCATION_ENV DBT_MYSQL_SERVER_NAME DBT_MARIADB_105_PORT deps =