Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 1.61 KB

RELEASING.md

File metadata and controls

70 lines (50 loc) · 1.61 KB

Release Process

Signing key: https://lgrahl.de/pub/pgp-key.txt

  1. Check the code:

    flake8 .
    isort -c . || isort -df
    rm -rf .mypy_cache && MYPYPATH=${PWD}/stubs mypy saltyrtc examples
    py.test
  2. Set variables:

    export VERSION=<version>
    export GPG_KEY=3FDB14868A2B36D638F3C495F98FBED10482ABA6
  3. Update version number in saltyrtc/server/__init__.py and CHANGELOG.rst, also update the URL with the corresponding tags.

    Run python setup.py checkdocs.

  4. Do a signed commit and signed tag of the release:

git add saltyrtc/server/__init__.py CHANGELOG.rst
git commit -S${GPG_KEY} -m "Release v${VERSION}"
git tag -u ${GPG_KEY} -m "Release v${VERSION}" v${VERSION}
  1. Build source and binary distributions:

    rm -rf build dist saltyrtc.server.egg-info .mypy_cache
    find . \( -name \*.pyc -o -name \*.pyo -o -name __pycache__ \) -prune -exec rm -rf {} +
    python setup.py sdist bdist_wheel
  2. Sign files:

    gpg --detach-sign -u ${GPG_KEY} -a dist/saltyrtc.server-${VERSION}.tar.gz
    gpg --detach-sign -u ${GPG_KEY} -a dist/saltyrtc.server-${VERSION}*.whl
  3. Upload package to PyPI and push:

    twine upload "dist/saltyrtc.server-${VERSION}*"
    git push
    git push --tags
  4. Create a new release on GitHub.

  5. Push a Docker file to the ci/docker-builds branch (and remove old images, if desired).

  6. Prepare CHANGELOG.rst for upcoming changes:

`Unreleased`_ (YYYY-MM-DD)
--------------------------
  1. Pat yourself on the back and celebrate!