##// END OF EJS Templates
make-release: remove instruction about updating copyright/contributors...
make-release: remove instruction about updating copyright/contributors The copyright script is now run by the script itself, so a warning to run it is no longer necessary.

File last commit:

r7137:1a3af9e0 stable
r7137:1a3af9e0 stable
Show More
make-release
70 lines | 2.1 KiB | text/plain | TextLexer
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507 #!/bin/bash
set -e
set -x
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Install/verify tools needed for building and uploading stuff"
pip install --upgrade -e .
pip install --upgrade Sphinx Sphinx-PyPI-upload
echo "Cleanup and update copyrights ... and clean checkout"
scripts/whitespacecleanup.sh
scripts/update-copyrights.py
hg up -cr .
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Make release build from clean checkout in build/"
rm -rf build dist
hg archive build
cd build
echo "Check MANIFEST.in"
sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MANIFEST.in | grep -v '^node_modules/bootstrap\|^kallithea/public/css/style.css' | xargs ls -lad
echo "Build dist"
python2 setup.py compile_catalog
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507 python2 setup.py sdist
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Verify VERSION from kallithea/__init__.py"
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507 namerel=$(cd dist && echo Kallithea-*.tar.gz)
namerel=${namerel%.tar.gz}
version=${namerel#Kallithea-}
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 ls -l $(pwd)/dist/$namerel.tar.gz
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507 echo "Releasing Kallithea $version in directory $namerel"
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Verify dist file content"
! tar tf dist/Kallithea-$version.tar.gz | grep "$namerel/node_modules/bootstrap/\$"
echo "Verify docs build"
python2 setup.py build_sphinx # not used yet ... but we want to make sure it builds
cat - << EOT
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 Now, make sure
* all tests are passing
* release note is ready
* announcement is ready
* source has been pushed to https://kallithea-scm.org/repos/kallithea
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 EOT
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Verify current revision is tagged for $version"
hg log -r "'$version'&." | grep .
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507
echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: "
read answer
[ "$answer" = "pypi" ]
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Upload docs to pypi"
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507 # See https://wiki.python.org/moin/PyPiDocumentationHosting
python2 setup.py build_sphinx upload_sphinx
xdg-open https://pythonhosted.org/Kallithea/
xdg-open http://packages.python.org/Kallithea/installation.html
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136 echo "Rebuild readthedocs for docs.kallithea-scm.org"
Mads Kiilerich
release: add scripts/make-release for automation of the release process
r5507 xdg-open https://readthedocs.org/projects/kallithea/
curl -X POST http://readthedocs.org/build/kallithea
xdg-open https://readthedocs.org/builds/kallithea/
xdg-open http://docs.kallithea-scm.org/en/latest/ # or whatever the branch is
Thomas De Schampheleire
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
r7136
extraargs=${EMAIL:+--identity=$EMAIL}
python2 setup.py sdist upload --sign $extraargs
xdg-open https://pypi.python.org/pypi/Kallithea