@api.publicApi
def toTroveSpec(name, versionStr, flavor):

    disp = [name]
    if versionStr:
        disp.extend(('=', versionStr))
    if flavor is not None and not flavor.isEmpty():
        disp.extend(('[', deps.formatFlavor(flavor), ']'))
    return ''.join(disp)
Construct a TroveSpec string from name + version + flavor
dataset/ETHPy150Open sassoftware/conary/conary/conaryclient/cmdline.py/toTroveSpec