Skip to content

Commit d5cb1ff

Browse files
authored
Drop support for python 3.9 (#1412)
1 parent 092773c commit d5cb1ff

File tree

27 files changed

+97
-60
lines changed

27 files changed

+97
-60
lines changed

.github/actions/publish-results/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
description: File type for file name stub (e.g. "unit-tests")
66
required: true
77
python-version:
8-
description: Python version for the file name stub (e.g. "3.9")
8+
description: Python version for the file name stub (e.g. "3.10")
99
required: true
1010
source-file:
1111
description: File to be uploaded

.github/workflows/_integration-tests.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
python-version:
2424
description: "Choose the Python version to test against"
2525
type: string
26-
default: "3.9"
26+
default: "3.10"
2727
hatch-env:
2828
description: "The hatch environment to run tests on"
2929
type: string
@@ -49,7 +49,7 @@ on:
4949
python-version:
5050
description: "Choose the Python version to test against"
5151
type: choice
52-
options: ["3.9", "3.10", "3.11", "3.12"]
52+
options: ["3.10", "3.11", "3.12"]
5353
hatch-env:
5454
description: "The hatch environment to run tests on"
5555
type: string
@@ -214,9 +214,6 @@ jobs:
214214
- run: |
215215
echo "HATCH_PYTHON=${{ inputs.python-version }}" >> $GITHUB_ENV
216216
echo "PIP_ONLY_BINARY=psycopg2-binary" >> $GITHUB_ENV
217-
# mac + 3.9 requires postgresql to be installed manually so that the psycopg2-binary wheel can be found
218-
- if: inputs.python-version == '3.9' && runner.os == 'macOS'
219-
run: brew install postgresql
220217
- run: psql -f ./scripts/setup_test_database.sql
221218
env:
222219
PGHOST: ${{ vars.POSTGRES_TEST_HOST }}
@@ -387,8 +384,6 @@ jobs:
387384
- uses: actions/setup-python@v5
388385
with:
389386
python-version: ${{ inputs.python-version }}
390-
# TODO: update 3.10 to ${{ inputs.python-version }} once we update default python to >=3.10
391-
# the version of dagger-io that we use does not support py3.9
392-
- run: echo "HATCH_PYTHON=3.10" >> $GITHUB_ENV
387+
- run: echo "HATCH_PYTHON=${{ inputs.python-version }}" >> $GITHUB_ENV
393388
- uses: pypa/hatch@install
394389
- run: hatch run ${{ inputs.hatch-env }}:integration-tests --profile ${{ matrix.profile }}

.github/workflows/_unit-tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
python-version:
2424
description: "Choose the Python version to test against"
2525
type: string
26-
default: 3.9
26+
default: "3.10"
2727
hatch-env:
2828
description: "The hatch environment to run tests on"
2929
type: string
@@ -57,7 +57,7 @@ on:
5757
python-version:
5858
description: "Choose the Python version to test against"
5959
type: choice
60-
options: ["3.9", "3.10", "3.11", "3.12"]
60+
options: ["3.10", "3.11", "3.12"]
6161
hatch-env:
6262
description: "The hatch environment to run tests on"
6363
type: string
@@ -85,10 +85,6 @@ jobs:
8585
- run: |
8686
echo "HATCH_PYTHON=${{ inputs.python-version }}" >> $GITHUB_ENV
8787
echo "PIP_ONLY_BINARY=psycopg2-binary" >> $GITHUB_ENV
88-
# mac + 3.9 requires postgresql to be installed manually so that the psycopg2-binary wheel can be found
89-
- name: "psycopg2-binary check"
90-
if: inputs.python-version == '3.9' && runner.os == 'macOS'
91-
run: brew install postgresql
9288
- uses: pypa/hatch@install
9389
- run: brew install unixodbc
9490
if: inputs.package == 'dbt-spark' && runner.os == 'macOS'

.github/workflows/_verify-build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
python-version:
2424
description: "Choose the Python version to test against"
2525
type: string
26-
default: "3.9"
26+
default: "3.10"
2727
workflow_dispatch:
2828
inputs:
2929
package:
@@ -54,7 +54,7 @@ on:
5454
python-version:
5555
description: "Choose the Python version to test against"
5656
type: choice
57-
options: ["3.9", "3.10", "3.11", "3.12"]
57+
options: ["3.10", "3.11", "3.12"]
5858

5959
permissions:
6060
contents: read
@@ -78,10 +78,6 @@ jobs:
7878
- run: |
7979
echo "HATCH_PYTHON=${{ inputs.python-version }}" >> $GITHUB_ENV
8080
echo "PIP_ONLY_BINARY=psycopg2-binary" >> $GITHUB_ENV
81-
# mac + 3.9 requires postgresql to be installed manually so that the psycopg2-binary wheel can be found
82-
- name: "psycopg2-binary check"
83-
if: inputs.python-version == '3.9' && runner.os == 'macOS'
84-
run: brew install postgresql
8581
- uses: pypa/hatch@install
8682
- run: hatch build && hatch run build:check-all
8783
working-directory: ./${{ inputs.package }}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Dependencies
2+
body: Drop support for python 3.9
3+
time: 2025-10-28T17:54:13.245724-05:00
4+
custom:
5+
Author: QMalcolm
6+
PR: "1412"

dbt-adapters/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "dbt-adapters"
88
description = "The set of adapter protocols and base functionality that supports integration with dbt-core"
99
readme = "README.md"
1010
keywords = ["dbt", "adapter", "adapters", "database", "elt", "dbt-core", "dbt Core", "dbt Cloud", "dbt Labs"]
11-
requires-python = ">=3.9.0"
11+
requires-python = ">=3.10.0"
1212
authors = [
1313
{ name = "dbt Labs", email = "[email protected]" },
1414
]
@@ -21,7 +21,6 @@ classifiers = [
2121
"Operating System :: MacOS :: MacOS X",
2222
"Operating System :: Microsoft :: Windows",
2323
"Operating System :: POSIX :: Linux",
24-
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
2726
"Programming Language :: Python :: 3.12",

dbt-athena-community/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "dbt-athena-community"
77
description = "The athena adapter plugin for dbt (data build tool)"
88
readme = "README.md"
99
keywords = ["dbt", "adapter", "adapters", "database", "elt", "dbt-core", "dbt Core", "dbt Cloud", "dbt Labs", "athena"]
10-
requires-python = ">=3.9.0"
10+
requires-python = ">=3.10.0"
1111
authors = [
1212
{ name = "dbt Labs", email = "[email protected]" },
1313
]
@@ -20,7 +20,6 @@ classifiers = [
2020
"Operating System :: MacOS :: MacOS X",
2121
"Operating System :: Microsoft :: Windows",
2222
"Operating System :: POSIX :: Linux",
23-
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
2625
"Programming Language :: Python :: 3.12",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Dependencies
2+
body: Drop support for python 3.9
3+
time: 2025-10-28T17:54:35.074914-05:00
4+
custom:
5+
Author: QMalcolm
6+
PR: "1412"

dbt-athena/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "dbt-athena"
88
description = "The athena adapter plugin for dbt (data build tool)"
99
readme = "README.md"
1010
keywords = ["dbt", "adapter", "adapters", "database", "elt", "dbt-core", "dbt Core", "dbt Cloud", "dbt Labs", "athena"]
11-
requires-python = ">=3.9.0"
11+
requires-python = ">=3.10.0"
1212
authors = [
1313
{ name = "dbt Labs", email = "[email protected]" },
1414
]
@@ -21,7 +21,6 @@ classifiers = [
2121
"Operating System :: MacOS :: MacOS X",
2222
"Operating System :: Microsoft :: Windows",
2323
"Operating System :: POSIX :: Linux",
24-
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
2726
"Programming Language :: Python :: 3.12",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Dependencies
2+
body: Drop support for python 3.9
3+
time: 2025-10-28T17:55:11.745148-05:00
4+
custom:
5+
Author: QMalcolm
6+
PR: "1412"

0 commit comments

Comments
 (0)