Skip to content

Commit

Permalink
Update dbt-spark and pysql dependencies (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db authored Oct 22, 2024
1 parent d1a45ce commit f546cbe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.8"
python-version: "3.9"

- name: Install python dependencies
run: |
Expand All @@ -86,7 +86,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

env:
TOXENV: "unit"
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.8"
python-version: "3.9"

- name: Install python dependencies
run: |
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -207,9 +207,6 @@ jobs:
- name: Install wheel distributions
run: |
find ./dist/*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/
- name: Install dbt-core
run: |
python -m pip install dbt-core==1.8.0rc2
- name: Check wheel distributions
run: |
dbt --version
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
### Under the Hood

- Fix places where we were not properly closing cursors, and other test warnings ([713](https://github.com/databricks/dbt-databricks/pull/713))
- Upgrade databricks-sql-connector dependency to 3.4.0 ([790](https://github.com/databricks/dbt-databricks/pull/790))
- Drop support for Python 3.8 ([713](https://github.com/databricks/dbt-databricks/pull/713))
- Upgrade databricks-sql-connector dependency to 3.5.0 ([833](https://github.com/databricks/dbt-databricks/pull/833))

## dbt-databricks 1.8.7 (October 10, 2024)

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
databricks-sql-connector>=3.4.0, <3.5.0
dbt-spark~=1.8.0
databricks-sql-connector>=3.5.0, <4.0
dbt-spark>=1.9.0b1, <2.0
dbt-core>=1.9.0b1, <2.0
dbt-common>=1.10.0, <2.0
dbt-adapters>=1.7.0, <2.0
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import sys

# require python 3.8 or newer
if sys.version_info < (3, 8):
if sys.version_info < (3, 9):
print("Error: dbt does not support this version of Python.")
print("Please upgrade to Python 3.8 or higher.")
print("Please upgrade to Python 3.9 or higher.")
sys.exit(1)


Expand Down Expand Up @@ -54,11 +54,11 @@ def _get_plugin_version() -> str:
packages=find_namespace_packages(include=["dbt", "dbt.*"]),
include_package_data=True,
install_requires=[
"dbt-spark>=1.8.0, <2.0",
"dbt-spark>=1.9.0b1, <2.0",
"dbt-core>=1.9.0b1, <2.0",
"dbt-adapters>=1.7.0, <2.0",
"dbt-common>=1.10.0, <2.0",
"databricks-sql-connector>=3.4.0, <3.5.0",
"databricks-sql-connector>=3.5.0, <4.0.0",
"databricks-sdk==0.17.0",
"keyring>=23.13.0",
"pandas<2.2.0",
Expand All @@ -71,10 +71,10 @@ def _get_plugin_version() -> str:
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8",
python_requires=">=3.9",
)

0 comments on commit f546cbe

Please sign in to comment.