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

remove requirement for requirements.txt when specifying dependencies for deploying to functions: support poetry #243

Open
brucearctor opened this issue May 12, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@brucearctor
Copy link

Functions Framework is fantastic! BUT, it looks like there is a requirement to have requirements.txt for dependencies in cloud functions? Is that a functions framework issue? Or a GCP Functions limitation? Ex: would there be somewhere else to take this concern?

Since we generally now use poetry to define our dependencies, that means functions-framework needs a 'special' requirements.txt for dependencies if deploying to GCP Cloud Functions? Is there any known workaround?

Thanks!

@brucearctor brucearctor changed the title remove requirement for requirements.txt ? remove requirement for requirements.txt when specifying dependencies for deploying to functions: support poetry May 12, 2023
@xSAVIKx
Copy link

xSAVIKx commented May 15, 2023

I believe that's a requirement coming from the https://github.com/GoogleCloudPlatform/buildpacks used to build a container image. I'd very much like to see modern tooling support as well.

For those struggling, you can do an export from poetry using the following command: poetry export --no-interaction --without-hashes --format requirements.txt --output requirements.txt

@garethgeorge garethgeorge added the enhancement New feature or request label May 25, 2023
@KaylaNguyen
Copy link
Contributor

Hi, thanks for bringing this to our attention! The solution suggested by @xSAVIKx is a good workaround. We'll file supporting poetry as a feature request for triage.

@brucearctor
Copy link
Author

brucearctor commented Jun 1, 2023

For those struggling, you can do an export from poetry using the following command: poetry export --no-interaction --without-hashes --format requirements.txt --output requirements.txt

yes, that's what I meant by needing a 'special' requrements.txt

Also, would this issue be better filed somewhere else? Ex: does it need to be routed to the functions team?

@HKWinterhalter HKWinterhalter removed their assignment Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants