Fix version reporting in CLI
Hi! I'm one of the maintainers of [nf-core/mag](https://github.com/nf-core/mag/), and we’ve been experiencing an issue with conda snapshots due to version reporting when installing: https://github.com/nf-core/mag/pull/914.
When running `genomad --version`, the command shows `geNomad, version 1.9.4` instead of the correct version 1.11.1 defined in `genomad/__init__.py`.
This seem to be happening because the `@click.version_option()` decorator is getting the rich_click version instead of the genomad one when using rich_click 1.9.x.
To fix this, I added explicit references to the version defined in the source code to don't depend on th automatic inference.
合并状态:未合并 关闭于 2025-11-05 2 条评论