-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release process with changelog support using scriv
- Loading branch information
Showing
10 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
Empty file.
This file contains 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 @@ | ||
- Add release process with changelog support using scriv |
This file contains 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 @@ | ||
- fix Component.require_one raising a configuration error with strict=False |
This file contains 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,2 @@ | ||
- Adds command `./batou secrets decrypttostdout` to decrypt a secrets file to stdout. | ||
- Useful for integration with git diff using textconv, see documentation for installation instructions. |
This file contains 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,3 @@ | ||
- The error message shown when a batou deployment fails to start due to another | ||
deployment running at the same time, now correctly informs the user that | ||
another deployment is running instead of showing a traceback. (#446) |
This file contains 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 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 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,11 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
cd $(dirname $0) | ||
chmod u+w bin/*ctivate* || true | ||
python3 -m venv . | ||
bin/pip install scriv | ||
|
||
mkdir -p CHANGES.d | ||
exec bin/scriv create --edit |
This file contains 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,41 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
current_branch=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
if [ "$current_branch" != "master" ]; then | ||
set +x | ||
echo | ||
echo | ||
echo "ERROR: can only release from master. We are on $current_branch" | ||
echo | ||
exit 1 | ||
fi | ||
|
||
changes=$(git status --porcelain) | ||
if [ -n "$changes" ]; then | ||
set +x | ||
echo | ||
echo | ||
echo "ERROR: there are changes." | ||
echo | ||
git status | ||
exit 1 | ||
fi | ||
|
||
cd $(dirname $0) | ||
chmod u+w bin/*ctivate* || true | ||
python3 -m venv . | ||
bin/pip install zest.releaser scriv | ||
bin/pip install -e . | ||
|
||
bin/scriv collect | ||
sed -i .orig '/- Nothing changed yet./ { N; d; } ' CHANGES.md | ||
git add -A . | ||
git status | ||
PAGER= git diff --cached | ||
echo "Press enter to commit, Ctrl-C to abort." | ||
read | ||
git commit -m "Prepare changelog for release" | ||
|
||
bin/fullrelease |
This file contains 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