[GRASS-git] [OSGeo/grass] 46cbb3: version: Reduce usage of the current version numbe...

Vaclav Petras noreply at github.com
Sun Aug 28 04:18:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 46cbb3803919aade8f2bb611c3daaaf7766659a6
      https://github.com/OSGeo/grass/commit/46cbb3803919aade8f2bb611c3daaaf7766659a6
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M INSTALL
    M mswindows/crosscompile.sh
    M python/grass/gunittest/multirunner.py
    M python/grass/script/setup.py

  Log Message:
  -----------
  version: Reduce usage of the current version number (#2340)

When the current version is used, it needs to be updated usually every minor release. This reduces how much the current version is used where it is not essential.

* When in variable name, use more general variable name.
* When in comment or doc, use '<version>' or VV when no specific example is needed.
* When a specific version is need for an example, use 3.y.z which is obviously an example.
* When not essential in the context, remove it completely.
* Use build-time replacement for version on macOS.
* Use short variable name in Python example to keep the lines short.




More information about the grass-commit mailing list