-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Create release_autoversioning.py #492
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ian Hunter <ianfhunter@gmail.com>
Signed-off-by: Ian Hunter <ianfhunter@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth considering. View full project report here.
Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Signed-off-by: Ian Hunter <ianfhunter@gmail.com>
Signed-off-by: Ian Hunter <ianfhunter@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Worth considering though. View full project report here.
import configparser | ||
|
||
def update_version(path, find, replace): | ||
with open(path, 'r') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnicodeDecodeError
can occur if the content of the file has characters incompatible with the OS's default encoding. Python uses the OS's default text encoding on the content because encoding
is not set. Explained here.
Quality Gate passedIssues Measures |
Description
How Has This Been Tested
Change Type
Checklist