Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.10 #123

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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",
)
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ 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 =
-r{toxinidir}/requirements.txt
-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 =
Expand All @@ -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 =
Expand All @@ -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 =
Expand Down