Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 1.84 KB

RELEASE.md

File metadata and controls

75 lines (54 loc) · 1.84 KB

Releasing

Here's how to issue a new release:

  1. Bump the version number in uaa_client/__init__.py.

  2. Move the "unreleased" section to a new version entry in CHANGELOG.md.

  3. From the project root, install dependencies and run automated tests:

    tox
  4. Run the following to ensure that everything builds and installs OK in an isolated environment:

    # remove existing builds
    rm -rf dist build
    
    # build source distribution
    python -m build --sdist
    
    # install dependencies
    python -m venv venv
    source venv/bin/activate
    python -m pip install .
    
    # start up docker environment for manual tests
    python test.py manualtest

    You should be able to visit http://localhost:8000 and log in as [email protected] without any problems.

  5. Commit and push your changes with a commit message like "Bump version to v1.0.4."

  6. Tag your version and push it to GitHub. For instance, if you're releasing v1.0.4, do:

    git tag -a v1.0.4
    git push origin v1.0.4

    When running git tag, you'll be prompted for a tag message. Consider copy-pasting the version notes from CHANGELOG.md for this, as whatever you enter will show up on the GitHub releases page.

  7. After you push, the CI pipeline will automatically create a GitHub release for the tag.

  8. If you haven't already done so, create a ~/.pypirc file with the following content:

    [distutils]
    index-servers =
       pypi
       cg-django-uaa
    
    [pypi]
    username = __token__
    password = <your API token>
    
  9. Run python -m twine upload dist/*. The new release should now be visible on PyPI.