https://github.com/annotation/text-fabric
Raw File
Tip revision: 70e2b58cbb0d7763d4e0652d177494890629ee95 authored by Dirk Roorda on 25 May 2023, 15:52:38 UTC
automation of the release process of a TF dataset
Tip revision: 70e2b58
zip.py
from .advanced.app import loadApp
from .core.timestamp import DEEP
from .core.helpers import console


def main():
    """Makes a complete zip file.

    Determines the repository that contains the current directory.
    Finds the TF dataset of that repository.

    Then zips its TF data (most recent version) plus all related data modules,
    not only other tf data, but also images that are included.

    Puts the TF data somewhere in your Downloads directory,
    from where you can attach it to a release on GitHub or GitLab.

    Text-Fabric is instructed to try that file first
    if a user of this dataset needs to download the latest data.
    """
    console("loading tf app ...")
    app = loadApp(silent=DEEP)
    app.zipAll()


if __name__ == "__main__":
    main()
back to top