Skip to content

Commit b2198a8

Browse files
committed
workaround
1 parent f31e2c9 commit b2198a8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ setup:
2020

2121

2222
prefect-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

prefect.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2932
deployments:
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

0 commit comments

Comments
 (0)