MCPcopy Create free account
hub / github.com/apache/solr / normalizeVersion

Function normalizeVersion

dev-tools/scripts/buildAndPushRelease.py:198–210  ·  view source on GitHub ↗
(tup)

Source from the content-addressed store, hash-verified

196 % '\n'.join(errorMessages))
197
198def normalizeVersion(tup):
199 suffix = ''
200 if tup[-1] is not None and tup[-1].lower() == '-alpha':
201 tup = tup[:(len(tup) - 1)]
202 suffix = '-ALPHA'
203 elif tup[-1] is not None and tup[-1].lower() == '-beta':
204 tup = tup[:(len(tup) - 1)]
205 suffix = '-BETA'
206 while tup[-1] in ('', None):
207 tup = tup[:(len(tup) - 1)]
208 while len(tup) < 3:
209 tup = tup + ('0',)
210 return '.'.join(tup) + suffix
211
212
213def pushLocal(version, root, rcNum, localDir):

Callers 1

checkDOAPfilesFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…