Skip to content

Standardize format reported by cdat_info.version() #2157

@durack1

Description

@durack1

I've been using cdat_info.version to keep track of the cdat installed used for analysis. The output of this command has been varied through time, and I get the following output:

v2.6: >>> cdat_info.version()
['', '2.6']
v2.8: >>> cdat_info.version()
['', 'v2.8']
nightly: >>> cdat_info.version()
['2', '6', '42', 'g910814b']

It would be great to standardize this, so full releases are numeric only e.g.2.10 (so lose the leading v in v2.8 above) and keep the nightly tag intact showing major, minor, commit, hash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions