run the unit tests.
./admin/runtests
run the accepttests. It's important that you run the accepttests with a non-relative command line (stupid bug that still isn't fixed. Too easy to work around :)). I use:
WEBBROWSER='galeon -n' IRCCLIENT=epic4 ~/Projects/Twisted/admin/accepttests -b
run the pre-release tests, on pyramid. When `less' comes up, check for errors.
./admin/prereleasetests
If you're doing an alpha1, make sure debian/changelog has been updated to show the prior full-release. e.g., if doing 1.1.2alpha1, make sure 1.1.1 is in debian/changelog, or else your new .deb will have a broken Version.
If you're doing an rcN > 1, then you need to base the release on the previous RC. You do that with something like this:
cvs -dradix@cvs.twistedmatrix.com:/cvs co -r release-X_X_XrcN Twisted mv Twisted Twisted.CVS cd Twisted.CVS # the following files should be updated on _every_ RC cvs up -A README ChangeLog admin/twisted.spec twisted/copyright.py # run cvs up -A for all other files which contained bugs and should be # updated for this RC cvs up -A $OTHER_FILES_WHICH_SHOULD_BE_UPDATED cd ..
After doing this, use the first command below. If you're doing a release from HEAD (i.e., an alpha or rc1), use the second command.
If you are working from a CVS version of Twisted which you want to release,
make sure it is named Twisted.CVS
, and in the
directory immediately
above it there is nothing else (that can be done via symlinks), and run:
./Twisted.CVS/admin/release-twisted -V $VERSION -o $LASTVERSION \ --release=/twisted/Releases --upver --tag --exp --dist --docs \ --balls --rel --deb --debi
If you want to release the latest CVS version of Twisted, have a reasonably recent checkout of Twisted in $SOMEWHERE, and in an empty directory do
$SOMEWHERE/admin/release-twisted -V $VERSION -o $LASTVERSION --checkout \ --release=/twisted/Releases --upver --tag --exp --dist --docs --balls \ --rel --deb --debi
Run win32/bdist_wininst.bat.
Restart the main Twisted web server:
sudo /etc/init.d/twisted-web stop sudo /etc/init.d/twisted-web start
If necessary (only when distributed web changes protocols; this is very rare any more), restart snibril's server.
su jh; ~jh/bin/stop; ~jh/bin/start; exit
Upload to Sourceforge
$SOMEWHERE/admin/release-twisted -n $SFNAME -V $VERSION --sourceforge \ --release=/twisted/Releases
deploy changes:
cd /var/www/WebSite/twistedmatrix.com ./generate.sh
This is usually done by Itamar.
All releases (alpha, RC, stable)
Stable