File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2020
2121
2222prefect-deploy : setup
23- uv run prefect deploy --prefect-file prefect.yaml --all
23+ (cd src && uv run prefect deploy --prefect-file ../ prefect.yaml --all)
2424
Original file line number Diff line number Diff line change @@ -21,17 +21,20 @@ pull:
2121 credentials : ' {{ prefect.blocks.github-credentials.prefect-modal }}'
2222- prefect.deployments.steps.run_shell_script :
2323 directory : ' {{ clone-step.directory }}'
24- script : make setup
24+ script : |
25+ pip install --upgrade 'uv>=0.5.6,<0.6'
26+ /bin/sh -c "uv export --no-dev --no-editable --no-hashes --locked > requirements.txt"
27+ uv pip install --system -r requirements.txt
2528 - prefect.deployments.steps.set_working_directory :
26- directory : ' /{{ clone-step.directory }}'
29+ directory : ' /{{ clone-step.directory }}/src '
2730
2831# the deployments section allows you to provide configuration for deploying flows
2932deployments :
3033- name : prefect-modal-example
3134 version :
3235 tags : []
3336 description : Our first flow which runs on modal
34- entrypoint : src/ prefect_modal/flows/flow1.py:main
37+ entrypoint : prefect_modal/flows/flow1.py:main
3538 schedules :
3639 - cron : 0 12 * * *
3740 timezone : America/New_York
You can’t perform that action at this time.
0 commit comments