Verified Commit 25b0c7ca authored by David Runge's avatar David Runge
Browse files

Add method to dump repo dbs to JSON files

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()`.
parent 7e3a448d
Pipeline #5563 passed with stage
in 50 seconds