def METHOD_NAME(src):
    module = []
    src, ext = os.path.splitext(src)
    while src and src != '/':
        head, tail = os.path.split(os.path.abspath(src))
        if (tail == 'src' or any(os.path.exists(os.path.join(head, tail, f))
                                 for f in ('setup.py', 'pyproject.toml'))):
            return '.'.join(module)
        module.insert(0, tail)
        src = head
    return None