I have a serverless.yml
file that specifies Runtime: python3.6
for a serverless function in AWS (Lambda). When setting up a local virtual Python environment for development, I need to specify a patch number (i.e. 3.6.0 through 3.6.12). Which patch version would I use in my virtual environment to best replicate the AWS runtime environment?
I think it might be 3.6.12 since Python3 is well beyond minor version 6 now, and patch versions are typically for bug fixes, but I have not been able to find confirmation. I could also see it maybe depending on what was released when the last build/deployment occurred.
In summary, is there a "correct" patch version I should be using locally or a way to determine which patch version is used by my current deployment?
question from:
https://stackoverflow.com/questions/65905472/which-python3-6-patch-version-is-used-in-aws-serverless-function-runtime-environ 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…