Skip to content

Conversation

@LucasRoesler
Copy link
Member

Update the default python 3 version to 3.11. Additionally, add a build arg for PYTHON_VERSION and WATCHDOG_VERSION so make it easy for developers to pin the python version that they need for their project.

The docs are updated with instructions about pinning the python version.

Motivation and Context

  • I have raised an issue to propose this change (required)
  • My issue has received approval from the maintainers or lead with the design/approved label
    We were discussing this during a Community Call in the context of AWS lambda and their slow upgrade cycle for python. We realized we also needed to update our templates.

How Has This Been Tested?

This was manually tested and working with the default "echo" function for each template.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Update the default python 3 version to 3.11. Additionally, add a build
arg for PYTHON_VERSION and WATCHDOG_VERSION so make it easy for
developers to pin the python version that they need for their project.

The docs are updated with instructions about pinning the python version.

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
@alexellis
Copy link
Member

Looks really good, could we drop WATCHDOG_VERSION for this version please?

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
@LucasRoesler
Copy link
Member Author

done

Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for amending the README too 👍

Perhaps we need a similar example or a note at https://docs.openfaas.com/cli/templates/#python-3-templates

@alexellis alexellis merged commit 0cf62f9 into openfaas:master May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants