Skip to content

Commit

Permalink
fix sort keys
Browse files Browse the repository at this point in the history
  • Loading branch information
orf authored Mar 7, 2023
1 parent 5487334 commit da471b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypi_data_downloader/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def download_releases(directory, limit, concurrency):
if not skip:
serials[name.lower()] = serial

serials_path.write_bytes(orjson.dumps(serials, option=orjson.SORT_KEYS))
serials_path.write_bytes(orjson.dumps(serials, option=orjson.OPT_SORT_KEYS))


def process_package(directory, name, serial):
Expand Down Expand Up @@ -132,7 +132,7 @@ def process_package(directory, name, serial):
release_info["info"].pop("description", "")

releases = {**previous_data, **releases}
json_bytes = orjson.dumps(releases, option=orjson.SORT_KEYS)
json_bytes = orjson.dumps(releases, option=orjson.OPT_SORT_KEYS)
version_file.write_bytes(json_bytes)

return name, serial, skip, {
Expand Down

0 comments on commit da471b0

Please sign in to comment.