Set the version number to release:
export VERSION=0.2.0
export D=pyexiv2-$VERSION
Branch to release:
bzr branch lp:pyexiv2 $D
cd $D
Bump the version number: change the value of version_info in src/pyexiv2/__init__.py.
Bump the version number in the Windows installer script: change the value of PYEXIV2_VERSION in win32-installer.nsi.
Commit the changes:
bzr commit -m "Bumped version number to $VERSION."
Update the NEWS file with the changes since the last release:
Commit and push the changes:
bzr commit -m "Updated NEWS."
bzr push lp:~osomon/pyexiv2/$D
Build pyexiv2:
scons
Build the HTML documentation:
scons doc
mv doc/_build doc/html
Create the tarball and sign it:
cd ..
tar cvvjf $D.tar.bz2 $D --exclude-vcs \
--exclude=build --exclude=.doctrees --exclude=.buildinfo \
--exclude=objects.inv --exclude=.sconsign.dblite --exclude=*.pyc
gpg --armor --sign --detach-sig $D.tar.bz2
cd $D
Cross-compile:
./cross-compile.sh
Build the installer and sign it:
makensis win32-installer.nsi
gpg --armor --sign --detach-sig pyexiv2-0.2-setup.exe
The branch for the website is at lp:~osomon/pyexiv2/website.
Merge back the release branch in the master branch and tag it:
cd <local/path/to/master/>
bzr merge lp:~osomon/pyexiv2/$D
bzr commit -m "Merge the $VERSION release."
bzr tag release-$VERSION
bzr push