Skip to content

Commit

Permalink
feat: Sort build systems alphabetically within objects
Browse files Browse the repository at this point in the history
After sorting by the `from` and `until` versions.

Helps with #1320.
  • Loading branch information
l0b0 committed Sep 26, 2023
1 parent bc44c1d commit ae35a2e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
64 changes: 32 additions & 32 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -933,15 +933,15 @@
"until": "23.1.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "23.1.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatch-vcs",
"from": "23.1.0"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "23.1.0"
}
],
Expand Down Expand Up @@ -1226,15 +1226,15 @@
"until": "23.1.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "23.1.0"
},
{
"buildSystem": "hatch-vcs",
"from": "23.1.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatchling",
"from": "23.1.0"
}
],
Expand Down Expand Up @@ -2243,15 +2243,15 @@
"until": "22.10.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "22.10.0"
},
{
"buildSystem": "hatch-vcs",
"from": "22.10.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatchling",
"from": "22.10.0"
}
],
Expand Down Expand Up @@ -5521,11 +5521,11 @@
"until": "3.9.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-vcs",
"from": "3.9.0"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "3.9.0"
}
],
Expand Down Expand Up @@ -6403,11 +6403,11 @@
"until": "0.19"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-vcs",
"from": "0.19"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "0.19"
}
],
Expand All @@ -6417,11 +6417,11 @@
"until": "0.19"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-vcs",
"from": "0.19"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "0.19"
}
],
Expand Down Expand Up @@ -7321,11 +7321,11 @@
"until": "4.6.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-vcs",
"from": "4.6.0"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "4.6.0"
}
],
Expand Down Expand Up @@ -7620,11 +7620,11 @@
"until": "2.0.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-vcs",
"from": "2.0.0"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "2.0.0"
}
],
Expand Down Expand Up @@ -8304,11 +8304,11 @@
"until": "4"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-jupyter-builder",
"from": "4"
},
{
"buildSystem": "hatch-jupyter-builder",
"buildSystem": "hatchling",
"from": "4"
}
],
Expand Down Expand Up @@ -9543,11 +9543,11 @@
],
"mkdocs-material": [
{
"buildSystem": "hatchling",
"buildSystem": "hatch-nodejs-version",
"from": "8.5.3"
},
{
"buildSystem": "hatch-nodejs-version",
"buildSystem": "hatchling",
"from": "8.5.3"
},
"setuptools"
Expand Down Expand Up @@ -10103,11 +10103,11 @@
"until": "5.6.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-nodejs-version",
"from": "5.6.0"
},
{
"buildSystem": "hatch-nodejs-version",
"buildSystem": "hatchling",
"from": "5.6.0"
}
],
Expand Down Expand Up @@ -12666,11 +12666,11 @@
"until": "2.0.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "2.0.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatchling",
"from": "2.0.0"
}
],
Expand Down Expand Up @@ -16503,15 +16503,15 @@
"until": "0.17.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "0.17.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatch-vcs",
"from": "0.17.0"
},
{
"buildSystem": "hatch-vcs",
"buildSystem": "hatchling",
"from": "0.17.0"
},
"cython"
Expand Down Expand Up @@ -16743,15 +16743,15 @@
"until": "23.1.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "23.1.0"
},
{
"buildSystem": "hatch-vcs",
"from": "23.1.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatchling",
"from": "23.1.0"
}
],
Expand Down Expand Up @@ -17973,15 +17973,15 @@
"until": "22.12.0"
},
{
"buildSystem": "hatchling",
"buildSystem": "hatch-fancy-pypi-readme",
"from": "22.12.0"
},
{
"buildSystem": "hatch-vcs",
"from": "22.12.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"buildSystem": "hatchling",
"from": "22.12.0"
}
],
Expand Down
4 changes: 3 additions & 1 deletion overrides/sort-build-systems.jq
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
else
# Sort entries with an `until` field above entries with a `from` field
.from,
.until
.until,
# Sort build systems with the same `from` and `until` values
.buildSystem
end
)

0 comments on commit ae35a2e

Please sign in to comment.