Skip to content

Commit 0b77a8a

Browse files
committed
Support Python 3.13 and update license expression
1 parent 19b2e52 commit 0b77a8a

File tree

8 files changed

+21
-11
lines changed

8 files changed

+21
-11
lines changed

.github/workflows/dbt-oracle-adapter-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
fail-fast: true
99
matrix:
1010
os: [ ubuntu-latest ]
11-
python-version: ['3.9', '3.10', '3.11', '3.12']
11+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1212

1313
services:
1414
oracle_db:

dbt/include/oracle/macros/columns.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,12 @@
5656
{% endfor %}
5757
{%- set cols_csv = quoted | join(', ') -%}
5858
{{ return(cols_csv) }}
59+
{% endmacro %}
60+
61+
{% macro oracle__create_columns(relation, columns) %}
62+
{% for column in columns %}
63+
{% call statement() %}
64+
alter table {{ relation }} add {{ adapter.check_and_quote_identifier(column.name, model.columns) }} {{ column.data_type }}
65+
{% endcall %}
66+
{% endfor %}
5967
{% endmacro %}

dbt_adbs_test_project/models/test_py_ref.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ def model(dbt, session):
22
# Must be either table or incremental (view is not currently supported)
33
dbt.config(materialized="table")
44
dbt.config(async_flag=True)
5-
dbt.config(timeout=900) # In seconds
65
dbt.config(service="HIGH") # LOW, MEDIUM, HIGH
76
# oml.core.DataFrame representing a datasource
87
s_df = dbt.ref("sales_cost")

dbt_adbs_test_project/profiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dbt_test:
77
pass: "{{ env_var('DBT_ORACLE_PASSWORD') }}"
88
protocol: "tcps"
99
host: "{{ env_var('DBT_ORACLE_HOST') }}"
10-
port: 1522
10+
port: 1521
1111
service: "{{ env_var('DBT_ORACLE_SERVICE') }}"
1212
database: "{{ env_var('DBT_ORACLE_DATABASE') }}"
1313
schema: "{{ env_var('DBT_ORACLE_SCHEMA') }}"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dbt-common>=1.1.0,<2.0
22
dbt-adapters>=1.2.1,<2.0
33
dbt-core~=1.10,<1.11
4-
oracledb==3.4.0
4+
oracledb==3.4.1

setup.cfg

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ long_description = file: README.md
66
long_description_content_type = text/markdown
77
keywords = Oracle dbt
88
author = Oracle
9-
license = Apache Software License 2.0
9+
license = Apache License 2.0
10+
license_files =
11+
LICENSE.txt
1012
classifiers =
1113
Development Status :: 5 - Production/Stable
1214
Intended Audience :: Developers
13-
License :: OSI Approved :: Apache Software License
1415
Programming Language :: Python :: 3
1516
Programming Language :: Python :: 3.9
1617
Programming Language :: Python :: 3.10
1718
Programming Language :: Python :: 3.11
1819
Programming Language :: Python :: 3.12
20+
Programming Language :: Python :: 3.13
1921

2022
# Map or URL names to links
2123
# Github, PyPI and documentations urls should be added below
@@ -35,7 +37,7 @@ install_requires =
3537
dbt-common>=1.1.0,<2.0
3638
dbt-adapters>=1.2.1,<2.0
3739
dbt-core~=1.10,<1.11
38-
oracledb==3.4.0
40+
oracledb==3.4.1
3941
test_suite=tests
4042
test_requires =
4143
dbt-tests-adapter~=1.10,<1.11

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dbt-common>=1.1.0,<2.0",
4444
"dbt-adapters>=1.2.1,<2.0",
4545
"dbt-core~=1.10,<1.11",
46-
"oracledb==3.4.0"
46+
"oracledb==3.4.1"
4747
]
4848

4949
test_requirements = [
@@ -68,17 +68,18 @@
6868
classifiers=[
6969
'Development Status :: 5 - Production/Stable',
7070
'Intended Audience :: Developers',
71-
'License :: OSI Approved :: Apache Software License',
7271
'Natural Language :: English',
7372
'Programming Language :: Python :: 3',
7473
'Programming Language :: Python :: 3.9',
7574
'Programming Language :: Python :: 3.10',
7675
'Programming Language :: Python :: 3.11',
7776
'Programming Language :: Python :: 3.12'
77+
'Programming Language :: Python :: 3.13'
7878
],
7979
description="dbt (data build tool) adapter for Oracle Autonomous Database",
8080
install_requires=requirements,
81-
license="Apache Software License 2.0",
81+
license="Apache License 2.0",
82+
license_files=["LICENSE.txt"],
8283
long_description=readme,
8384
long_description_content_type='text/markdown',
8485
include_package_data=True,

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py3{9,10,11,12}
2+
envlist = py3{9,10,11,12,13}
33

44
[testenv]
55
passenv =

0 commit comments

Comments
 (0)