You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to deploy a Flask app as an AWS Lambda + API Gateway but pretty am consistently seeing way too many files I don't want in the zip produced by the package command. The specific files I want to include are all those found in the .tox directory of my git repo.
My working directory has a file named zappa_settings.json with the following contents:
I happen to be using ZappaCLI programmatically for some pytest fixtures I am working on, but the problem is also reproducible when running zappa package pytest
Originally from: Miserlou/Zappa#1083 by waynr
Context
I am attempting to deploy a Flask app as an AWS Lambda + API Gateway but pretty am consistently seeing way too many files I don't want in the zip produced by the
package
command. The specific files I want to include are all those found in the.tox
directory of my git repo.My working directory has a file named
zappa_settings.json
with the following contents:I happen to be using ZappaCLI programmatically for some pytest fixtures I am working on, but the problem is also reproducible when running
zappa package pytest
I chose to use
.tox/*
because that is how I see it done in zappa itself with.git/*
:https://github.com/Miserlou/Zappa/blob/master/zappa/core.py#L174
And I can confirm that
.git/*
does the trick since I don't see any paths in the resulting archive starting with.git/
Expected Behavior
I shouldn't see any paths starting with
.tox/
in the archive that zappa produces.Actual Behavior
I see a metric shit ton of paths starting with
.tox/
in the archive that zappa produces.Possible Fix
For my specific use case it will probably make sense to add
.tox/*
tozappa.core.ZIP_EXCLUDES
.Steps to Reproduce
.tox/*
to theexclude
list in your zappa settingszappa package <envname>
Your Environment
o.43.2
Debian 9
andPython 3.6.2
pip freeze
:zappa_settings.py
:The text was updated successfully, but these errors were encountered: