-
Notifications
You must be signed in to change notification settings - Fork 25
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 option to maintain the file include paths when copying to build package #16
Comments
see #8 first comment |
I think I've solved this issue in my fork at onlicar/serverless-package-python-functions - I've added a new I don't really see a use case for from repositories.vehicles import get_vehicle Whereas, with from vehicles import get_vehicle Let me know if I should open a pull request with the current changes (adding |
+1 |
@danbovey Thanks for the feedback! Please make a PR request and I'll take a look. |
Hi, How did you solve this issue? I am having very similar issue. Whenever I have to run my unit tests, my import doesn't work. If I change my imports to suit unit tests then aws lambda doesn't like it. Is there any workaround for this? Regards, |
As of now, for my unit test cases, I have solved the problem with setting PYTHONPATH. But is there cleaner way of handling this scenario? Regards, |
Is this feature being worked upon? We are facing a similar condition where we need to copy files in place to a lambda package. |
Hi @danbovey. Did you happen to end up with a solution for this? As already mentioned here, not having each lambda as an individual package introduces all kinds of issues when you start add unit tests, linting with mypy, etc. to the project. |
No description provided.
The text was updated successfully, but these errors were encountered: