uesleilima commented on PR #2372:
URL: https://github.com/apache/age/pull/2372#issuecomment-4279777428
@MuhammadTahaNaveed Good catch — the warning came from the generated
lexer/parser hardcoding `checkVersion("4.11.1")` while this PR relaxed the
runtime pin to `>=4.11.1,<5.0`, so any default install pulled 4.13.2 and
triggered the mismatch.
Fixed in [`1b3167a1`](https://github.com/uesleilima/age/commit/1b3167a1) by:
1. Regenerating `AgtypeLexer.py`, `AgtypeParser.py`, `AgtypeListener.py`,
`AgtypeVisitor.py` from `Agtype.g4` using ANTLR 4.13.2 (preserving the ASF
license header). Diff is minimal: `checkVersion("4.11.1")` →
`checkVersion("4.13.2")` plus a couple of cosmetic ANTLR-tool style changes
(`if __name__ is not None and "." in __name__` → `if "." in __name__`).
2. Bumping the dependency floor to `antlr4-python3-runtime>=4.13.2,<5.0` so
a fresh `pip install` is warning-free out of the box.
Verified locally with `antlr4-python3-runtime==4.13.2` against
`apache/age:dev_snapshot_master` — full CI-equivalent suite (`test_age_py.py`
25 tests, `test_networkx.py` 11, `test_agtypes.py` 14, `test_security.py` 46)
passes with no version-disagree warning emitted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]