-
Notifications
You must be signed in to change notification settings - Fork 88
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
Include python dependencies #78
Comments
I would be interested in this - I've just started using kappa this week to set up a build environment. I ended up using the (undocumented) 'dependencies' configuration option to include a separate directory, and installing the requirements to that as part of the build outside of kappa. It would definitely be cleaner to have an option to install the given packages and append to the packaging path inside kappa. Might be worth considering how we should handle dependencies like "kappa" or "boto3" - I ended up with two requirements.txt, one for local build/test/deployment, which included a smaller set for the actual upload to lambda. |
I have no idea what this feature request means. If you want to provide some code to implement this feature, cool, otherwise that will be a no from me :) |
👍 for the ideas. It would be nice if In my opinion the following
On
It would be also nice to have a subcommand like What do u think? |
This would be great. I've written a
We could use the runtime defined in kappa.yml to know when to pull in python requirements (and not JS). |
FYI, I've published the skeleton project I used to init my kappa repos with. Here it is. (I'm also working on pre-commit hooks especially for developing AWS lambdas) |
I worked around this problem by creating a script which:
It would be nice if kappa can do something similar. |
Looking at https://github.com/garnaat/kappa/blob/develop/kappa/function.py#L69 seems that dependencies could be installed somewhere else and then listed in the I didn't try that yet, but can someone confirm if my understanding is correct? |
Hi All,
Two feature suggestions...
Pull in python dependencies
Is there any appetite to have a command line option that pulls in python dependencies during the the deploy command?
Separate source and build directories
Executing
pip install -r requirements.txt -t /path/to/source/
creates a lot of noise in the source directory. It would be great if we could create a separate build directory to create the lambda zip package.I've got some time to spend on this if people think it could be useful.
Cheers,
Anthony.
The text was updated successfully, but these errors were encountered: