Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support build arg to pin the python3 version #304

Conversation

LucasRoesler
Copy link
Member

Add a build arg to the python3 templates so that developers can pin the python version.

Motivation and Context

  • I have raised an issue to propose this change (required)

Relates to openfaas/python-flask-template#67 and keeps the Python templates consistent.

How Has This Been Tested?

Manually tested with the default "echo" function

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)
  • Version change (see: Impact to existing users)

Impact to existing users

None, the current templates are equivalent and track the default latest python3 tag, the only change is the support to pin it to a specific tag via a build arg.

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.

Add a build arg to the python3 templates so that developers can pin the
python version.

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

I don't know why the CI failed, i can't replicate it locally

@LucasRoesler
Copy link
Member Author

@alexellis i still can't reproduce the CI error, i have no idea what is wrong. Do you?

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.

Approved

@alexellis alexellis merged commit f1bbf94 into openfaas:master May 10, 2023
@alexellis
Copy link
Member

From what I can see, it's unrelated to your change, so I'll get this merged now.

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.

None yet

2 participants