[GRASS-git] [OSGeo/grass] 94bcea: Move g.download.location to core, create grass.uti...
Vaclav Petras
noreply at github.com
Mon Jul 12 09:51:23 PDT 2021
Branch: refs/heads/master
Home: https://github.com/OSGeo/grass
Commit: 94bcea4216cdabcd18dbe5dc4686e38d4d3800de
https://github.com/OSGeo/grass/commit/94bcea4216cdabcd18dbe5dc4686e38d4d3800de
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2021-07-12 (Mon, 12 Jul 2021)
Changed paths:
M .github/workflows/test_thorough.bat
M .github/workflows/test_thorough.sh
M gui/wxpython/startup/locdownload.py
M python/grass/Makefile
M python/grass/grassdb/checks.py
A python/grass/utils/Makefile
A python/grass/utils/__init__.py
A python/grass/utils/download.py
M scripts/Makefile
A scripts/g.download.location/Makefile
A scripts/g.download.location/g.download.location.html
A scripts/g.download.location/g.download.location.py
Log Message:
-----------
Move g.download.location to core, create grass.utils lib (#1715)
* This moves g.download.location from addons to core to avoid need to install it in every CI.
* g.download.location partially matches functionality of download in Data tab, so the module is important for feature parity.
* Shared code is now in new subpackage of grass, grass.utils (original code is from g.extension which still has its own copy).
* grass.utils uses empty init file. Preferred import is (as of now) importing individual functions from individual modules.
* Make location name optional for is_location_valid function to support cases when the directory is location.
* Use pathlib in interface (return value) and for better suffix/extension checks.
More information about the grass-commit
mailing list