Skip to content

Commit

Permalink
Release test script and checklist.
Browse files Browse the repository at this point in the history
  • Loading branch information
cortesi committed Jan 19, 2014
1 parent 453075c commit cabd848
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
25 changes: 25 additions & 0 deletions release/release-checklist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

- Bump the version number:

mitmproxy/libmproxy/version.py
mitmproxy/requirements.txt
netlib/netlib/version.py
netlib/requirements.txt
pathod/netlib/version.py
pathod/requirements.txt


- Render the docs:
cshape doc-src doc

- Run the test release, make sure the output is sensible
./release/test-release

- Build sdist packages:
python ./setup.py sdist

- Test the packages by installing in a virtualenv:
- cd dist
- tar -xzvf pkgfile.tgz
- virtualenv venv

37 changes: 37 additions & 0 deletions release/test-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

MITMPROXY_DIR=~/mitmproxy/mitmproxy
NETLIB_DIR=~/mitmproxy/netlib
PATHOD_DIR=~/mitmproxy/pathod
DST=/tmp/mitmproxy_release

rm -rf $DST
mkdir -p $DST

cd $NETLIB_DIR
echo "Creating netlib source distribution..."
python ./setup.py -q sdist --dist-dir $DST

echo "Creating mitmproxy source distribution..."
cd $MITMPROXY_DIR
python ./setup.py -q sdist --dist-dir $DST

echo "Creating pathod source distribution..."
cd $PATHOD_DIR
python ./setup.py -q sdist --dist-dir $DST

echo "Creating virtualenv for test install..."
virtualenv -q $DST/venv

echo "Installing netlib..."
$DST/venv/bin/pip -q install --download-cache ~/.pipcache $DST/netlib*
echo "Installing pathod..."
$DST/venv/bin/pip -q install --download-cache ~/.pipcache $DST/pathod*
echo "Installing mitmproxy..."
$DST/venv/bin/pip -q install --download-cache ~/.pipcache $DST/mitmproxy*

echo "Running binaries..."
$DST/venv/bin/mitmproxy --version
$DST/venv/bin/mitmdump --version
$DST/venv/bin/pathod --version
$DST/venv/bin/pathoc --version

0 comments on commit cabd848

Please sign in to comment.