Skip to content

Commit f8bcf34

Browse files
committed
Support Python 3.10 (databricks#158)
### 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).
1 parent 400c51c commit f8bcf34

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
strategy:
7979
fail-fast: false
8080
matrix:
81-
python-version: [3.7, 3.8, 3.9]
81+
python-version: ["3.7", "3.8", "3.9", "3.10"]
8282

8383
env:
8484
TOXENV: "unit"
@@ -177,7 +177,7 @@ jobs:
177177
fail-fast: false
178178
matrix:
179179
os: [ubuntu-latest, macos-latest, windows-latest]
180-
python-version: [3.7, 3.8, 3.9]
180+
python-version: ["3.7", "3.8", "3.9", "3.10"]
181181

182182
steps:
183183
- name: Set up Python ${{ matrix.python-version }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## dbt-databricks 1.1.3 (Release TBD)
22

33
### Features
4+
- Support Python 3.10 ([#158](https://github.com/databricks/dbt-databricks/pull/158))
45
- Add `connection_parameters` for databricks-sql-connector connection parameters ([#135](https://github.com/databricks/dbt-databricks/pull/135))
56
- This can be used to customize the connection by setting additional parameters.
67
- The full parameters are listed at [Databricks SQL Connector for Python](https://docs.databricks.com/dev-tools/python-sql-connector.html#connect-method).

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ These following quick starts will get you up and running with the `dbt-databrick
6969

7070
The `dbt-databricks` adapter has been tested:
7171

72-
- with Python >=3.7, <3.10.
72+
- with Python 3.7 or above.
7373
- against `Databricks SQL` and `Databricks runtime releases 9.1 LTS` and later.

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
databricks-sql-connector>=2.0.2; python_version<'3.10'
2-
databricks-sql-connector>=2.0.2,<2.0.3; python_version=='3.10'
1+
databricks-sql-connector>=2.0.4
32
dbt-spark~=1.1.0

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def _get_plugin_version():
5656
include_package_data=True,
5757
install_requires=[
5858
"dbt-spark~={}".format(dbt_spark_version),
59-
"databricks-sql-connector>=2.0.2; python_version<'3.10'",
60-
"databricks-sql-connector>=2.0.2,<2.0.3; python_version=='3.10'",
59+
"databricks-sql-connector>=2.0.4",
6160
],
6261
zip_safe=False,
6362
classifiers=[
@@ -69,6 +68,7 @@ def _get_plugin_version():
6968
"Programming Language :: Python :: 3.7",
7069
"Programming Language :: Python :: 3.8",
7170
"Programming Language :: Python :: 3.9",
71+
"Programming Language :: Python :: 3.10",
7272
],
7373
python_requires=">=3.7",
7474
)

0 commit comments

Comments
 (0)