diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9561c40c..3a1637c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,7 +65,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.3.0 with: - python-version: "3.8" + python-version: "3.9" - name: Install python dependencies run: | @@ -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" @@ -138,7 +138,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.3.0 with: - python-version: "3.8" + python-version: "3.9" - name: Install python dependencies run: | @@ -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 }} @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 73ee0e72..cb759c85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ - Significant refactoring and increased testing of python_submissions ([830](https://github.com/databricks/dbt-databricks/pull/830)) - 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) diff --git a/requirements.txt b/requirements.txt index 3df5cb12..fb9c7f54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 2cf2f378..5c236324 100644 --- a/setup.py +++ b/setup.py @@ -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) @@ -54,16 +54,15 @@ 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", "protobuf<5.0.0", - "pydantic~=2.7.0", ], zip_safe=False, classifiers=[ @@ -72,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", )