-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Review release process docs for PR-based releases #2499
Comments
@MartinThoma Apparently, we are still missing the permission to create tags (at least through SSH, pushing to custom branches on the repository works correctly):
@pubpub-zz For your info. |
I think we should change the process a bit. I think we can and should create release tags automatically from the release commit. That makes it easier, less prone to inconsistencies, and multiple contributors can decide on making a release together. |
I am generally open to improving this part of the process if it means that it simplifies releasing. Generally, I am planning to rework the releasing docs anyway to reflect the PR-based process and document some of the pitfalls I experienced when doing the process the first time. |
The TriggerI just saw this and e can use So something like:
The tagWe can create a I'm not sure if it would also work to have just a shell command 🤔 I would prefer that - less dependencies meaning less that could break / be abused. Putting it together
|
I'm trying it here: https://github.com/MartinThoma/sample-repo |
I think I found a way that works: https://github.com/MartinThoma/sample-repo/tags :-) |
@stefan6419846 Now that #2500 is merged, do you think this issue can be closed? |
@MartinThoma We at least should fix (2) and (7) in my opinion, id est review #2492 and #2554. The remaining adjustments are part of #2553. |
https://pypdf.readthedocs.io/en/stable/dev/releasing.html#how-is-it-done cannot be applied directly when not having direct write access to the main branch. The following comments document what I did and observed:
Run
python make_release.py
Adapt the three generated files. For version 4.1.0, DEV: Fix changelog generator regarding whitespace and handling of "Other" group #2492 had to be mitigated.
Create new branch:
git checkout -b release_4.1.0
Commit the changes:
git commit --file RELEASE_COMMIT_MSG.md
(Do not use the-e
parameter here - this will open the editor and might strip the headings due to the lines starting with#
being interpreted as comments.)Verify the commit message:
git log
Create PR and ask for review
The PR title check is failing - needs some adjustments
Merge the PR, ensuring that the title only is
REL: 4.1.0
and the body contains the correct message.git checkout main && git pull
Create the tag:
git tag 4.1.0 --file RELEASE_TAG_MSG.md
(No-s
due to not signing it.)Verify the tag message:
git show 4.1.0
git config core.commentChar ";"
before creating the tag, as otherwise the#
lines would disappear again ...git tag -d 4.1.0
Push the tag:
git push --tags
- Permissions not sufficientCI should do the remaining steps of creating the release and uploading the release to PyPI
The text was updated successfully, but these errors were encountered: