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

[python] Add a CLI command to import pip requirements.txt #652

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

eolivelli
Copy link
Member

Summary:

This path adds a new CLI command to process the requrements.txt file using the same version of the OS and of Python that run in production, on Linux/Intel.

This is very useful in order to ensure that the dependencies that you import match correctly the production enviroment

langstream python load-pip-requirements -app examples/applications/python-processor-exclamation

@SneakyThrows
public void run() {

if (dockerImageVersion != null && dockerImageVersion.endsWith("-SNAPSHOT")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move it to a common function? is the same logic of docker run, right ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, done

@eolivelli eolivelli merged commit c6af8f7 into main Oct 26, 2023
10 checks passed
@eolivelli eolivelli deleted the impl/python-dev-tools branch October 26, 2023 09:26
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants