Skip to content

Commit

Permalink
Support Python 3.10 (databricks#158)
Browse files Browse the repository at this point in the history
### Description

Supports Python 3.10.

[`databricks-sql-connector 2.0.4`](https://pypi.org/project/databricks-sql-connector/2.0.4/) has been released with [Python 3.10 support](databricks/databricks-sql-python#26).
  • Loading branch information
ueshin committed Aug 19, 2022
1 parent 400c51c commit f8bcf34
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

env:
TOXENV: "unit"
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## dbt-databricks 1.1.3 (Release TBD)

### Features
- Support Python 3.10 ([#158](https://github.com/databricks/dbt-databricks/pull/158))
- Add `connection_parameters` for databricks-sql-connector connection parameters ([#135](https://github.com/databricks/dbt-databricks/pull/135))
- This can be used to customize the connection by setting additional parameters.
- The full parameters are listed at [Databricks SQL Connector for Python](https://docs.databricks.com/dev-tools/python-sql-connector.html#connect-method).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ These following quick starts will get you up and running with the `dbt-databrick

The `dbt-databricks` adapter has been tested:

- with Python >=3.7, <3.10.
- with Python 3.7 or above.
- against `Databricks SQL` and `Databricks runtime releases 9.1 LTS` and later.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
databricks-sql-connector>=2.0.2; python_version<'3.10'
databricks-sql-connector>=2.0.2,<2.0.3; python_version=='3.10'
databricks-sql-connector>=2.0.4
dbt-spark~=1.1.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def _get_plugin_version():
include_package_data=True,
install_requires=[
"dbt-spark~={}".format(dbt_spark_version),
"databricks-sql-connector>=2.0.2; python_version<'3.10'",
"databricks-sql-connector>=2.0.2,<2.0.3; python_version=='3.10'",
"databricks-sql-connector>=2.0.4",
],
zip_safe=False,
classifiers=[
Expand All @@ -69,6 +68,7 @@ def _get_plugin_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",
)

0 comments on commit f8bcf34

Please sign in to comment.