canonical / craft-application

The basis for *craft applications
https://canonical-craft-application.readthedocs-hosted.com/en/latest
GNU Lesser General Public License v3.0
5 stars 6 forks source link

Craft-application reading craft-archives version #271

Closed cmatsuoka closed 2 months ago

cmatsuoka commented 3 months ago

Bug Description

If ._version not set, craft-application reads version from craft-archives.

try:
    from ._version import __version__
except ImportError:  # pragma: no cover
    from importlib.metadata import version, PackageNotFoundError

    try:
        __version__ = version("craft-archives")
    except PackageNotFoundError:
        __version__ = "dev"

To Reproduce

This can be verified by simple inspection of craft_application/__init__.py.

part yaml

N/A

Relevant log output

N/A
syncronize-issues-to-jira[bot] commented 3 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2622.

This message was autogenerated