Hello people, I'm trying de build the pull steps o...
# ask-community
j
Hello people, I'm trying de build the pull steps of my
prefect.yml
file, but I'm a bit lost on how to load dependencies when : • I'm in a subdirectory (/project_A/) • Using
uv
and a
pyproject.toml
to define all dependencies (located in
/project_A/pyproject.toml
) • Use workspace in
uv
(with a root
pyproject.toml
) • And have private dependencies in the same repository, located in
/deps/dep_A
) • I'm using a Process running in a docker container (using official prefect image) If anyone as a sample file or example to share...
n
https://docs.prefect.io/v3/how-to-guides/deployment_infra/modal we have some work to do on making it easier to use uv, as there's a fundamental sequencing problem you can do this, but if you're installing from something you want to clone, then you'd have to override the
command
the worker uses to submit the subprocess
uv run --with git+<https://path/to/your/dir/with/pyproject> -m prefect.engine
which is obviously not ideal it should be possible to • clone your repo • install deps from lockfile • then execute
command
with your newly installed venv but its not possible to do that today without writing your own worker type
i included that first guide because @Ben Epstein has done some good exploration on how to use uv with deployments
j
Thanks a lot, I will check this tomorrow