This repository was archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Ticket29294 #332
Open
juga0
wants to merge
10
commits into
torproject:master
Choose a base branch
from
juga0:ticket29294
base: master
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
Ticket29294 #332
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
52b8404
new: Add gitchangelog configuration file
juga0 269c99b
new: Add gitchangelog template
juga0 2a7e672
new: Convert changelog to rst
juga0 0f7fc57
new: scripts: Add script to help new releases.
juga0 5046e2f
new: docs: Include script on how to release
juga0 e54f087
fixup! new: Convert changelog to rst
juga0 d7a17c3
fixup! new: Add gitchangelog configuration file
juga0 3c329a2
fixup! new: scripts: Add script to help new releases.
juga0 6d3879c
fixup! fixup! new: scripts: Add script to help new releases.
juga0 c1d0263
fixup! fixup! new: scripts: Add script to help new releases.
juga0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/usr/bin/env python3 | ||
| """Script to help release new versions.""" | ||
| import sys | ||
|
|
||
|
|
||
| def main(args): | ||
| version = args[0] | ||
| print("# This script will guide you to create a new release, but it will " | ||
| "not do anything.") | ||
| print("# ================================================================") | ||
| print("# Install gitchangelog in a virtualenv:") | ||
| print("pip install gitchangelog") | ||
| print("# Create a tag so that gitchangelog will create the new section " | ||
| "with the correct new tag:") | ||
| print("git tag {}".format(version)) | ||
| print("# Update the changelog:") | ||
| print("gitchangelog") | ||
| print("# Edit the changelog!") | ||
| print("# Remove the tag:") | ||
| print("git tag -d {}".format(version)) | ||
| print("# Replace the new version in __init__.py:") | ||
| print("# Commit __init__.py and CHANGELOG.rst with Release message:") | ||
| print("git commit -a -m 'Release {}'".format(version)) | ||
| print("# Create the final tag and sign it:") | ||
| print("git tag -s v{}".format(version)) | ||
| print("# Push now so that the Github tarball will have the correct tag.") | ||
| print("git push") | ||
| print("# Obtain Github tarball:") | ||
| print("torsocks wget " | ||
| "https://github.com/torproject/sbws/archive/v{}.tar.gz") | ||
| print("# Create the tarball signature:") | ||
| print("gpg --default-key F305447AF806D46B --detach-sign v{}.tar.gz " | ||
| "--output v{}.tar.gz.asc") | ||
| print("# Upload the signature manually to Github.") | ||
| print("# Now bump to the next development version:") | ||
| print("# Replace the version in __init__.py with the next version -dev0") | ||
| print("# Commit the development version:") | ||
| print("git commit -a -m 'Bump to version X'") | ||
| print("# Done!") | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main(sys.argv[1:]) | ||
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.
Uh oh!
There was an error while loading. Please reload this page.