setup.py
def strip_versions(requirement):
    '''Strips out version information from package

    Args:
        requirement(str): an example of a

    Returns:
        str: Just the package name
    '''
    # Use the naive approach until we need some regex magic
    pragma = None
    if ';' in requirement:
        requirement, pragma = requirement.split(';')
    if pragma:
        if eval(pragma.strip()):
            requirement = requirement.rstrip(' <>=.,1234567890')
        else:
            requirement = ''
    return requirement
Strips out version information from package

    Args:
        requirement(str): an example of a

    Returns:
        str: Just the package name
    
Strips out version information from package
Strips out version information from package
def strip_versions(requirement):
    pragma = None
    if ';' in requirement:
        requirement, pragma = requirement.split(';')
    if pragma:
        if eval(pragma.strip()):
            requirement = requirement.rstrip(' <>=.,1234567890')
        else:
            requirement = ''
    return requirement
def strip_versions ( requirement ) : pragma = None if ';' in requirement : requirement , pragma = requirement . split ( ';' ) if pragma : if eval ( pragma . strip ( ) ) : requirement = requirement . rstrip ( ' <>=.,1234567890' ) else : requirement = '' return requirement
Strips out version information from package
Strips out version information from package
'''Strips out version information from package

    Args:
        requirement(str): an example of a

    Returns:
        str: Just the package name
    ''' # Use the naive approach until we need some regex magic
Just the package name
Just the package name
str
requirement
an example of a
an example of a