airflow-dbt-python 3.4.0__tar.gz → 3.6.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.4.0 → airflow_dbt_python-3.6.0}/PKG-INFO +2 -2
  2. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/__version__.py +1 -1
  3. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/operators/dbt.py +12 -4
  4. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/utils/configs.py +7 -0
  5. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python.egg-info/PKG-INFO +2 -2
  6. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python.egg-info/requires.txt +1 -1
  7. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/pyproject.toml +5 -3
  8. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/LICENSE +0 -0
  9. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/README.md +0 -0
  10. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/__init__.py +0 -0
  11. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/__init__.py +0 -0
  12. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/dbt.py +0 -0
  13. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/fs/__init__.py +0 -0
  14. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/fs/gcs.py +0 -0
  15. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/fs/git.py +0 -0
  16. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/fs/local.py +0 -0
  17. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/fs/s3.py +0 -0
  18. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/hooks/target.py +0 -0
  19. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/operators/__init__.py +0 -0
  20. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/utils/__init__.py +0 -0
  21. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/utils/enums.py +0 -0
  22. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/utils/env.py +0 -0
  23. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/utils/url.py +0 -0
  24. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python/utils/version.py +0 -0
  25. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python.egg-info/SOURCES.txt +0 -0
  26. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python.egg-info/dependency_links.txt +0 -0
  27. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/airflow_dbt_python.egg-info/top_level.txt +0 -0
  28. {airflow_dbt_python-3.4.0 → airflow_dbt_python-3.6.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-dbt-python
3
- Version: 3.4.0
3
+ Version: 3.6.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>=1.0.0; extra == "git"
39
+ Requires-Dist: dulwich<1.2.0,>=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
@@ -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.4.0"
6
+ __version__ = "3.6.0"
@@ -399,7 +399,9 @@ class DbtRunOperator(DbtBaseOperator):
399
399
  https://docs.getdbt.com/reference/commands/run.
400
400
  """
401
401
 
402
- template_fields = base_template_fields + selection_template_fields
402
+ template_fields = (
403
+ base_template_fields + selection_template_fields + ["full_refresh"]
404
+ )
403
405
 
404
406
  def __init__(
405
407
  self,
@@ -431,7 +433,9 @@ class DbtSeedOperator(DbtBaseOperator):
431
433
  https://docs.getdbt.com/reference/commands/seed.
432
434
  """
433
435
 
434
- template_fields = base_template_fields + selection_template_fields
436
+ template_fields = (
437
+ base_template_fields + selection_template_fields + ["full_refresh"]
438
+ )
435
439
 
436
440
  def __init__(
437
441
  self,
@@ -500,7 +504,9 @@ class DbtCompileOperator(_GraphRunnableOperator):
500
504
  https://docs.getdbt.com/reference/commands/compile.
501
505
  """
502
506
 
503
- template_fields = base_template_fields + selection_template_fields
507
+ template_fields = (
508
+ base_template_fields + selection_template_fields + ["full_refresh"]
509
+ )
504
510
 
505
511
  def __init__(
506
512
  self,
@@ -765,7 +771,9 @@ class DbtBuildOperator(DbtBaseOperator):
765
771
  https://docs.getdbt.com/reference/commands/build.
766
772
  """
767
773
 
768
- template_fields = base_template_fields + selection_template_fields
774
+ template_fields = (
775
+ base_template_fields + selection_template_fields + ["full_refresh"]
776
+ )
769
777
 
770
778
  def __init__(
771
779
  self,
@@ -618,6 +618,13 @@ class TableMutabilityConfig(SelectionConfig):
618
618
  def __post_init__(self):
619
619
  """Call superclass __post_init__."""
620
620
  super().__post_init__()
621
+ if isinstance(self.full_refresh, str):
622
+ if self.full_refresh.lower() not in ("true", "false"):
623
+ raise ValueError(
624
+ f"Invalid value for full_refresh: '{self.full_refresh}'. "
625
+ "Expected 'true' or 'false'."
626
+ )
627
+ self.full_refresh = self.full_refresh.lower() == "true"
621
628
 
622
629
 
623
630
  @dataclasses.dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-dbt-python
3
- Version: 3.4.0
3
+ Version: 3.6.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>=1.0.0; extra == "git"
39
+ Requires-Dist: dulwich<1.2.0,>=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
@@ -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>=1.0.0
35
+ dulwich<1.2.0,>=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.4.0"
3
+ version = "3.6.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,9 @@ gcs = [
51
51
  ]
52
52
  git = [
53
53
  "apache-airflow-providers-ssh>=3.0.0",
54
- "dulwich>=1.0.0",
54
+ # dulwich>=1.2.0 no longer includes a paramiko vendor module we need for SSH connections.
55
+ # Until we can provide our own, exclude newer versions.
56
+ "dulwich>=1.0.0,<1.2.0",
55
57
  ]
56
58
  postgres = [
57
59
  "dbt-postgres>=1.8.0,<2.0.0",
@@ -78,7 +80,7 @@ dev = [
78
80
  "coverage[toml]>=7.2",
79
81
  # docutils 0.21 causes an error with poetry (https://github.com/python-poetry/poetry/issues/9293)
80
82
  "docutils!=0.21",
81
- "dulwich>=0.21,!=0.21.6",
83
+ "dulwich>=1.0.0,<1.2.0",
82
84
  "freezegun>=1.1.0",
83
85
  "mock-gcp==0.2.0",
84
86
  "moto>=4.0.3",