diff --git a/dbt/adapters/databricks/__version__.py b/dbt/adapters/databricks/__version__.py index ccbf2589..339a42e9 100644 --- a/dbt/adapters/databricks/__version__.py +++ b/dbt/adapters/databricks/__version__.py @@ -1 +1 @@ -version = "1.9.0rc5" +version = "1.9.0rc6" diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index d80f641d..00000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,15 +0,0 @@ -ruff -freezegun~=1.5.0 -ipdb -mock>=1.3.0 -mypy==1.1.1 -pytest-csv -pytest-dotenv -pytest-xdist -pytest>=6.0.2 -pytz -tox>=3.2.0 -types-requests -types-mock - -git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter diff --git a/pyproject.toml b/pyproject.toml index a21c8a99..ab70bd20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,8 +26,8 @@ dependencies = [ "databricks-sql-connector>=3.5.0, <4.0.0", "dbt-adapters>=1.10.3, <2.0", "dbt-common>=1.13.0, <2.0", - "dbt-core>=1.9.0rc2, <2.0", - "dbt-spark>=1.9.0b1, <2.0", + "dbt-core>=1.8.7, <2.0", + "dbt-spark>=1.8.0, <2.0", "keyring>=23.13.0", "pydantic>=1.10.0, <2", ] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b5199830..00000000 --- a/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -databricks-sql-connector>=3.5.0, <4.0 -git+https://github.com/dbt-labs/dbt-adapters.git@main -git+https://github.com/dbt-labs/dbt-common.git@main -git+https://github.com/dbt-labs/dbt-core.git@main#subdirectory=core -git+https://github.com/dbt-labs/dbt-spark.git@main -databricks-sdk==0.17.0 -keyring>=23.13.0 -pydantic>=1.10.0, <2 diff --git a/setup.py b/setup.py deleted file mode 100644 index 54a7be51..00000000 --- a/setup.py +++ /dev/null @@ -1,80 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -# require python 3.9 or newer -if sys.version_info < (3, 9): - print("Error: dbt does not support this version of Python.") - print("Please upgrade to Python 3.9 or higher.") - sys.exit(1) - - -# require version of setuptools that supports find_namespace_packages -from setuptools import setup - -try: - from setuptools import find_namespace_packages -except ImportError: - # the user has a downlevel version of setuptools. - print("Error: dbt requires setuptools v40.1.0 or higher.") - print('Please upgrade setuptools with "pip install --upgrade setuptools" and try again') - sys.exit(1) - - -# pull long description from README -this_directory = os.path.abspath(os.path.dirname(__file__)) -with open(os.path.join(this_directory, "README.md"), "r", encoding="utf8") as f: - long_description = f.read() - - -# get this package's version from dbt/adapters//__version__.py -def _get_plugin_version() -> str: - _version_path = os.path.join(this_directory, "dbt", "adapters", "databricks", "__version__.py") - try: - exec(open(_version_path).read()) - return locals()["version"] - except IOError: - print("Failed to load dbt-databricks version file for packaging.", file=sys.stderr) - sys.exit(-1) - - -package_name = "dbt-databricks" -package_version = _get_plugin_version() -description = """The Databricks adapter plugin for dbt""" - -setup( - name=package_name, - version=package_version, - description=description, - long_description=long_description, - long_description_content_type="text/markdown", - author="Databricks", - author_email="feedback@databricks.com", - url="https://github.com/databricks/dbt-databricks", - packages=find_namespace_packages(include=["dbt", "dbt.*"]), - include_package_data=True, - install_requires=[ - "dbt-spark>=1.8.0, <2.0", - "dbt-core>=1.8.7, <2.0", - "dbt-adapters>=1.7.0, <2.0", - "dbt-common>=1.10.0, <2.0", - "databricks-sql-connector>=3.5.0, <4.0.0", - "databricks-sdk==0.17.0", - "keyring>=23.13.0", - "pandas<2.2.0", - "pydantic>=1.10.0, <2", - ], - zip_safe=False, - classifiers=[ - "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: Apache Software License", - "Operating System :: Microsoft :: Windows", - "Operating System :: MacOS :: MacOS X", - "Operating System :: POSIX :: Linux", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - ], - python_requires=">=3.9", -)