Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip_install_pyproject utility pull step #13447

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

robfreedy
Copy link
Contributor

In prefect.yaml methods for deployment, there is a utility in the pull section for installing dependencies from a requirements.txt. This does not support the pyproject.toml use case.

This PR adds another utility pull step to be able to optionally specify a directory and run pip install with needing a requirements.txt file.

Potentially related issue: #13252

Example

- prefect.deployments.steps.git_clone:
      id: clone-step
      repository: https://gitlab.com/robfreedy/prefect-deployment-examples.git
  - prefect.deployments.steps.pip_install_pyproject:
      directory: "{{ clone-step.directory }}"
      stream_output: False

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • This pull request includes a label categorizing the change e.g. maintenance, fix, feature, enhancement, docs.

For documentation changes:

  • This pull request includes redirect settings in netlify.toml for files that are removed or renamed.

For new functions or classes in the Python SDK:

  • This pull request includes helpful docstrings.
  • If a new Python file was added, this pull request contains a stub page in the Python SDK docs and an entry in mkdocs.yml navigation.

@robfreedy robfreedy added the feature A new feature label May 17, 2024
@robfreedy robfreedy marked this pull request as ready for review May 20, 2024 13:48
@robfreedy robfreedy requested a review from a team as a code owner May 20, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant