Skip to content

Commit

Permalink
feat: Put all string values before objects
Browse files Browse the repository at this point in the history
String entries apply to _all_ versions, so it makes sense for them to be
first in the build systems lists.
  • Loading branch information
l0b0 committed Sep 26, 2023
1 parent ae35a2e commit d5ea9cd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
66 changes: 33 additions & 33 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -3221,11 +3221,11 @@
"setuptools"
],
"colorama": [
"setuptools",
{
"buildSystem": "hatchling",
"from": "0.4.6"
},
"setuptools"
}
],
"colorcet": [
"setuptools"
Expand Down Expand Up @@ -3700,11 +3700,11 @@
"setuptools"
],
"dask": [
"setuptools",
{
"buildSystem": "versioneer",
"from": "2.0.0"
},
"setuptools"
}
],
"dask-gateway": [
"setuptools"
Expand Down Expand Up @@ -4198,11 +4198,11 @@
"setuptools"
],
"distributed": [
"setuptools",
{
"buildSystem": "versioneer",
"from": "2.0.0"
},
"setuptools"
}
],
"distro": [
"setuptools"
Expand Down Expand Up @@ -4653,11 +4653,11 @@
"setuptools-scm"
],
"docformatter": [
"setuptools",
{
"buildSystem": "poetry-core",
"from": "1.5.0"
},
"setuptools"
}
],
"docker": [
"setuptools",
Expand Down Expand Up @@ -9496,11 +9496,11 @@
"setuptools"
],
"mkdocs": [
"setuptools",
{
"buildSystem": "hatchling",
"from": "1.4.1"
},
"setuptools"
}
],
"mkdocs-autorefs": [
"pdm-pep517",
Expand Down Expand Up @@ -9542,22 +9542,22 @@
"setuptools"
],
"mkdocs-material": [
"setuptools",
{
"buildSystem": "hatch-nodejs-version",
"from": "8.5.3"
},
{
"buildSystem": "hatchling",
"from": "8.5.3"
},
"setuptools"
}
],
"mkdocs-material-extensions": [
"setuptools",
{
"buildSystem": "hatchling",
"from": "1.1"
},
"setuptools"
}
],
"mkdocs-minify": [
"setuptools"
Expand Down Expand Up @@ -10069,11 +10069,11 @@
"setuptools"
],
"nbclient": [
"setuptools",
{
"buildSystem": "hatchling",
"from": "0.7.1"
},
"setuptools"
}
],
"nbconflux": [
"setuptools"
Expand Down Expand Up @@ -10369,15 +10369,15 @@
"setuptools"
],
"notebook-shim": [
"jupyter-packaging",
{
"buildSystem": "setuptools",
"until": "0.2.0"
},
{
"buildSystem": "hatchling",
"from": "0.2.0"
},
"jupyter-packaging"
}
],
"notedown": [
"setuptools"
Expand Down Expand Up @@ -11129,12 +11129,12 @@
"setuptools"
],
"pandas": [
"cython",
"setuptools",
{
"buildSystem": "versioneer",
"from": "2.0.0"
},
"cython",
"setuptools"
}
],
"pandas-datareader": [
"setuptools"
Expand Down Expand Up @@ -16494,6 +16494,7 @@
"setuptools"
],
"scikit-build": [
"cython",
{
"buildSystem": "setuptools",
"until": "0.17.0"
Expand All @@ -16513,8 +16514,7 @@
{
"buildSystem": "hatchling",
"from": "0.17.0"
},
"cython"
}
],
"scikit-fmm": [
"setuptools"
Expand Down Expand Up @@ -17532,11 +17532,11 @@
"setuptools"
],
"sqlglot": [
"setuptools",
{
"buildSystem": "setuptools-scm",
"from": "13.0.2"
},
"setuptools"
}
],
"sqlite-fts4": [
"setuptools"
Expand Down Expand Up @@ -17931,11 +17931,11 @@
"setuptools-scm"
],
"tabulate": [
"setuptools",
{
"buildSystem": "setuptools-scm",
"from": "0.9.0"
},
"setuptools"
}
],
"tabview": [
"setuptools"
Expand Down Expand Up @@ -18548,15 +18548,15 @@
"setuptools"
],
"traitlets": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "5.2.1"
},
{
"buildSystem": "hatchling",
"from": "5.2.1"
},
"setuptools"
}
],
"traits": [
"setuptools"
Expand Down Expand Up @@ -19218,15 +19218,15 @@
"setuptools"
],
"urllib3": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "2.0.2"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
},
"setuptools"
}
],
"urlman": [
"setuptools"
Expand Down Expand Up @@ -19407,15 +19407,15 @@
"setuptools"
],
"virtualenv": [
"cython",
{
"buildSystem": "setuptools-scm",
"until": " 20.18"
},
{
"buildSystem": "hatch-vcs",
"from": " 20.18"
},
"cython"
}
],
"virtualenv-clone": [
"setuptools"
Expand Down
2 changes: 2 additions & 0 deletions overrides/sort-build-systems.jq
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Sort each entry in the top-level dictionary
.[] |= sort_by(
# Put all strings before objects
type == "object",
if type == "string"
then
# Sort string overrides alphabetically
Expand Down

0 comments on commit d5ea9cd

Please sign in to comment.