Skip to content

Commit

Permalink
change version
Browse files Browse the repository at this point in the history
  • Loading branch information
quy196hp committed May 7, 2024
1 parent a74253d commit d855e1b
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dag-factory
# airflow-dagfactory

[![Github Actions](https://github.com/ajbosco/dag-factory/workflows/build/badge.svg?branch=master&event=push)](https://github.com/ajbosco/dag-factory/actions?workflow=build)
[![Coverage](https://codecov.io/github/ajbosco/dag-factory/coverage.svg?branch=master)](https://codecov.io/github/ajbosco/dag-factory?branch=master)
Expand All @@ -14,11 +14,11 @@

## Installation

To install *dag-factory* run `pip install dag-factory`. It requires Python 3.6.0+ and Apache Airflow 2.0+.
To install *dag-factory* run `pip install airflow-dagfactory`. It requires Python 3.10.0+ and Apache Airflow 2.9.1+.

## Usage

After installing *dag-factory* in your Airflow environment, there are two steps to creating DAGs. First, we need to create a YAML configuration file. For example:
After installing *airflow-dagfactory* in your Airflow environment, there are two steps to creating DAGs. First, we need to create a YAML configuration file. For example:

```yaml
example_dag1:
Expand Down Expand Up @@ -57,9 +57,9 @@ Then in the DAGs folder in your Airflow environment you need to create a python
```python
from airflow import DAG
import dagfactory
import airflow_dagfactory

dag_factory = dagfactory.DagFactory("/path/to/dags/config_file.yml")
dag_factory = airflow_dagfactory.DagFactory("/path/to/dags/config_file.yml")

dag_factory.clean_dags(globals())
dag_factory.generate_dags(globals())
Expand All @@ -71,7 +71,7 @@ If you have several configuration files you can import them like this:

```python
# 'airflow' word is required for the dagbag to parse this file
from dagfactory import load_yaml_dags
from airflow_dagfactory import load_yaml_dags

load_yaml_dags(globals_dict=globals(), suffix=['dag.yaml'])
```
Expand Down Expand Up @@ -117,3 +117,8 @@ task_2:
## Contributing

Contributions are welcome! Just submit a Pull Request or Github Issue.


**Upload Pypi**
`python setup.py sdist bdist_wheel `
`python -m twine upload dist/* --verbose`
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Module contains the version of dag-factory"""
__version__ = "0.19.1"
__version__ = "0.19.2"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from airflow.operators.python import PythonOperator

from dagfactory import load_yaml_dags
from airflow_dagfactory import load_yaml_dags

load_yaml_dags(globals_dict=globals(), suffix=['dag.yaml'])

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from setuptools import find_packages, setup, Command

# Package meta-data.
NAME = "dag-factory"
PKG_NAME = "dagfactory"
NAME = "airflow-dagfactory"
PKG_NAME = "airflow_dagfactory"
DESCRIPTION = "Dynamically build Airflow DAGs from YAML files"
URL = "https://github.com/quydx/dag-factory"
EMAIL = "[email protected]"
Expand All @@ -26,7 +26,7 @@
REQUIRED = [
"apache-airflow[http,kubernetes]==2.9.1",
"pyyaml",
"packaging"
"packaging",
]
DEV_REQUIRED = ["black", "pytest", "pylint", "pytest-cov", "tox"]

Expand Down

0 comments on commit d855e1b

Please sign in to comment.