seawolf2357 commited on
Commit
45fdeb6
·
verified ·
1 Parent(s): 38bc84f

Add release-hooks

Browse files
release-hooks/prerelease.after/10-docs-build ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ set -e
3
+ echo '* docs: Building documentation...'
4
+ bin/docs-build
5
+ echo '* docs: Check documentations in build/docs/.'
release-hooks/prerelease.before/0-docs-update-po ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ set -e
3
+ echo '* docs: Updating PO files...'
4
+ bin/docs-update-po
5
+ echo '* docs: Check if there are translations to update in PO files.'
release-hooks/release.after/10-test-pypi ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/sh
2
+ set -e
3
+ echo '* download/installing package...'
4
+ bin/test-pypi
release-hooks/release.after/20-docs-upload ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ echo 'Do you wish to upload the documentation to http://pythonhosted.org/pyhwp?'
5
+ select yn in 'Yes' 'No'; do
6
+ case $yn in
7
+ Yes ) break;;
8
+ No ) exit;;
9
+ esac
10
+ done
11
+
12
+ echo '* docs: Uploading to http://pythonhosted.org/pyhwp...'
13
+ bin/docs-upload
14
+ echo '* docs: Check documentations at http://pythonhosted.org/pyhwp.'
release-hooks/release.before/20-upload-to-testpypi ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # exit if any statement returns non-true return value
4
+ set -e
5
+
6
+ # exit on uninitialized variable
7
+ set -u
8
+
9
+ bin/test-sdist
10
+ bin/test-upload