This is a template project for creating a Python AWS Lambda deployable package.
Java 8+ installed Python 3.7 installed pip installed
The following environment variables set:
Maybe place the etc/pip.ini file in %APPDATA%\pip
Run gradlew build
in the project folder
Run gradle publish
in the project folder to generate an SHA256 hash of the zip, and push to S3 for deployment.
- build/deploy -- Folder containing the deployable directory
- build/project.zip -- AWS deployable zip
- build/project.sha -- SHA256 hash of the zip for AWS.
- build/reports/dependency-check -- Folder containing dependency analysis
- build/reports/coverage -- Folder with test coverage report
PyCharm will not import from Gradle directly, so you need to do a couple of things.
- Under Settings-> Project Python Interpreter, select the one in the .gradle/python directory
- Under Settings-> Project Structure, set...
- /build : excluded
- /src/main/python : sources
- /src/test/python : sources