import shutil


def zipfile_make_archive(dirname, to=None, **kwargs):
    """
    Thin layer over shutil.make_archive. Just defaults
    the to to the same name as the directory by default.

    :param dirname: (str)
        The directory name
    :param to: (str, default None)
        The file path to create the archive in.
    :param kwargs:
        shutil.make_archive(**kwargs)
    :return: (str)
        The :param to file path.
    """
    if to is None:
        to = dirname
    return shutil.make_archive(to, "zip", root_dir=dirname, **kwargs)