Skip to content

Conversation

chrisburr
Copy link
Member

As requested by @petricm, exposes the version parsing regex as:

major, minor, pre, patch = diracCfg.parseVersion("v10r1p3")
assert major, minor, pre, patch == (10, 1, 3, None)

major, minor, pre, patch = diracCfg.parseVersion("v10r1")
assert major, minor, pre, patch == (10, 1, 0, None)

major, minor, pre, patch = diracCfg.parseVersion("v10r1-pre3")
assert major, minor, pre, patch == (10, 1, 0, 3)

Copy link

@petricm petricm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Can this be tagged once merged.

@chrisburr chrisburr merged commit ef06220 into DIRACGrid:master Sep 14, 2020
@chrisburr chrisburr deleted the extract-version-funcs branch September 14, 2020 08:15
@chrisburr
Copy link
Member Author

Done as 0.2.0! It should deploy itself to PyPI and conda-forge over the next hour or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants