From cdd2db03d3b548ed2eff1dc87f440ee1c3a98c3c Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Tue, 3 Aug 2021 17:01:29 +0200 Subject: [PATCH] MAINT Order package entries by names in packages.json (#1772) --- pyodide-build/pyodide_build/buildall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyodide-build/pyodide_build/buildall.py b/pyodide-build/pyodide_build/buildall.py index 04ae97317..1c1c18bc4 100755 --- a/pyodide-build/pyodide_build/buildall.py +++ b/pyodide-build/pyodide_build/buildall.py @@ -301,6 +301,9 @@ def generate_packages_json(pkg_map: Dict[str, BasePackage]) -> Dict: if "soupsieve" in package_data["packages"]: package_data["packages"]["soupsieve"]["depends"].append("beautifulsoup4") + # re-order packages by name + package_data["packages"] = dict(sorted(package_data["packages"].items())) + return package_data