Skip to content

Commit db5e6ab

Browse files
github-actions[bot]ptutak-getindatagithub-actions
authored
Release 0.35.0 (#105)
* Reenable 3.8 (#104) * reenable 3.8 * linting * badge * remove with_test * testing * small fixes * linting * update dbt-graph-builder version * minor version fixed * FIX #105 - Bump version and CHANGELOG for release 0.35.0 --------- Co-authored-by: ptutak-getindata <133227844+ptutak-getindata@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
1 parent ba6924b commit db5e6ab

File tree

13 files changed

+31
-29
lines changed

13 files changed

+31
-29
lines changed

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.9"]
16+
python-version: ["3.8"]
1717
env:
1818
PYTHON_PACKAGE: dbt_airflow_factory
1919
steps:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.9"]
13+
python-version: ["3.8"]
1414
env:
1515
PYTHON_PACKAGE: dbt_airflow_factory
1616
steps:

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup python
1717
uses: actions/setup-python@v2.2.1
1818
with:
19-
python-version: "3.9"
19+
python-version: "3.8"
2020

2121
- name: Setup virtualenv
2222
run: |
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Test with tox
3737
run: |
38-
tox -e py39
38+
tox -e py38
3939
4040
- name: Report coverage
4141
uses: paambaati/codeclimate-action@v2.7.5

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ repos:
66
- id: seed-isort-config
77

88
- repo: https://github.com/pycqa/isort
9-
rev: 5.11.5
9+
rev: 5.12.0
1010
hooks:
1111
- id: isort
1212
args: ["--profile", "black", "--filter-files"]
1313

1414
- repo: https://github.com/psf/black
15-
rev: 22.3.0
15+
rev: 23.7.0
1616
hooks:
1717
- id: black
1818

1919
- repo: https://github.com/pre-commit/pre-commit-hooks
20-
rev: v4.1.0
20+
rev: v4.4.0
2121
hooks:
2222
- id: trailing-whitespace
2323
args: [ --markdown-linebreak-ext=md ]
2424
- id: check-merge-conflict
2525
- id: debug-statements
2626

2727
- repo: https://github.com/pycqa/flake8
28-
rev: 4.0.1
28+
rev: 6.1.0
2929
hooks:
3030
- id: flake8
3131
additional_dependencies: [
@@ -35,7 +35,7 @@ repos:
3535
]
3636

3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: v0.931
38+
rev: v1.5.1
3939
hooks:
4040
- id: mypy
4141
additional_dependencies:

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
## [0.35.0] - 2023-09-08
6+
57
## [0.34.0] - 2023-08-10
68

79
- Add `MS Teams` notifications handler
@@ -155,7 +157,9 @@ This version brings compatibility with `dbt 1.0`.
155157

156158
- Initial implementation of `dbt_airflow_manifest_parser` library.
157159

158-
[Unreleased]: https://github.com/getindata/dbt-airflow-factory/compare/0.34.0...HEAD
160+
[Unreleased]: https://github.com/getindata/dbt-airflow-factory/compare/0.35.0...HEAD
161+
162+
[0.35.0]: https://github.com/getindata/dbt-airflow-factory/compare/0.34.0...0.35.0
159163

160164
[0.34.0]: https://github.com/getindata/dbt-airflow-factory/compare/0.33.0...0.34.0
161165

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DBT Airflow Factory
22

3-
[![Python Version](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue)](https://github.com/getindata/dbt-airflow-factory)
3+
[![Python Version](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)](https://github.com/getindata/dbt-airflow-factory)
44
[![PyPI Version](https://badge.fury.io/py/dbt-airflow-factory.svg)](https://pypi.org/project/dbt-airflow-factory/)
55
[![Downloads](https://pepy.tech/badge/dbt-airflow-factory)](https://pepy.tech/project/dbt-airflow-factory)
66
[![Maintainability](https://api.codeclimate.com/v1/badges/47fd3570c858b6c166ad/maintainability)](https://codeclimate.com/github/getindata/dbt-airflow-factory/maintainability)

dbt_airflow_factory/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.34.0"
1+
version = "0.35.0"

dbt_airflow_factory/notifications/ms_teams_webhook_operator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def __init__(
6060
proxy: Optional[str] = None,
6161
**kwargs: Any,
6262
) -> None:
63-
6463
super(MSTeamsWebhookOperator, self).__init__(**kwargs)
6564
self.http_conn_id = http_conn_id
6665
self.webhook_token = webhook_token

dbt_airflow_factory/tasks_builder/builder.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,8 @@ def _create_task_group_for_model(
115115
def _create_task_for_model(
116116
self,
117117
model_name: str,
118-
is_ephemeral_task: bool,
119118
use_task_group: bool,
120119
) -> ModelExecutionTask:
121-
if is_ephemeral_task:
122-
return ModelExecutionTask(EphemeralOperator(task_id=f"{model_name}__ephemeral"), None)
123-
124120
(task_group, task_group_ctx) = self._create_task_group_for_model(model_name, use_task_group)
125121
is_in_task_group = task_group is not None
126122
with task_group_ctx:
@@ -137,16 +133,18 @@ def _create_task_from_graph_node(
137133
return ModelExecutionTask(
138134
self._make_dbt_multiple_deps_test_task(node["select"], node_name), None
139135
)
140-
elif node["node_type"] == NodeType.SOURCE_SENSOR:
136+
if node["node_type"] == NodeType.SOURCE_SENSOR:
141137
return self._create_dag_sensor(node)
142-
elif node["node_type"] == NodeType.MOCK_GATEWAY:
138+
if node["node_type"] == NodeType.MOCK_GATEWAY:
143139
return self._create_dummy_task(node)
144-
else:
145-
return self._create_task_for_model(
146-
node["select"],
147-
node["node_type"] == NodeType.EPHEMERAL,
148-
self.airflow_config.use_task_group,
140+
if node["node_type"] == NodeType.EPHEMERAL:
141+
return ModelExecutionTask(
142+
EphemeralOperator(task_id=f"{node['select']}__ephemeral"), None
149143
)
144+
return self._create_task_for_model(
145+
node["select"],
146+
self.airflow_config.use_task_group,
147+
)
150148

151149
def _create_tasks_from_graph(self, dbt_airflow_graph: DbtManifestGraph) -> ModelExecutionTasks:
152150
result_tasks = {

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.34.0
2+
current_version = 0.35.0
33

44
[bumpversion:file:setup.py]
55

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Runtime Requirements.
99
INSTALL_REQUIRES = [
1010
"pytimeparse>=1.1, <2",
11-
"dbt-graph-builder>=0.6.3, <2",
11+
"dbt-graph-builder>=0.7.0, <0.8.0",
1212
"apache-airflow[kubernetes,slack]>=2.5, <3",
1313
"apache-airflow-providers-airbyte>=3.1, <4",
1414
]
@@ -33,14 +33,15 @@
3333

3434
setup(
3535
name="dbt-airflow-factory",
36-
version="0.34.0",
36+
version="0.35.0",
3737
description="Library to convert DBT manifest metadata to Airflow tasks",
3838
long_description=README,
3939
long_description_content_type="text/markdown",
4040
license="Apache Software License (Apache 2.0)",
4141
python_requires=">=3",
4242
classifiers=[
4343
"Development Status :: 3 - Alpha",
44+
"Programming Language :: Python :: 3.8",
4445
"Programming Language :: Python :: 3.9",
4546
"Programming Language :: Python :: 3.10",
4647
"Programming Language :: Python :: 3.11",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
manifest_file_name: ../tests/manifest_ephemeral.json
1+
manifest_file_name: ../tests/manifest_ephemeral.json

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py39
2+
envlist = py38
33

44
[testenv]
55
extras =

0 commit comments

Comments
 (0)