serverless-python-requirements icon indicating copy to clipboard operation
serverless-python-requirements copied to clipboard

PEP631/621 Support + Python10 Support + DependABot update

Open jax-b opened this issue 1 year ago • 4 comments

  • Updated to python3.10 to follow Ubuntu LTS
  • Added Support for dependencies defined in pyproject.toml as noted in PEP631/621
  • Updated Python Packages to fix issues with python3.10 and any latent security scanner issues
  • This references the issue i open to add support for PEP631 #819

jax-b avatar Feb 12 '24 00:02 jax-b

Hey @jax-b - thanks a lot for submitting your work, unfortunately the CI is failing at the moment, looks like the Python setup is broken (wrong version).

While bump to Python3.10 will definitely happen at some point, at the moment Python3.9 runtime on AWS Lambda still doesn't have a deprecation date, so I think it would be better to stick to this version, at least until it gets a deprecation date. Alternatively, we can have a matrix with multiple Python versions but that might be cumbersome to support with python packages support.

pgrzesik avatar Feb 24 '24 23:02 pgrzesik

I saw 😞 . the python version number is being interpreted as a float rather then a string. I have a fix already for it. There is another issue that im working on fixing as well. multiple requirements are coming in on the same line with commas rather then as new lines

jax-b avatar Feb 24 '24 23:02 jax-b

While 3.9 is supported by AWS it would probably be good to go to at lease 3.11 if not 3.12 to match the EOL dates set by PSF. (3.10 was easy for me as i follow the latest LTS branch of ubuntu). 3.11 is about to fall to security updates only.

jax-b avatar Feb 25 '24 14:02 jax-b