Hi! if i want to contribute to prefect oss so that...
# prefect-integrations
t
Hi! if i want to contribute to prefect oss so that we can have a prefect yaml pull steps working with pex, where should i start? thanks!! cc: @Nate
a
Hey @Thang Le! Pull steps are very flexible and can reference Python functions outside of
prefect
, so you might not need to contribute to Prefect to use pex in your pull steps. Here's a section in the docs that covers how to write custom deployment steps: https://docs.prefect.io/v3/how-to-guides/deployments/prefect-yaml#writing-a-custom-step-function.
t
hi alex!! thanks for answering. we're currently doing something like this
Copy code
{
    "prefect_aws.deployments.steps.pull_from_s3": {
      "id": "pull_flow_artifacts",
      "bucket": "test",
      "folder": "test
    }
  },
  {
    "prefect.deployments.steps.run_shell_script": {
      "id": "extract_pex_deps",
      "script": "unzip -o pex-deps.zip"
    }
  },
  {
    "prefect.deployments.steps.run_shell_script": {
      "id": "extract_pex_srcs",
      "script": "unzip -o pex-srcs.zip"
    }
  }
it will be amazing not having to do 2 different run_shell_script but we can do prefect.deployments.steps.pull_pex and it does this in the background
tldr steps are just fully qualified python functions. so you can write
your_module.somewhere.pull_pex
and then use that in your .yaml file
t
BLESSED thank you