• David Runge's avatar
    Add method to dump repo dbs to JSON files · 25b0c7ca
    David Runge authored
    repo_management/operations.py:
    Add `dump_db_to_json_files()` which allows for a repository database
    file to be read and all of its members to be serialized as JSON and
    written to files based upon the packages respective pkgbases.
    For the JSON serialization orjson is used, as it provides the highest
    speeds available and seems the most correct implementation.
    
    tests/test_operations.py:
    Add a fixture to create and destroy a temporary directory (used to write
    JSON files to).
    Add tests for `dump_db_to_json_files()`.
    25b0c7ca
operations.py 3.55 KB