airflow-dbt-python 3.2.2__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/PKG-INFO +13 -13
  2. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/README.md +11 -11
  3. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/__version__.py +1 -1
  4. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/fs/git.py +2 -2
  5. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/utils/configs.py +1 -0
  6. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python.egg-info/PKG-INFO +13 -13
  7. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python.egg-info/requires.txt +1 -1
  8. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/pyproject.toml +2 -2
  9. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/LICENSE +0 -0
  10. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/__init__.py +0 -0
  11. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/__init__.py +0 -0
  12. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/dbt.py +0 -0
  13. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/fs/__init__.py +0 -0
  14. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/fs/gcs.py +0 -0
  15. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/fs/local.py +0 -0
  16. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/fs/s3.py +0 -0
  17. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/hooks/target.py +0 -0
  18. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/operators/__init__.py +0 -0
  19. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/operators/dbt.py +0 -0
  20. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/utils/__init__.py +0 -0
  21. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/utils/enums.py +0 -0
  22. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/utils/env.py +0 -0
  23. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/utils/url.py +0 -0
  24. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python/utils/version.py +0 -0
  25. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python.egg-info/SOURCES.txt +0 -0
  26. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python.egg-info/dependency_links.txt +0 -0
  27. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/airflow_dbt_python.egg-info/top_level.txt +0 -0
  28. {airflow_dbt_python-3.2.2 → airflow_dbt_python-3.3.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-dbt-python
3
- Version: 3.2.2
3
+ Version: 3.3.0
4
4
  Summary: A collection of Airflow operators, hooks, and utilities to execute dbt commands
5
5
  Author-email: Tomás Farías Santana <tomas@tomasfarias.dev>
6
6
  License-Expression: MIT
@@ -36,7 +36,7 @@ Provides-Extra: gcs
36
36
  Requires-Dist: apache-airflow-providers-google>=11.0.0; extra == "gcs"
37
37
  Provides-Extra: git
38
38
  Requires-Dist: apache-airflow-providers-ssh>=3.0.0; extra == "git"
39
- Requires-Dist: dulwich>=0.24.3; extra == "git"
39
+ Requires-Dist: dulwich>=1.0.0; extra == "git"
40
40
  Provides-Extra: postgres
41
41
  Requires-Dist: dbt-postgres<2.0.0,>=1.8.0; extra == "postgres"
42
42
  Provides-Extra: redshift
@@ -57,7 +57,7 @@ Dynamic: license-file
57
57
  [![Test coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomasfarias/81ef37701aa088d18db8a58ce07c79c7/raw/covbadge.json)](https://github.com/tomasfarias/airflow-dbt-python/actions)
58
58
  [![Documentation](https://readthedocs.org/projects/airflow-dbt-python/badge/?version=latest)](https://airflow-dbt-python.readthedocs.io/en/latest/?badge=latest)
59
59
 
60
- A collection of [Airflow](https://airflow.apache.org/) operators, hooks, and utilities to execute [`dbt`](https://pypi.org/project/dbt-core/) commands.
60
+ A collection of [*Airflow*](https://airflow.apache.org/) operators, hooks, and utilities to execute [*dbt*](https://pypi.org/project/dbt-core/) commands.
61
61
 
62
62
  Read the [documentation](https://airflow-dbt-python.readthedocs.io) for examples, installation instructions, and more details.
63
63
 
@@ -67,20 +67,20 @@ Read the [documentation](https://airflow-dbt-python.readthedocs.io) for examples
67
67
 
68
68
  Before using *airflow-dbt-python*, ensure you meet the following requirements:
69
69
  * A *dbt* project using [dbt-core](https://pypi.org/project/dbt-core/) version 1.8 or later.
70
- * An Airflow environment using version 2.8 or later.
70
+ * An *Airflow* deployment using version 3.0 or later.
71
71
 
72
- * If using any managed service, like AWS MWAA or GCP Cloud Composer 2/3, ensure your environment is created with a supported version of Airflow.
73
- * If self-hosting, Airflow installation instructions can be found in their [official documentation](https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html).
72
+ * If using any managed *Airflow* service, like [AWS MWAA](https://aws.amazon.com/managed-workflows-for-apache-airflow/) or [GCP Cloud Composer](https://cloud.google.com/composer), ensure your environment is created with a supported version of *Airflow*.
73
+ * If self-hosting, *Airflow* installation instructions can be found in their [official documentation](https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html).
74
74
 
75
- * Running Python 3.9 or later in your Airflow environment.
75
+ * Python 3.10 or later.
76
76
 
77
77
  > **Warning**
78
78
  >
79
- > Even though we don't impose any upper limits on versions of Airflow and *dbt*, it's possible that new versions are not supported immediately after release, particularly for *dbt*. We recommend testing the latest versions before upgrading and [reporting any issues](https://github.com/tomasfarias/airflow-dbt-python/issues/new/choose).
79
+ > New versions of *Airflow* and *dbt* may introduce breaking changes. We recommend testing any new versions of *Airflow* and *dbt* before upgrading production systems; Please [report any issues](https://github.com/tomasfarias/airflow-dbt-python/issues/new/choose) that may arise during testing so they can be addressed.
80
80
 
81
81
  > **Note**
82
82
  >
83
- > Older versions of Airflow and *dbt* may work with *airflow-dbt-python*, although we cannot guarantee this. Our testing pipeline runs the latest *dbt-core* with the latest Airflow release, and the latest version supported by [AWS MWAA](https://aws.amazon.com/managed-workflows-for-apache-airflow/) and [GCP Cloud Composer 2/3](https://aws.amazon.com/managed-workflows-for-apache-airflow/).
83
+ > We only test *airflow-dbt-python* against a limited set of versions of *Airflow* and *dbt*, and try to keep up with the latest releases. For *Airflow*, our policy is to cover with tests the latest release of *Airflow*, the latest version available in [GCP Cloud Composer](https://docs.cloud.google.com/composer/docs/composer-versions), and the latest version available in [AWS MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions). For *dbt*, our policy is to cover the last two minor versions.
84
84
 
85
85
  ## From PyPI
86
86
 
@@ -96,7 +96,7 @@ As a convenience, some *dbt* adapters can be installed by specifying extras. For
96
96
  pip install airflow-dbt-python[redshift]
97
97
  ```
98
98
 
99
- ## From this repo
99
+ ## Building from source
100
100
 
101
101
  *airflow-dbt-python* can also be built from source by cloning this GitHub repository:
102
102
 
@@ -105,10 +105,10 @@ git clone https://github.com/tomasfarias/airflow-dbt-python.git
105
105
  cd airflow-dbt-python
106
106
  ```
107
107
 
108
- And installing with *uv*:
108
+ And build with *uv*:
109
109
 
110
110
  ``` shell
111
- uv pip install .
111
+ uv build
112
112
  ```
113
113
 
114
114
  ## In AWS MWAA
@@ -121,7 +121,7 @@ Read the [documentation](https://airflow-dbt-python.readthedocs.io/en/latest/get
121
121
 
122
122
  Add *airflow-dbt-python* to your PyPI packages list.
123
123
 
124
- Read the [documentation](https://cloud.google.com/composer/docs/composer-2/install-python-dependencies#install-pypi) for more a more detailed GCP Cloud Composer 2 installation breakdown.
124
+ Refer to the [GCP Cloud Composer documentation](https://cloud.google.com/composer/docs/composer-3/install-python-dependencies#install-pypi) on how to do this.
125
125
 
126
126
  ## In other managed services
127
127
 
@@ -6,7 +6,7 @@
6
6
  [![Test coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomasfarias/81ef37701aa088d18db8a58ce07c79c7/raw/covbadge.json)](https://github.com/tomasfarias/airflow-dbt-python/actions)
7
7
  [![Documentation](https://readthedocs.org/projects/airflow-dbt-python/badge/?version=latest)](https://airflow-dbt-python.readthedocs.io/en/latest/?badge=latest)
8
8
 
9
- A collection of [Airflow](https://airflow.apache.org/) operators, hooks, and utilities to execute [`dbt`](https://pypi.org/project/dbt-core/) commands.
9
+ A collection of [*Airflow*](https://airflow.apache.org/) operators, hooks, and utilities to execute [*dbt*](https://pypi.org/project/dbt-core/) commands.
10
10
 
11
11
  Read the [documentation](https://airflow-dbt-python.readthedocs.io) for examples, installation instructions, and more details.
12
12
 
@@ -16,20 +16,20 @@ Read the [documentation](https://airflow-dbt-python.readthedocs.io) for examples
16
16
 
17
17
  Before using *airflow-dbt-python*, ensure you meet the following requirements:
18
18
  * A *dbt* project using [dbt-core](https://pypi.org/project/dbt-core/) version 1.8 or later.
19
- * An Airflow environment using version 2.8 or later.
19
+ * An *Airflow* deployment using version 3.0 or later.
20
20
 
21
- * If using any managed service, like AWS MWAA or GCP Cloud Composer 2/3, ensure your environment is created with a supported version of Airflow.
22
- * If self-hosting, Airflow installation instructions can be found in their [official documentation](https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html).
21
+ * If using any managed *Airflow* service, like [AWS MWAA](https://aws.amazon.com/managed-workflows-for-apache-airflow/) or [GCP Cloud Composer](https://cloud.google.com/composer), ensure your environment is created with a supported version of *Airflow*.
22
+ * If self-hosting, *Airflow* installation instructions can be found in their [official documentation](https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html).
23
23
 
24
- * Running Python 3.9 or later in your Airflow environment.
24
+ * Python 3.10 or later.
25
25
 
26
26
  > **Warning**
27
27
  >
28
- > Even though we don't impose any upper limits on versions of Airflow and *dbt*, it's possible that new versions are not supported immediately after release, particularly for *dbt*. We recommend testing the latest versions before upgrading and [reporting any issues](https://github.com/tomasfarias/airflow-dbt-python/issues/new/choose).
28
+ > New versions of *Airflow* and *dbt* may introduce breaking changes. We recommend testing any new versions of *Airflow* and *dbt* before upgrading production systems; Please [report any issues](https://github.com/tomasfarias/airflow-dbt-python/issues/new/choose) that may arise during testing so they can be addressed.
29
29
 
30
30
  > **Note**
31
31
  >
32
- > Older versions of Airflow and *dbt* may work with *airflow-dbt-python*, although we cannot guarantee this. Our testing pipeline runs the latest *dbt-core* with the latest Airflow release, and the latest version supported by [AWS MWAA](https://aws.amazon.com/managed-workflows-for-apache-airflow/) and [GCP Cloud Composer 2/3](https://aws.amazon.com/managed-workflows-for-apache-airflow/).
32
+ > We only test *airflow-dbt-python* against a limited set of versions of *Airflow* and *dbt*, and try to keep up with the latest releases. For *Airflow*, our policy is to cover with tests the latest release of *Airflow*, the latest version available in [GCP Cloud Composer](https://docs.cloud.google.com/composer/docs/composer-versions), and the latest version available in [AWS MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions). For *dbt*, our policy is to cover the last two minor versions.
33
33
 
34
34
  ## From PyPI
35
35
 
@@ -45,7 +45,7 @@ As a convenience, some *dbt* adapters can be installed by specifying extras. For
45
45
  pip install airflow-dbt-python[redshift]
46
46
  ```
47
47
 
48
- ## From this repo
48
+ ## Building from source
49
49
 
50
50
  *airflow-dbt-python* can also be built from source by cloning this GitHub repository:
51
51
 
@@ -54,10 +54,10 @@ git clone https://github.com/tomasfarias/airflow-dbt-python.git
54
54
  cd airflow-dbt-python
55
55
  ```
56
56
 
57
- And installing with *uv*:
57
+ And build with *uv*:
58
58
 
59
59
  ``` shell
60
- uv pip install .
60
+ uv build
61
61
  ```
62
62
 
63
63
  ## In AWS MWAA
@@ -70,7 +70,7 @@ Read the [documentation](https://airflow-dbt-python.readthedocs.io/en/latest/get
70
70
 
71
71
  Add *airflow-dbt-python* to your PyPI packages list.
72
72
 
73
- Read the [documentation](https://cloud.google.com/composer/docs/composer-2/install-python-dependencies#install-pypi) for more a more detailed GCP Cloud Composer 2 installation breakdown.
73
+ Refer to the [GCP Cloud Composer documentation](https://cloud.google.com/composer/docs/composer-3/install-python-dependencies#install-pypi) on how to do this.
74
74
 
75
75
  ## In other managed services
76
76
 
@@ -3,4 +3,4 @@
3
3
  __author__ = "Tomás Farías Santana"
4
4
  __copyright__ = "Copyright 2021 Tomás Farías Santana"
5
5
  __title__ = "airflow-dbt-python"
6
- __version__ = "3.2.2"
6
+ __version__ = "3.3.0"
@@ -93,10 +93,10 @@ class DbtGitFSHook(SSHHook, DbtFSHook):
93
93
  if self.upload_filter(f) is False:
94
94
  continue
95
95
 
96
- repo.stage(str(f.relative_to(source)))
96
+ repo.get_worktree().stage([str(f.relative_to(source))])
97
97
 
98
98
  ts = dt.datetime.now(dt.timezone.utc)
99
- repo.do_commit(
99
+ repo.get_worktree().commit(
100
100
  self.commit_msg.format(ts=ts).encode(), self.commit_author.encode()
101
101
  )
102
102
 
@@ -178,6 +178,7 @@ class BaseConfig:
178
178
  upgrade: bool = False
179
179
 
180
180
  require_model_names_without_spaces: bool = False
181
+ require_ref_searches_node_package_before_root: bool = False
181
182
  exclude_resource_types: list[str] = dataclasses.field(
182
183
  default_factory=list, repr=False
183
184
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-dbt-python
3
- Version: 3.2.2
3
+ Version: 3.3.0
4
4
  Summary: A collection of Airflow operators, hooks, and utilities to execute dbt commands
5
5
  Author-email: Tomás Farías Santana <tomas@tomasfarias.dev>
6
6
  License-Expression: MIT
@@ -36,7 +36,7 @@ Provides-Extra: gcs
36
36
  Requires-Dist: apache-airflow-providers-google>=11.0.0; extra == "gcs"
37
37
  Provides-Extra: git
38
38
  Requires-Dist: apache-airflow-providers-ssh>=3.0.0; extra == "git"
39
- Requires-Dist: dulwich>=0.24.3; extra == "git"
39
+ Requires-Dist: dulwich>=1.0.0; extra == "git"
40
40
  Provides-Extra: postgres
41
41
  Requires-Dist: dbt-postgres<2.0.0,>=1.8.0; extra == "postgres"
42
42
  Provides-Extra: redshift
@@ -57,7 +57,7 @@ Dynamic: license-file
57
57
  [![Test coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomasfarias/81ef37701aa088d18db8a58ce07c79c7/raw/covbadge.json)](https://github.com/tomasfarias/airflow-dbt-python/actions)
58
58
  [![Documentation](https://readthedocs.org/projects/airflow-dbt-python/badge/?version=latest)](https://airflow-dbt-python.readthedocs.io/en/latest/?badge=latest)
59
59
 
60
- A collection of [Airflow](https://airflow.apache.org/) operators, hooks, and utilities to execute [`dbt`](https://pypi.org/project/dbt-core/) commands.
60
+ A collection of [*Airflow*](https://airflow.apache.org/) operators, hooks, and utilities to execute [*dbt*](https://pypi.org/project/dbt-core/) commands.
61
61
 
62
62
  Read the [documentation](https://airflow-dbt-python.readthedocs.io) for examples, installation instructions, and more details.
63
63
 
@@ -67,20 +67,20 @@ Read the [documentation](https://airflow-dbt-python.readthedocs.io) for examples
67
67
 
68
68
  Before using *airflow-dbt-python*, ensure you meet the following requirements:
69
69
  * A *dbt* project using [dbt-core](https://pypi.org/project/dbt-core/) version 1.8 or later.
70
- * An Airflow environment using version 2.8 or later.
70
+ * An *Airflow* deployment using version 3.0 or later.
71
71
 
72
- * If using any managed service, like AWS MWAA or GCP Cloud Composer 2/3, ensure your environment is created with a supported version of Airflow.
73
- * If self-hosting, Airflow installation instructions can be found in their [official documentation](https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html).
72
+ * If using any managed *Airflow* service, like [AWS MWAA](https://aws.amazon.com/managed-workflows-for-apache-airflow/) or [GCP Cloud Composer](https://cloud.google.com/composer), ensure your environment is created with a supported version of *Airflow*.
73
+ * If self-hosting, *Airflow* installation instructions can be found in their [official documentation](https://airflow.apache.org/docs/apache-airflow/stable/installation/index.html).
74
74
 
75
- * Running Python 3.9 or later in your Airflow environment.
75
+ * Python 3.10 or later.
76
76
 
77
77
  > **Warning**
78
78
  >
79
- > Even though we don't impose any upper limits on versions of Airflow and *dbt*, it's possible that new versions are not supported immediately after release, particularly for *dbt*. We recommend testing the latest versions before upgrading and [reporting any issues](https://github.com/tomasfarias/airflow-dbt-python/issues/new/choose).
79
+ > New versions of *Airflow* and *dbt* may introduce breaking changes. We recommend testing any new versions of *Airflow* and *dbt* before upgrading production systems; Please [report any issues](https://github.com/tomasfarias/airflow-dbt-python/issues/new/choose) that may arise during testing so they can be addressed.
80
80
 
81
81
  > **Note**
82
82
  >
83
- > Older versions of Airflow and *dbt* may work with *airflow-dbt-python*, although we cannot guarantee this. Our testing pipeline runs the latest *dbt-core* with the latest Airflow release, and the latest version supported by [AWS MWAA](https://aws.amazon.com/managed-workflows-for-apache-airflow/) and [GCP Cloud Composer 2/3](https://aws.amazon.com/managed-workflows-for-apache-airflow/).
83
+ > We only test *airflow-dbt-python* against a limited set of versions of *Airflow* and *dbt*, and try to keep up with the latest releases. For *Airflow*, our policy is to cover with tests the latest release of *Airflow*, the latest version available in [GCP Cloud Composer](https://docs.cloud.google.com/composer/docs/composer-versions), and the latest version available in [AWS MWAA](https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions). For *dbt*, our policy is to cover the last two minor versions.
84
84
 
85
85
  ## From PyPI
86
86
 
@@ -96,7 +96,7 @@ As a convenience, some *dbt* adapters can be installed by specifying extras. For
96
96
  pip install airflow-dbt-python[redshift]
97
97
  ```
98
98
 
99
- ## From this repo
99
+ ## Building from source
100
100
 
101
101
  *airflow-dbt-python* can also be built from source by cloning this GitHub repository:
102
102
 
@@ -105,10 +105,10 @@ git clone https://github.com/tomasfarias/airflow-dbt-python.git
105
105
  cd airflow-dbt-python
106
106
  ```
107
107
 
108
- And installing with *uv*:
108
+ And build with *uv*:
109
109
 
110
110
  ``` shell
111
- uv pip install .
111
+ uv build
112
112
  ```
113
113
 
114
114
  ## In AWS MWAA
@@ -121,7 +121,7 @@ Read the [documentation](https://airflow-dbt-python.readthedocs.io/en/latest/get
121
121
 
122
122
  Add *airflow-dbt-python* to your PyPI packages list.
123
123
 
124
- Read the [documentation](https://cloud.google.com/composer/docs/composer-2/install-python-dependencies#install-pypi) for more a more detailed GCP Cloud Composer 2 installation breakdown.
124
+ Refer to the [GCP Cloud Composer documentation](https://cloud.google.com/composer/docs/composer-3/install-python-dependencies#install-pypi) on how to do this.
125
125
 
126
126
  ## In other managed services
127
127
 
@@ -32,7 +32,7 @@ apache-airflow-providers-google>=11.0.0
32
32
 
33
33
  [git]
34
34
  apache-airflow-providers-ssh>=3.0.0
35
- dulwich>=0.24.3
35
+ dulwich>=1.0.0
36
36
 
37
37
  [postgres]
38
38
  dbt-postgres<2.0.0,>=1.8.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "airflow-dbt-python"
3
- version = "3.2.2"
3
+ version = "3.3.0"
4
4
  description = "A collection of Airflow operators, hooks, and utilities to execute dbt commands"
5
5
  authors = [{ name = "Tomás Farías Santana", email = "tomas@tomasfarias.dev" }]
6
6
  license = "MIT"
@@ -51,7 +51,7 @@ gcs = [
51
51
  ]
52
52
  git = [
53
53
  "apache-airflow-providers-ssh>=3.0.0",
54
- "dulwich>=0.24.3",
54
+ "dulwich>=1.0.0",
55
55
  ]
56
56
  postgres = [
57
57
  "dbt-postgres>=1.8.0,<2.0.0",