-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parsers/spack: read categories and licenses #1422
Conversation
LGTM, but spack parsing is currently broken as it misses required |
Is that the only parsing failure, or just the first parsing failure of a potentially long list? |
Looks like it's the only for now (it was broken recently). It should be fixed on Repologys side anyway as |
I've modified our scripts to inject the git repo as the version |
Can it be a different attribute please? Repology differentiates download and repository URLs. |
So, using We now have this:
Should we not list the repo at the package level? Or should we not list it at the version level? |
And I was looking at PackageMaker (https://github.com/repology/repology-updater/blob/master/repology/packagemaker/__init__.py#L220) and couldn't immediately see where a package would specify the repository instead of a downloads. |
The same place where downloads are, just a different key. Something like this I suppose: {
...
"version": [
{
"branch": "develop",
"repositories": [
"https://github.com/Tramonto/Tramonto.git"
],
"version": "develop"
}
]
} or more correct {
...
"version": [
{
"repositories": [
{
"url": "https://github.com/Tramonto/Tramonto.git",
"branch": "master"
}
],
"version": "develop"
}
]
}
|
We went with: {
...
"version": [
{
"repositories": [
{
"type": "git",
"url": "https://github.com/Tramonto/Tramonto.git",
"branch": "master"
}
],
"version": "develop"
}
]
} since technically we also support This is live now at https://raw.githubusercontent.com/spack/packages.spack.io/main/data/repology.json, with |
Can there be multiple repositories? If yes, I expect {
"branch": "master",
"repositories": {
"branch": "master",
"type": "git",
"url": "git://gcc.gnu.org/git/gcc.git"
},
"version": "master"
} |
I've committed the code which should work with both array and plain repositories to fix the parsing for the time being (as I'm going offline for a couple of weeks). |
Spack now publishes categories and licenses in the repology.json.
Disclaimers:
UNKNOWN
. License is recommended to be SPDX but not enforced. Not all licenses are checked (yet) by humans (and unchecked/checked licenses are both exported torepology.json
). Since different versions are a key use case of spack, packages can include multiple licenses that apply to different version ranges, but the list is flattened inrepology.json
.E.g. current output: