[GRASS-git] [OSGeo/grass] 680537: grass.script: Make grass_path keyword only in init...

Vaclav Petras noreply at github.com
Wed May 8 20:34:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 6805375e1bfd5860a622cead47f0844f66a9c49a
      https://github.com/OSGeo/grass/commit/6805375e1bfd5860a622cead47f0844f66a9c49a
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M python/grass/script/setup.py

  Log Message:
  -----------
  grass.script: Make grass_path keyword only in init (#3689)

This makes the grass_path parameter a keyword-only argument (PEP 3102). While this technically breaks the 8.0 API for 8.4, the documentation only shows grass_path as a keyword argument, grass_path is required to be a keyword argument when location and mapset are omitted, and given the automation triggered by grass_path=None, any usage of grass_path is likely limited (and the usage would have to be as positional argument to trigger the incompatibility).



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list