There may be a cleaner way to do fix this, but this should work
# Ensure release candidates sanitized to <major>.<minor>.<patch>rc<candidate>
if version.split(".")[-1].startswith("rc"):
version = ".".join(version.split(".")[:-1]) + version.split(".")[-1]
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1