#10163 refactor: Remove the `meltano.__version__` variable in favor of `meltano.core.utils.get_meltano_version`
Pull request opened by
edgarrmondragon
Description
Or folks can use
`importlib.metadata.version`.
Checklist
• I have read the
contribution guide
Was generative AI tooling used to co-author this PR?
• Yes (please specify the tool below)
Related Issues
• Closes #XXXX
Summary by Sourcery
Replace direct use of the package-level version with the core utils version helper across the codebase and tests, and adjust typing configuration to reflect the new structure.
Enhancements:
• Use meltano.core.utils.get_meltano_version as the single source of truth for Meltano version information throughout CLI, tracking, and version checking.
• Remove the top-level meltano
init module that exposed
version, simplifying the package interface.
Build:
• Tighten mypy configuration by enabling explicit_package_bases and setting mypy_path to the src directory.
Tests:
• Update CLI, version check, and invoker tests to expect get_meltano_version usage instead of meltano.
version or direct importlib.metadata.version calls.
meltano/meltano