Skip to content

Commit dfb80b7

Browse files
committed
fix: Drop python 3.9 support due to dulwich incompatibility
1 parent 41389a0 commit dfb80b7

File tree

3 files changed

+344
-2389
lines changed

3 files changed

+344
-2389
lines changed

airflow_dbt_python/hooks/fs/git.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ def _download(
160160
path,
161161
str(destination),
162162
mkdir=not destination.exists(),
163-
# NOTE: Dulwich expects branch to be bytes if defined.
164-
branch=branch.encode("utf-8") if isinstance(branch, str) else branch,
163+
branch=branch,
165164
)
166165

167166
def get_git_client_path(self, url: URL) -> Tuple[GitClients, str, Optional[str]]:

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ description = "A collection of Airflow operators, hooks, and utilities to execut
55
authors = [{ name = "Tomás Farías Santana", email = "tomas@tomasfarias.dev" }]
66
license = "MIT"
77
readme = "README.md"
8-
requires-python = ">=3.9,<3.14"
8+
requires-python = ">=3.10,<3.14"
99
classifiers = [
1010
"Development Status :: 5 - Production/Stable",
1111

1212
"Intended Audience :: Developers",
1313

14-
"Programming Language :: Python :: 3.9",
1514
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
1716
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
18+
1819
]
1920

2021
dependencies = [
@@ -50,7 +51,7 @@ gcs = [
5051
]
5152
git = [
5253
"apache-airflow-providers-ssh>=3.0.0",
53-
"dulwich>=0.21",
54+
"dulwich>=0.24.3",
5455
]
5556
postgres = [
5657
"dbt-postgres>=1.8.0,<2.0.0",

0 commit comments

Comments
 (0)