Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic
Tiltfile
for Python SDK local dev (#1819)
https://tilt.dev/ is a powerful dev tool when using containers. It can automatically restart containers and sync files between localhost and container
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.coverage | ||
.env | ||
.git | ||
.idea | ||
.mypy_cache | ||
.nox | ||
.pytest_cache | ||
__pycache__ | ||
docs | ||
example_dags | ||
mk | ||
tests | ||
dev/logs |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
docker_compose('dev/docker-compose.yaml') | ||
|
||
docker_build( | ||
# Image name - must match the image in the docker-compose file | ||
'astro-sdk-dev', | ||
# Docker context | ||
'.', | ||
# Dockerfile | ||
dockerfile = 'dev/Dockerfile', | ||
live_update = [ | ||
sync('./pyproject.toml', '/usr/local/airflow/astro_sdk/pyproject.toml'), | ||
sync('./src', '/usr/local/airflow/astro_sdk/src'), | ||
run('cd /usr/local/airflow/astro_sdk && pip install -e ".[all,tests,doc]"', trigger='pyproject.toml'), | ||
restart_container(), | ||
] | ||
) |
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