Skip to content

changes for python3.13 and dbt1.10 support #215

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 .github/workflows/ci-integration-tests-csae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
runs-on: ubuntu-latest
name: Functional test
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-pre-release-test-testpypi-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'
strategy:
matrix:
python: [ '3.9', '3.10', '3.11', '3.12' ]
python: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
runs-on: ubuntu-latest
name: CI Pre Release Test TestPyPi
steps:
Expand Down
36 changes: 19 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,24 @@ At a minimum, you need to specify `host`, `user`, `password`, `schema` (database

## Python compatibility

| Plugin version | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 | Python 3.12 |
|----------------| ----------- | ----------- | --------- | ----------- | ----------- |-------------|-------------|
| 0.19.0.x | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌
| 0.20.0.x | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌
| 0.21.1.x | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌
| 1.0.0.x | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌
| 1.1.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.2.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.3.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.4.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.5.x | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.6.x | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.7.x | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.8.x | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅
| 1.8.2 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅
| 1.8.3 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅
| 1.9.x | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅
| Plugin version | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 | Python 3.12 | Python 3.13 |
|----------------| ----------- | ----------- | --------- | ----------- | ----------- |-------------|-------------|-------------|
| 0.19.0.x | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌
| 0.20.0.x | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌
| 0.21.1.x | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌
| 1.0.0.x | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌
| 1.1.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌
| 1.2.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌
| 1.3.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌
| 1.4.x.x | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.5.x | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.6.x | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.7.x | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌
| 1.8.x | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.8.2 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.8.3 | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.9.x | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌
| 1.10.x | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅


## dbt dependent packages version compatibility
Expand All @@ -73,6 +74,7 @@ At a minimum, you need to specify `host`, `user`, `password`, `schema` (database
| 1.8.x | 1.8.x | 1.2.0 | 1.2.0 |
| 1.8.x | 1.8.x | 1.3.0 | 1.3.0 |
| 1.9.x | 1.9.x | 1.3.0 | 1.3.0 |
| 1.10.x | 1.10.x | 1.3.0 | 1.3.0 |

## Optional profile configurations

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ ENTRYPOINT ["dbt"]
# dbt-core
##
FROM base as dbt-core
RUN python -m pip install dbt-teradata==1.9.2
RUN python -m pip install dbt-teradata==1.10.0
RUN python -m pip install dbt-core>=1.8.0
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from setuptools import setup


if sys.version_info < (3, 9) or sys.version_info >= (3, 13):
if sys.version_info < (3, 9) or sys.version_info >= (3, 14):
print('Error: dbt-teradata does not support this version of Python.')
print('Please install Python 3.9 or higher but less than 3.13.')
print('Please install Python 3.9 or higher but less than 3.14.')
sys.exit(1)


Expand Down Expand Up @@ -63,6 +63,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
python_requires=">=3.9,<3.13",
python_requires=">=3.9,<3.14",
)
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def unique_schema(request, prefix) -> str:
def prefix():
# create a directory name that will be unique per test session
_randint = random.randint(0, 9999)
_runtime_timedelta = datetime.utcnow() - datetime(1970, 1, 1, 0, 0, 0)
_runtime_timedelta = datetime.now() - datetime(1970, 1, 1, 0, 0, 0)
_runtime = (int(_runtime_timedelta.total_seconds() * 1e6)) + _runtime_timedelta.microseconds
prefix = f"{_runtime}{_randint:04}"
return prefix