Skip to content

configure: update to latest config.guess and config.sub#6

Open
github-actions[bot] wants to merge 2166 commits intomasterfrom
periodic/update-configure
Open

configure: update to latest config.guess and config.sub#6
github-actions[bot] wants to merge 2166 commits intomasterfrom
periodic/update-configure

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jan 3, 2024

This updates config.guess and config.sub to their latest versions.
If the two files are deleted in this PR, please check the logs of the workflow here:
Workflow run summary

Automated changes by create-pull-request GitHub action

@github-actions github-actions bot force-pushed the periodic/update-configure branch from 6dde1e1 to 5936025 Compare February 7, 2024 10:35
@github-actions github-actions bot force-pushed the periodic/update-configure branch from 0e6b2b8 to 5c99be3 Compare March 6, 2024 10:37
@github-actions github-actions bot force-pushed the periodic/update-configure branch from d288976 to 39441b0 Compare April 3, 2024 10:35
@github-actions github-actions bot force-pushed the periodic/update-configure branch from c0ed318 to e2c6fd7 Compare May 1, 2024 10:38
@github-actions github-actions bot force-pushed the periodic/update-configure branch from e2c6fd7 to f547ed5 Compare August 7, 2024 10:38
@github-actions github-actions bot force-pushed the periodic/update-configure branch from f547ed5 to 35ebcb3 Compare November 6, 2024 10:41
ShubhamDesai and others added 17 commits June 24, 2025 11:16
…eo#5938)

- Added translation comments for context on the units
- Made strings reorderable for translation
A few strings were flagged by when running xgettext, mentioning that format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.

- Also shoved in fixes of some typos encountered during that search.


* i18n: Replace strings constructed by parts with complete strings

* i18n: Add translation comments to units

* i18n: Make strings reorderable for translation

A few strings were flagged by when running xgettext, mentioning that format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.

* docs: Fix various typos
This add handler, stderr, and env to grass.script.handle_errors. This allows construction of better exception message and calling g.message with grass.script.fatal when global environment is not used. Otherwise, it follows the same rules as error passed with the explicit kwargs dict parameter. Using stderr and handler to reduce confusion with errors. The term errors is name of the type of handling in grass.script.handle_errors, but also the error messages in CalledModuleError.

It also reads env from kwargs which will make grass.script.fatal with g.message work with run_command and others which call the function without knowing all the parameters passed by the caller.

---------

Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
Instead of raising a ScriptError, accept a leading dash for the flags parameter in run_command family of functions. While no dash is the best practice in Python, and therefore no examples or documentation are changed, leading dash is required in the command line and appears in documentation and messages, so allowing it in Python makes it little easier on the user.

In command line, leading dash is required for a group a flag letters which would be the most typical use of multiple flags. Since this requirement is not going away - it is part of the command line syntax itself, we ease the transition between the two environments by supporting the leading dash in Python. Dashes inside the flags string, including space-separated flag characters with dashes, are not supported because that would basically mean processing the space separated command line syntax (trivial to process in this case, but does go too far from Python list of flag letters into full command line syntax). Even with a leading dash, the code looks sufficiently like Python.

In documentation and messages (typically warnings or errors), we use mix of standalone character (possibly in single or double quotes) and a dash followed by a character. While it may be worth polishing this across the documentation and code, and perhaps going with characters only (because they apply in both command line and Python), the command line examples will always have dashes, so supporting the dash for copy-pasting scenarios would be nice. (The new generated Python documentation for tools does not include the dashes, so it supports more doing the right thing - characters only, but command line examples are currently prevalent and will always be preset.)
* CI(i18n): Disable updating .po files

Updating po files can be done by Weblate. This makes less review of super heavy PRs when updating strings; only the template files will be submitted to the PR.

* CI(i18n): Change schedule to once per week at 15:32 UTC
Co-authored-by: echoix <27212526+echoix@users.noreply.github.com>
Translated using Weblate (Swedish)

Currently translated at 100.0% (3281 of 3281 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (10019 of 10019 strings)

Translated using Weblate (Swedish)

Currently translated at 100.0% (1842 of 1842 strings)

Translated using Weblate (French)

Currently translated at 90.6% (1669 of 1842 strings)

Translated using Weblate (French)

Currently translated at 30.1% (3017 of 10023 strings)

Translated using Weblate (French)

Currently translated at 88.4% (2903 of 3281 strings)

Translated using Weblate (French)

Currently translated at 90.5% (1668 of 1842 strings)

Translated using Weblate (French)

Currently translated at 30.0% (3015 of 10023 strings)

Translated using Weblate (French)

Currently translated at 29.6% (2976 of 10022 strings)

Translated using Weblate (French)

Currently translated at 29.6% (2972 of 10021 strings)

Translated using Weblate (French)

Currently translated at 90.3% (1664 of 1842 strings)

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.




Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grasslibs/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grasslibs/fr/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grasslibs/sv/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grassmods/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grassmods/fr/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grassmods/sv/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grasswxpy/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grasswxpy/fr/
Translate-URL: https://weblate.osgeo.org/projects/grass-gis/grasswxpy/sv/
Translation: GRASS GIS/grasslibs
Translation: GRASS GIS/grassmods
Translation: GRASS GIS/grasswxpy

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Daniel Nylander <daniel@danielnylander.se>
Co-authored-by: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>
This adds JSON output format to the g.list tool.

* Adds a format option with plain, shell, and json modes for output formatting.
* The flags -m and -t apply only when format=shell.
* The flag -p is deprecated; use format=plain instead.
* The flag -f is also deprecated; use r.info and friends instead.
* Adds tests covering each of the new formats.
* Adds a Python example to the documentation for parsing JSON output.

Closes OSGeo#5848

---------

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
NishantBansal2003 and others added 29 commits August 18, 2025 16:26
…Geo#6229)

The get method on a dictionary allows to specify a default value if not found.
Prepare classes from gunittest to use multiple inheritance and be able to subclass from unittest, that would allow removing any code that we don't override. But before this, sync the code with Python 3.9's unittest implementation's, so the code is more similar and easier to compare. There will be less diff to review, and allows us to see that some newer unittest code effectively still works well with our codebase.

So, apart from copying over code that was copied some time ago, some code that is in a file named "result.py" was moved there, to follow the unittest implementation:
https://github.com/python/cpython/blob/06fc882eac0e59220a7b8b127a1e7babe0055d45/Lib/unittest/result.py#L24-L39

Other useful code to see is:
https://github.com/python/cpython/blob/06fc882eac0e59220a7b8b127a1e7babe0055d45/Lib/unittest/runner.py#L13-L125


* grass.gunittest: Place TestResult in result.py like Python 3.13

* grass.gunittest: Use safe_repr from unittest.util

* grass.gunittest: Use TestCase._formatMessage from unittest, changing output format

* gunittest: Ignore pylint C0103 in TestCase class

* gunittest: Make TestResult classes of runner.py subclasses of grass.gunittest.result.TestResult explicitly

* gunittest: Prepare TextTestResult for multiple inheritance by syncing its implementation with unittest.TextTestResult, following Python 3.9 implementation

* gunittest: Wrap TextTestResult stream with _WritelnDecorator when called by GrassTestProgram to follow unittest's TextTestResult implementation

* gunittest: Make GrassTestRunner stream argument default value None and use sys.stderr if None, like TextTestRunner implementation

* gunittest: Prepare GrassTestRunner to match unittest TextTestRunner implementation

* gunittest: Prepare GrassTestRunner to match unittest TextTestRunner implementation by adding other parameters

* Typo

* gunittest: Sync GrassTestProgram with unittest.TestProgram implementation of Python 3.9
…est (OSGeo#6230)

This PR extracts some typing annotations that will not conflict with my other work on gunittest


* grass.gunittest: Add type annotations for supplementary_files

* grass.gunittest: Add type annotations to gutils.py

* grass.gunittest: Add typing annotations to reporters.py

* grass.gunittest: Add typing annotations to invoker.py

* grass.gunittest: Add typing annotations to utils.py

* grass.gunittest: Use typing.NamedTuple for GrassTestPythonModule

* grass.gunittest: Use typing.NamedTuple for multireport PlotStyle
Adds tests covering different parameters of the tool, although testing only the basics for the outputs.

Uses the new Tools API which reduced handling of stdout and stderr outputs to minimum and does not create need for wrapper functions or temporary variables. Uses SimpleNamespace to pass things from the fixture to the tests.
Uses v.colors.out and grass.tools to test what was set by v.colors.
)

# Fix SyntaxWarning: invalid escape sequence in grass.py

## Problem
Python script generates SyntaxWarning and RuntimeError on Windows:

```
C:\opt\grass\build\output\bin\grass85.py:2095: SyntaxWarning: invalid escape sequence '\o'
  GRASS_PYDIR = os.path.normpath("C:\opt\grass\build\output\lib\grass85\etc\python")
Traceback (most recent call last):
  File "C:\opt\grass\build\output\bin\grass85.py", line 2473, in <module>
    main()
    ~~~~^^
  File "C:\opt\grass\build\output\bin\grass85.py", line 2118, in main
    find_grass_python_package()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\opt\grass\build\output\bin\grass85.py", line 2106, in find_grass_python_package
    raise RuntimeError(msg)
RuntimeError: The grass Python package is missing. Is the installation of GRASS complete?
```


## Solution
Convert string literal to raw string to properly handle backslashes in Windows paths.

## Changes
- Changed `"@GRASS_PYDIR@"` to `r"@GRASS_PYDIR@"` in the `find_grass_python_package()` function

This eliminates the SyntaxWarning about invalid escape sequence `\o` and ensures proper path handling on Windows systems.

Fixes Python syntax warning that occurs during GRASS GIS initialization on Windows.
* Fix OpenMP C3015 error in r.mapcalc evaluate.c

* Update raster/r.mapcalc/evaluate.c

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ed in 7.2 (OSGeo#6231)

Removes the compatibility code in Vector.write() which accepts the 7.0 API positional argument in 7.2 and above. It has already been a decade since that workaround to keep the calling syntax of GRASS 7.0 and before valid and we have a new major version already established.

Fixes v.rast.stats tests which is using the old signature.
* CI(deps): Update super-linter/super-linter action to v8

* checks: Allow jquery global '$' in parser_standard_options.js

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
…v3.8.6 (OSGeo#6247)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Fix LNK2019/LNK2001 unresolved symbol 'columns' in r.mapcalc

* Fix Windows MSVC linker error for columns variable

* Export columns from calc lib; Remove extern columns from r.mapcalc/globals.h

---------

Co-authored-by: Huidae Cho <grass4u@gmail.com>
@github-actions github-actions bot force-pushed the periodic/update-configure branch from f998d32 to 8cc8db2 Compare August 30, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.