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

Make chalicelib optional #693

Open
vaughnkoch opened this issue Jan 27, 2018 · 1 comment
Open

Make chalicelib optional #693

vaughnkoch opened this issue Jan 27, 2018 · 1 comment

Comments

@vaughnkoch
Copy link

Hi, thanks for writing chalice, it's sweet.

I would like to request making chalicelib optional in favor of explicit include/exclude paths to be deployed. This could certainly default to using chalicelib for deployment, but I think some people would prefer a more configurable/flexible solution.

With chalicelib/app.py as the only way to deploy your own code, you either have to add chalicelib to sys.path (so you can get relative imports, e.g. #299), or litter your imports with "import chalicelib.yourlibrary", etc. Also, if you have optional files which should remain just in the dev deployment with .gitignore, there's no way to keep those in the chalicelib tree without deploying them. Sometimes keeping them out of chalicelib can be messy too.

I'm familiar with the discussion in #146 and would like to vote for the explicit include/exclude option.

@joguSD
Copy link
Contributor

joguSD commented Jan 30, 2018

Marking as a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants