import pkg_resources


def dump_env() -> list[str]:
    """
    Get all packages and versions from the current environment.
    conda list is slow, use pkg_resources instead
    this might miss dev overrides
    """
    return sorted(str(pkg) for pkg in pkg_resources.working_set)