Skip to content

Commit 0bd9556

Browse files
authored
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 32572fa commit 0bd9556

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
strategy:
8181
fail-fast: false
8282
matrix:
83-
python-version: ["3.7", "3.8", "3.9"]
83+
python-version: ["3.7", "3.8", "3.9", "3.10"]
8484

8585
env:
8686
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

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## dbt-databricks 1.3.0 (Release TBD)
22

3+
## dbt-databricks 1.2.1 (Release TBD)
4+
5+
### Features
6+
- Support Python 3.10 ([#158](https://github.com/databricks/dbt-databricks/pull/158))
7+
38
## dbt-databricks 1.2.0 (August 16, 2022)
49

510
### Features

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.3.0a1

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)