has2k1 / plotnine

A Grammar of Graphics for Python

Home Page:https://plotnine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Release: plotnine-0.13.3

has2k1 opened this issue · comments

  • Upgrade key dependencies if necessary

  • Upgrade code quality checkers

    • pre-commit

      pre-commit autoupdate
      
    • ruff

      pip install --upgrade ruff
      
    • pyright

      pip install --upgrade pyright
      PYRIGHT_VERSION=$(pyright --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
      python -c "
      import pathlib, re
      f = pathlib.Path('pyproject.toml')
      f.write_text(re.sub(r'pyright==[0-9]+\.[0-9]+\.[0-9]+', 'pyright==$PYRIGHT_VERSION', f.read_text()))
      "
  • Run tests and coverage locally

    git switch main
    git pull origin/main
    make typecheck
    make test
    make coverage
    • The tests pass
    • The coverage is acceptable
  • The latest online documentation builds, be sure to browse

  • Create a release branch

    git switch -c release-v0.13.3
  • Tag a pre-release version. These are automatically deployed on testpypi

    git tag -as v0.13.3a1 -m "Version 0.13.3a1"  # e.g. 0.13.3a1, 0.13.3b1, 0.13.3rc1
    git push -u origin release-v0.13.3
  • Update changelog

    nvim doc/changelog.qmd
    git commit -am "Update changelog for release"
    git push
    • Update / confirm the version to be released
    • Add a release date
    • The GHA tests pass
  • Tag final version and release

    git tag -as v0.13.3 -m "Version 0.13.3"
    git push
  • Update main branch

    git switch main
    git merge --ff-only release-v0.13.3
    git push
  • Create conda release

    • Copy SHA256 hash. Click view hashes, for the Source Distribution (.tar.gz).

    • Update plotnine-feedsock

      cd ../plotnine-feestock
      git switch main
      git pull upstream main
      git switch -c v0.13.3
      nvim recipe/meta.yml
      git commit -am  "Version 0.13.3"
      git push -u origin v0.13.3
    • Create a PR

    • Complete PR (follow the steps and merge)

  • Add zenodo badge to the changelog.