-
Notifications
You must be signed in to change notification settings - Fork 41
Release preparation script #231
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
Open
gilles-peskine-arm
wants to merge
18
commits into
Mbed-TLS:main
Choose a base branch
from
gilles-peskine-arm:prepare-release-py
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
871351b
Create a release preparation script
gilles-peskine-arm b14c835
Fix absolute path in generated file
gilles-peskine-arm 8036ce2
Silence warning about timezone in datetime object
gilles-peskine-arm 7ab81a0
Create release archive
gilles-peskine-arm 9d6f4e5
Release preparation: assemble changelog
gilles-peskine-arm a4e74e5
Recognize an empty version section
gilles-peskine-arm ae1df4a
Release preparation: bump version
gilles-peskine-arm 5a4e715
Create draft release notes
gilles-peskine-arm 49baddc
Instantiate all steps before starting to run one
gilles-peskine-arm 7c09b38
Step.edit_file now reports whether it made a change
gilles-peskine-arm 346c770
Error out if an invalid step name is specified
gilles-peskine-arm 97bc6b7
Better error message if there are uncommitted changes
gilles-peskine-arm ab2b645
files_are_clean: also consider changes that might be in the index
gilles-peskine-arm 08b9440
Change the version argument to --release-version/-r
gilles-peskine-arm af46dc7
Add short options for common options
gilles-peskine-arm 887c4f7
Add --only-step option (short: -s)
gilles-peskine-arm d1e9016
Put default artifact directory under the source tree
gilles-peskine-arm ac8ed09
Move git submodule gathering to the Info class
gilles-peskine-arm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why not simply strip it using relpath?
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.
Why do all the work to construct and deconstruct a path when we already know that the end result must be
'framework'? The path is where the files are located relative to the root of the project, not related to the current directory.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.
How about a compromise of 'os.path.join('./', 'framework')' ?
Uh oh!
There was an error while loading. Please reload this page.
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.
That's still wrong, isn't it? It would be
.\frameworkon Windows, AFAIK. But we want a reproducible path. What's wrong with writing'framework'when we mean'framework'?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.
(Mind you, there may be other occurrences of
os.path.jointhat need fixing if we want to have the same output on Windows. I haven't gone and fixed those and I don't want to extend the scope here to Windows support.)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.
No please don't :) I doubt we will be spinning windows executors to build a release