-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-airlift][cleanup] Move airlift to python_modules (#26021)
## Summary & Motivation Moves airlift to the python_modules/libraries directory. Matches other top-level packages, means that it becomes part of the standard release process. This change required some legitimate changes to get the build to pass: - reformatting proxied yaml files - switching imports from relative to explicit - fix the MANIFEST.in file which was totally busted before - move py.typed to the `dagster_airlift` subdirectory. This PR will be used as an accumulator for all the PRs prefixed with [cleanup]
- Loading branch information
Showing
220 changed files
with
217 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,39 @@ In this step, we'll | |
|
||
## Installation & Project Structure | ||
|
||
First, clone the tutorial example repo locally, and enter the repo directory. | ||
First, we'll create a fresh virtual environment using `uv` and activate it. | ||
|
||
```bash | ||
git clone [email protected]:dagster-io/airlift-migration-tutorial.git | ||
cd airlift-federation-tutorial | ||
pip install uv | ||
uv venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
Next, we'll create a fresh virtual environment using `uv`. | ||
Next, we'll install Dagster, and verify that the dagster CLI is available. | ||
|
||
```bash | ||
pip install uv | ||
uv venv | ||
source .venv/bin/activate | ||
uv pip install dagster | ||
dagster --version | ||
``` | ||
|
||
Finally, we'll install the tutorial example code. | ||
|
||
```bash | ||
dagster project from-example --name airlift-federation-tutorial --example airlift-federation-tutorial | ||
``` | ||
|
||
### Project Structure | ||
|
||
The following explains the structure of the repo. | ||
|
||
```plaintext | ||
airlift_federation_tutorial | ||
├── constants.py: Contains constant values used throughout both Airflow and Dagster | ||
├── dagster_defs: Contains Dagster definitions | ||
│ ├── definitions.py: Empty starter file for following along with the tutorial | ||
│ └── stages: Contains reference implementations for each stage of the migration process. | ||
├── metrics_airflow_dags: Contains the Airflow DAGs for the "downstream" airflow instance | ||
└── warehouse_airflow_dags: Contains the Airflow DAGs for the "upstream" airflow instance | ||
``` | ||
|
||
## Running Airflow locally | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,42 @@ In this step, we'll | |
|
||
## Installation & Project Structure | ||
|
||
First, clone the tutorial example repo locally, and enter the repo directory. | ||
First, we'll create a fresh virtual environment using `uv`. | ||
|
||
```bash | ||
git clone [email protected]:dagster-io/airlift-migration-tutorial.git | ||
cd airlift-migration-tutorial | ||
pip install uv | ||
uv venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
Next, we'll create a fresh virtual environment using `uv`. | ||
Next, we'll install Dagster, and verify that the dagster CLI is available. | ||
|
||
```bash | ||
pip install uv | ||
uv venv | ||
source .venv/bin/activate | ||
uv pip install dagster | ||
dagster --version | ||
``` | ||
|
||
First, we'll create a fresh virtual environment using `uv`. | ||
|
||
```bash | ||
dagster project from-example --name airlift-migration-tutorial --example airlift-migration-tutorial | ||
``` | ||
|
||
### Project Structure | ||
|
||
The following explains the structure of the repo. | ||
|
||
```plaintext | ||
tutorial_example | ||
├── shared: Contains shared Python & SQL code used Airflow and proxied Dagster code | ||
│ | ||
├── dagster_defs: Contains Dagster definitions | ||
│ ├── stages: Contains reference implementations of each stage of the migration process | ||
│ ├── definitions.py: Empty starter file for following along with the tutorial | ||
│ | ||
├── airflow_dags: Contains the Airflow DAG and associated files | ||
│ ├── proxied_state: Contains migration state files for each DAG, see migration step below | ||
│ ├── dags.py: The Airflow DAG definition | ||
``` | ||
|
||
## Running Airflow locally | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
examples/experimental/dagster-airlift/dagster_airlift/dbt/__init__.py
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
examples/experimental/dagster-airlift/dagster_airlift/k8s/__init__.py
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
examples/experimental/dagster-airlift/dagster_airlift/mwaa/__init__.py
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...ter-airlift/dagster_airlift_tests/unit_tests/proxied_state_yamls/extra_key/extra_key.yaml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...airlift/dagster_airlift_tests/unit_tests/proxied_state_yamls/nonsense/nonsense_value.yaml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...tal/dagster-airlift/dagster_airlift_tests/unit_tests/proxied_state_yamls/valid/first.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...al/dagster-airlift/dagster_airlift_tests/unit_tests/proxied_state_yamls/valid/second.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.