Skip to content
Edward Powell edited this page May 10, 2014 · 3 revisions

This is a checklist of things we need to do when a new version is released, for internal reference:

  • Update version number in willie/__init__.py
  • Update version number anywhere else (like where?)
  • Push up to GitHub and make the release there with the latest news
  • Put this in ~/.pypirc:
[distutils]
index-servers =
    pypi

[pypi]
username:embolalia
password:password_goes_here

Then, run this:

# Your username on the willie.dftba.net server
_USERNAME=embo

./setup.py sdist upload --sign && rm ~/.pypirc
export WILLIE_VERSION=$(python -c "import willie; print(willie.__version__)")
ssh $_USERNAME@embolalia.com "mkdir /var/www/willie/$WILLIE_VERSION; rm /var/www/willie/docs; ln -s /var/www/willie/$WILLIE_VERSION/docs /var/www/willie/docs"
ssh $_USERNAME@embolalia.com "cd /var/www/willie/files; wget -O willie-$WILLIE_VERSION.tar.gz https://github.com/embolalia/willie/archive/$WILLIE_VERSION.tar.gz"
cd docs; make html; scp -r build/html $_USERNAME@embolalia.com:/var/www/willie/$WILLIE_VERSION/docs

Then, after you've done that, add -git to the version number, and push it up to GitHub.