Skip to content

Latest commit

 

History

History
97 lines (61 loc) · 2.28 KB

RELEASE.md

File metadata and controls

97 lines (61 loc) · 2.28 KB

Release

Follow these steps to release a new version of spyder-line-profiler.

In the commands below, replace X.Y.Z with the release version when needed.

Note: We use pip instead of conda here even on Conda installs, to ensure we always get the latest upstream versions of the build dependencies.

PyPI and GitHub

You will need to have a local clone of the repo. The following steps supose a repo setup from a fork with and upstream remote pointing to the main spyder-line-profiler repo

  • Close milestone on Github

  • Update local repo

    git restore . && git switch master && git pull upstream master
  • Clean local repo

    git clean -xfdi
  • Install/upgrade Loghub

    pip install --upgrade loghub
  • Update CHANGELOG.md with Loghub: loghub spyder-ide/spyder-line-profiler --milestone vX.Y.Z

  • git add and git commit with "Update Changelog"

  • Update __version__ in __init__.py (set release version, remove dev0)

  • Create release commit

    git commit -am "Release X.Y.Z"
  • Update the packaging stack

    python -m pip install --upgrade pip
    pip install --upgrade --upgrade-strategy eager build setuptools twine wheel
  • Build source distribution and wheel

    python -bb -X dev -W error -m build
  • Check distribution archives

    twine check --strict dist/*
  • Upload distribution packages to PyPI

    twine upload dist/*
  • Create release tag

    git tag -a vX.Y.Z -m "Release X.Y.Z"
  • Update __version__ in __init__.py (add .dev0 and increment minor)

  • Create Back to work commit

    git commit -am "Back to work"
  • Push new release commits and tags to master

    git push upstream master --follow-tags
  • Create a GitHub release from the tag

Conda-Forge

To release a new version of spyder-line-profiler on Conda-Forge: