John Mizerany
01/24/2024, 3:26 PMEXTRA_PIP_PACKAGES
in a deployment (located in a prefect.yaml file). I am following this, but I run into this error when trying to deploy:
Only a single block placeholder is allowed in a string and no surrounding text is allowed.
Nate
01/24/2024, 3:30 PMJohn Mizerany
01/24/2024, 3:32 PMEXTRA_PIP_PACKAGES
is all caps
So in the deployments
section of the prefect.yaml
file I can just do this?
job_variables:
env:
EXTRA_PIP_PACKAGES:
- prefect-snowflake
- prefect-shell
Nate
01/24/2024, 3:34 PMjob_variables:
env:
EXTRA_PIP_PACKAGES: "prefect-snowflake prefect-shell git+<https://github.com/me/myrepo.git>"
John Mizerany
01/24/2024, 3:34 PMNate
01/24/2024, 3:35 PMNate
01/24/2024, 3:35 PMJohn Mizerany
01/24/2024, 3:35 PMjob_variables:
env:
EXTRA_PIP_PACKAGES: "prefect-snowflake prefect-shell git+https://{{prefect.blocks.secret.secret-block-name}}<http://github.com/me/myrepo.git|github.com/me/myrepo.git>"
Nate
01/24/2024, 3:36 PMJohn Mizerany
01/24/2024, 3:36 PMNate
01/24/2024, 3:38 PMJohn Mizerany
01/24/2024, 3:39 PMJohn Mizerany
01/24/2024, 3:40 PMJohn Mizerany
01/26/2024, 5:01 PMNate
01/26/2024, 6:34 PMenv
here?John Mizerany
01/26/2024, 6:35 PMJohn Mizerany
01/26/2024, 6:38 PM{
"env": {
"EXTRA_PIP_PACKAGES": "prefect-snowflake prefect-shell git+https://'{{prefect.blocks.secret.example-secret-block}}'@github.com/example-repo"
},
}