Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 2124423

Browse files
authored
Add support for 3.12 in workflow files and configs. (#1081)
* Add support for 3.12 in workflow files and configs. * Try updating odbc * Temporarily flip to 3.12 * Revert to 3.11. Add note about unixodbc --------- Co-authored-by: Mila Page <versusfacit@users.noreply.github.com>
1 parent 2580ac5 commit 2124423

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
python-version: ["3.8", "3.9", "3.10", "3.11"]
78+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
7979

8080
steps:
8181
- name: Check out the repository
@@ -173,7 +173,7 @@ jobs:
173173
fail-fast: false
174174
matrix:
175175
os: [ubuntu-latest, macos-12, windows-latest]
176-
python-version: ["3.8", "3.9", "3.10", "3.11"]
176+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
177177

178178
steps:
179179
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/release-prep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ jobs:
448448
strategy:
449449
fail-fast: false
450450
matrix:
451-
python-version: ["3.8", "3.9", "3.10", "3.11"]
451+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
452452

453453
steps:
454454
- name: Check out the repository

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ repos:
2828
- --target-version=py39
2929
- --target-version=py310
3030
- --target-version=py311
31+
- --target-version=py312
3132
additional_dependencies: [flaky]
3233

3334
- repo: https://github.com/pycqa/flake8

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ rm -rf ./.hive-metastore/
6565
rm -rf ./.spark-warehouse/
6666
```
6767

68+
#### Additional Configuration for MacOS
69+
70+
If installing on MacOS, use `homebrew` to install required dependencies.
71+
```sh
72+
brew install unixodbc
73+
```
74+
6875
### Reporting bugs and contributing code
6976

7077
- Want to report a bug or request a feature? Let us know on [Slack](http://slack.getdbt.com/), or open [an issue](https://github.com/fishtown-analytics/dbt-spark/issues/new).

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pyhive[hive_pure_sasl]~=0.7.0
22
requests>=2.28.1
33

4-
pyodbc~=4.0.39 --no-binary pyodbc
4+
pyodbc~=5.1.0 --no-binary pyodbc
55
sqlparams>=3.0.0
66
thrift>=0.13.0
77
pyspark>=3.0.0,<4.0.0

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _get_plugin_version_dict():
4444
package_version = "1.9.0a1"
4545
description = """The Apache Spark adapter plugin for dbt"""
4646

47-
odbc_extras = ["pyodbc~=4.0.39"]
47+
odbc_extras = ["pyodbc~=5.1.0"]
4848
pyhive_extras = [
4949
"PyHive[hive_pure_sasl]~=0.7.0",
5050
"thrift>=0.11.0,<0.17.0",
@@ -87,6 +87,7 @@ def _get_plugin_version_dict():
8787
"Programming Language :: Python :: 3.9",
8888
"Programming Language :: Python :: 3.10",
8989
"Programming Language :: Python :: 3.11",
90+
"Programming Language :: Python :: 3.12",
9091
],
9192
python_requires=">=3.8",
9293
)

0 commit comments

Comments
 (0)