mike-grant / haaska

Home Assistant Alexa Skill Adapter that supports v3 of the Alexa Smart Home Skill API
MIT License
539 stars 118 forks source link

Upgrade to Python 3.9 #238

Open SylvainSimplonGit opened 2 years ago

SylvainSimplonGit commented 2 years ago

I received this mail from AWS :

Hello,

We are contacting you as we have identified that your AWS Account currently has one or more
Lambda functions using Python 3.6 runtime.

We are ending support for Python 3.6 in AWS Lambda. This follows Python 3.6 End-Of-Life
(EOL) reached on December 23, 2021 [1].

As described in the Lambda runtime support policy [2], end of support for language runtimes in
Lambda happens in two stages. Starting July 18, 2022, Lambda will no longer apply security
patches and other updates to the Python 3.6 runtime used by Lambda functions, and functions
using Python 3.6 will no longer be eligible for technical support. In addition, you will no longer
be able to create new Lambda functions using the Python 3.6 runtime. Starting August 17,
2022, you will no longer be able to update existing functions using the Python 3.6 runtime.

We recommend that you upgrade your existing Python 3.6 functions to Python  3.9 before
August 17, 2022.
...

Is there a solution to upgrade to Python 3.9 ? How can I do this ?

Thanks for your reply

narsaw commented 2 years ago

See post on the HA community forum

bennyboom38 commented 2 years ago

Not sure but I think haaska.py should be ok to run with python 3.9 Have you tried to change python version on aws lambda to see if it fails or not?

fwmarcel commented 2 years ago

haaska runs fine with python 3.9. i already use it now over 2 month without failures

inverse commented 2 years ago

244 will bump things up a bit plus add matrix testing for Python 3.7 - 3.10

justin8 commented 7 months ago

Actually works with 3.12 for me as well. I had to delete the build directory so it'd install the latest requests library and then everything worked without issue.

xPudda commented 7 months ago

Actually works with 3.12 for me as well. I had to delete the build directory so it'd install the latest requests library and then everything worked without issue.

Which directories should be deleted? Sorry for asking, but im quite newbie to python

inverse commented 7 months ago

Which directories should be deleted? Sorry for asking, but im quite newbie to python

The project has a Makefile which you can run

make clean
make

to build a new artifact that can be uploaded

This repo def could do with some :heart: There are a few open PRs for a few years now which could be merged (pending review). Although everything is functional.

@mike-grant happy to help out as I understand time with OSS can be limiting.

justin8 commented 7 months ago

+1, I'd be happy to help. I've been using Haaska for many years now and would love to contribute back