Skip to content

Future-proofing: address some deprecations

FeRD (Frank Dana) requested to merge ferdnyc/meld:deprecations into main

Fix a few minor deprecation issues in the code, before they become an issue down the road.

  • Meson build: Avoid features deprecated since 0.56.0 (since minimum configured version is 0.59.0)

    • meson.source_root() is replaced with meson.project_source_root() and meson.global_source_root(), which have different behavior in subprojects.
    • dependency.get_pkgconfig_variable() and other domain-specific get... methods were consolidated into a single dependency.get_variable(), which takes slightly different arguments to support a superset of all previous .get_foo_variable() methods.
  • Meld package: Don't use deprecated Python pipes module

    Only pipes.quote() was being used in Meld (and only on one line in meld/melddoc.py), and that symbol in pipes is just an import of shlex.quote() anyway. Switch to calling shlex.quote() directly, since pipes will be removed in Python 3.13.

Merge request reports