Skip to content

Release Steps for django address

Rob Banagale edited this page Jun 28, 2020 · 1 revision

General Steps (Repo release)

Pre-Release

  1. Complete bugs and changes needed for the release

Start and QA Release

  1. git flow release start [version number]
  2. Ensure no stale references to current version, (find across project)
  3. Resolve any unexpected bugs or issues if found
  4. Update readme files to include changes from the release
  5. Update version number in setup.py

Complete the release

  1. git flow release finish [version number] and merge. For required tag use Version [version number]
  2. Push develop
  3. Push master

Draft and publish new release on Github

Pypi release (update version available to pip)

Build Release

  1. Make sure most recent versions of setuptools and wheel and twine are installed:

    python3 -m pip install --user --upgrade setuptools wheel

    python3 -m pip install --user --upgrade twine

  2. Create the distribution build:

    python3 setup.py sdist bdist_wheel

  3. Upload the archives under dist:

    python3 -m twine upload --repository pypi dist/*

    • User __token__ as the user

    • Use private token as password