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

Adds an exclude option to the create_lambda_zip method. #35

Merged
merged 3 commits into from
Mar 2, 2016

Conversation

Doerge
Copy link
Contributor

@Doerge Doerge commented Feb 29, 2016

It's nice to be able to exclude stuff that you don't want uploaded, but which are still in the project root. This enables the create_lambda_zip method to receive an extra parameter which should be a list of patterns to exclude.

The patterns support relative, and absolute, and unix like syntax through the fnmatch module.
E.g. exclude = ['./foo/*', '*.git*', '*.DS_Store', 'tmp/*'] will exclude all files in the foo and 'tmp' directories, and all git-related and OS X related stupid files.

Still needs to be hooked up to the respective cli's.

@Miserlou
Copy link
Owner

Can you clean this up a bit? There are a few random print statements, and a hard-coded path that includes your own system's path.

It'd be good if the the '.DS_Store', '.git', etc could call use the same exclude system.

Miserlou pushed a commit that referenced this pull request Mar 2, 2016
Adds an exclude option to the create_lambda_zip method.
@Miserlou Miserlou merged commit 9bf9485 into Miserlou:master Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants