python setup.py regen_pot_file && git diff --quiet || git commit -m 'Update pot file' -- po/picard.pot
And push changes to main remote repository, see po/README.md for details about translations
From the local repository:
git fetch $PICARD_REMOTE && git checkout master
git reset --hard $PICARD_REMOTE/master && git clean -f -d
find . -type f -name '*.pyc' -exec rm -f {} \;
git tag "before-release-$PICARD_VERSION" --force
This shouldn't be needed, but better to check before releasing
git ls-tree --full-tree -r HEAD --name-only |while read f; do sed -i '1s/^\xEF\xBB\xBF//' "$f"; done && git diff --quiet || git commit -a -m 'Remove nasty BOM bytes'
python setup.py update_constants && git diff --quiet || git commit -a -m 'Update constants' -- picard/const/*.py
TODO: explain how
Edit picard/__init__.py
and set new version tuple
Run tests:
python setup.py test
Commit changes!
git tag -s "$PICARD_RELEASE_TAG" -m "Release $PICARD_VERSION"
Stable release tags have the following format: release-#.#.#
Example: release-2.1.0
Edit picard/__init__.py
and set new dev version tuple.
Run tests:
python setup.py test
Commit changes!
git push "$PICARD_REMOTE" master:master
git push "$PICARD_REMOTE" tag "$PICARD_RELEASE_TAG"
git tag -d "release-$PICARD_VERSION"
git reset --hard "before-release-$PICARD_VERSION"
git push "$PICARD_REMOTE" :"$TAG"
git push "$PICARD_REMOTE" "before-release-$PICARD_VERSION":master --force