Skip to content
Michael Wetter edited this page Mar 29, 2016 · 14 revisions

To update the BuildingsPy python package, proceed as follows:

  1. In BuildingsPy/setup.py, update the version number in the section

    setup(
    name = "buildingspy",
    version = "1.1.0",
  2. Update the file BuildingsPy/CHANGES.txt, in particular, include the release date as

    BuildingsPy Changelog
    ---------------------
    
    Version 1.1.0, July 26, 2012 -- Release 1.1
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    - Added ...
  3. In doc/source/conf.py, update the version numbers on the lines

    # The short X.Y version.
    version = "1.1"
    # The full version, including alpha/beta/rc tags.
    release = "1.1.1"
  4. Set environment variables and delete temporary files by running from BuildingsPy the commands

    export PYTHONPATH=``pwd``
    find . \( -name '\*~' -or -name '.DS\_Store' \) -delete
  5. Run

    make dist
    postBuildingsPyToWeb.sh
    python setup.py sdist register
  6. Upload the .egg, .zip and .tar.gz from dist to https://pypi.python.org/pypi/buildingspy

  7. Update http://simulationresearch.lbl.gov/modelica/Download

  8. Tag the version in git using

    git tag -a v1.4.0 -m "Tagged version 1.4.0"
    git push origin --tags
Clone this wiki locally