Announcing the end of support for Python 2.7 in Amazon Chalice

海外精选
海外精选的内容汇集了全球优质的亚马逊云科技相关技术内容。同时,内容中提到的“AWS” 是 “Amazon Web Services” 的缩写,在此网站不作为商标展示。
0
0
{"value":"On July 15, 2021, AWS will publish a minor version update for AWS Chalice that will require Python 3.6 or greater, formally ending our support for Python 2.7.\n\nThe Python Software Foundation (PSF) has stated that “As of January 1st, 2020, no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported.” In 2021, numerous Python projects are ending their support for Python 2, [including the AWS SDK for Python](https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/) which Chalice depends on, and we will be joining these projects in dropping Python 2 support to ensure that AWS Chalice continues to be secure and up-to-date.\n\nAWS Lambda recently announced they are [ending support for Python 2.7](https://aws.amazon.com/blogs/compute/announcing-end-of-support-for-python-2-7-in-aws-lambda/) on July 15, 2021. From that deprecation date, Lambda will no longer apply security patches and other updates to the Python 2.7 runtime used by Lambda functions, and you will no longer be able to create new functions using the Python 2.7 runtime. Chalice maintains parity with all Python versions supported by Lambda, including any runtime deprecations.\n\n#### **How do I use Python 3 with my Chalice application?**\n\nChalice will create Lambda functions based on the version of Python you are using in your development environment. To use Python 3 with Chalice, ensure the interpreter for your project or virtual environment is using Python 3.6 or greater. See our [documentation](https://aws.github.io/chalice/topics/pyversion.html) for more details.\n\n#### **My Chalice application uses Python 2.7, what should I do?**\n\nYou’ll first need to determine if your code is compatible with Python 3. The easiest way to do this is to try to run your application tests in Python 3. Chalice supports both Python 2 and Python 3, and its interfaces remain the same between both versions.\n\nIf your code is not compatible with Python 3.6 or greater, there are a number of guides and tools to help you migrate. The Python Software Foundation (PSF), provides a tool [(2to3)]( https://docs.python.org/2/library/2to3.html)that should automatically migrate most code bases from Python 2 to Python 3. For steps and best practices, the PSF also provides a more in-depth [migration guide](https://docs.python.org/3/howto/pyporting.html).\n\nOnce your application code is compatible with Python 3.6 or greater, make sure to switch your project interpreter or virtual environment to Python 3. Chalice will detect this change and switch your Lambda function runtime to the corresponding version of Python 3.\n\n#### **What if I need additional help?**\n\nIf you have any additional questions or comments, please reach out on our [GitHub repository](https://github.com/aws/chalice/).\n\nTAGS: [aws-chalice](https://aws.amazon.com/blogs/developer/tag/aws-chalice/)","render":"<p>On July 15, 2021, AWS will publish a minor version update for AWS Chalice that will require Python 3.6 or greater, formally ending our support for Python 2.7.</p>\n<p>The Python Software Foundation (PSF) has stated that “As of January 1st, 2020, no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported.” In 2021, numerous Python projects are ending their support for Python 2, <a href=\"https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/\" target=\"_blank\">including the AWS SDK for Python</a> which Chalice depends on, and we will be joining these projects in dropping Python 2 support to ensure that AWS Chalice continues to be secure and up-to-date.</p>\n<p>AWS Lambda recently announced they are <a href=\"https://aws.amazon.com/blogs/compute/announcing-end-of-support-for-python-2-7-in-aws-lambda/\" target=\"_blank\">ending support for Python 2.7</a> on July 15, 2021. From that deprecation date, Lambda will no longer apply security patches and other updates to the Python 2.7 runtime used by Lambda functions, and you will no longer be able to create new functions using the Python 2.7 runtime. Chalice maintains parity with all Python versions supported by Lambda, including any runtime deprecations.</p>\n<h4><a id=\"How_do_I_use_Python_3_with_my_Chalice_application_6\"></a><strong>How do I use Python 3 with my Chalice application?</strong></h4>\n<p>Chalice will create Lambda functions based on the version of Python you are using in your development environment. To use Python 3 with Chalice, ensure the interpreter for your project or virtual environment is using Python 3.6 or greater. See our <a href=\"https://aws.github.io/chalice/topics/pyversion.html\" target=\"_blank\">documentation</a> for more details.</p>\n<h4><a id=\"My_Chalice_application_uses_Python_27_what_should_I_do_10\"></a><strong>My Chalice application uses Python 2.7, what should I do?</strong></h4>\n<p>You’ll first need to determine if your code is compatible with Python 3. The easiest way to do this is to try to run your application tests in Python 3. Chalice supports both Python 2 and Python 3, and its interfaces remain the same between both versions.</p>\n<p>If your code is not compatible with Python 3.6 or greater, there are a number of guides and tools to help you migrate. The Python Software Foundation (PSF), provides a tool <a href=\"https://docs.python.org/2/library/2to3.html\" target=\"_blank\">(2to3)</a>that should automatically migrate most code bases from Python 2 to Python 3. For steps and best practices, the PSF also provides a more in-depth <a href=\"https://docs.python.org/3/howto/pyporting.html\" target=\"_blank\">migration guide</a>.</p>\n<p>Once your application code is compatible with Python 3.6 or greater, make sure to switch your project interpreter or virtual environment to Python 3. Chalice will detect this change and switch your Lambda function runtime to the corresponding version of Python 3.</p>\n<h4><a id=\"What_if_I_need_additional_help_18\"></a><strong>What if I need additional help?</strong></h4>\n<p>If you have any additional questions or comments, please reach out on our <a href=\"https://github.com/aws/chalice/\" target=\"_blank\">GitHub repository</a>.</p>\n<p>TAGS: <a href=\"https://aws.amazon.com/blogs/developer/tag/aws-chalice/\" target=\"_blank\">aws-chalice</a></p>\n"}
目录
亚马逊云科技解决方案 基于行业客户应用场景及技术领域的解决方案
联系亚马逊云科技专家
亚马逊云科技解决方案
基于行业客户应用场景及技术领域的解决方案
联系专家
0
目录
关闭
contact-us