Skip to content
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

Add Julia type and tests #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion PURL-TYPES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,24 @@ huggingface
pkg:huggingface/microsoft/deberta-v3-base@559062ad13d311b87b2c455e67dcd5f1c8f65111?repository_url=https://hub-ci.huggingface.co


julia
------
``julia`` for Julia packages:

- The default registry is ``https://github.com/JuliaRegistries/General``.
- The ``namespace`` is the registry or the package repository username or organization, if present. It is case sensitive.
- The ``name`` is the package name. It is case sensitive.
- The ``version`` is the package version, or the Julia version for bundled standard library packages, if present in the manifest.
- The qualifier ``uuid`` corresponds to the Julia package UUID.
- Examples::

pkg:julia/[email protected]?uuid=ade2ca70-3891-5945-98fb-dc099432e06a
pkg:julia/Dates?uuid=ade2ca70-3891-5945-98fb-dc099432e06a
pkg:julia/JuliaCloud/[email protected]?uuid=fbe9abb3-538b-5e4e-ba9e-bc94f4f92ebc
pkg:julia/[email protected]?uuid=ac24ea0c-1830-11e9-18d4-81f172323054
pkg:julia/HolyLabRegistry/[email protected]?uuid=ac24ea0c-1830-11e9-18d4-81f172323054&repository_url=https://github.com/HolyLab/HolyLabRegistry


maven
-----
``maven`` for Maven JARs and related artifacts:
Expand Down Expand Up @@ -549,7 +567,6 @@ Other candidate types to define:
- ``guix`` for Guix packages:
- ``haxe`` for Haxe packages:
- ``helm`` for Kubernetes packages
- ``julia`` for Julia packages:
- ``lua`` for LuaRocks packages:
- ``melpa`` for Emacs packages
- ``meteor`` for Meteor JavaScript packages:
Expand Down
36 changes: 36 additions & 0 deletions test-suite-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,41 @@
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "valid julia purl for stdlib package",
"purl": "pkg:julia/[email protected]?uuid=ade2ca70-3891-5945-98fb-dc099432e06a",
"canonical_purl": "pkg:julia/[email protected]?uuid=ade2ca70-3891-5945-98fb-dc099432e06a",
"type": "julia",
"namespace": "",
"name": "Dates",
"version": "1.9.0",
"qualifiers": {"uuid": "ade2ca70-3891-5945-98fb-dc099432e06a"},
"subpath": null,
"is_invalid": false
},
{
"description": "valid julia purl for stdlib package without version",
"purl": "pkg:julia/Dates",
"canonical_purl": "pkg:julia/Dates",
"type": "julia",
"namespace": "",
"name": "Dates",
"version": null,
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "valid julia purl for package with registry and repository_url",
"purl": "pkg:julia/HolyLabRegistry/[email protected]?repository_url=https://github.com/HolyLab/HolyLabRegistry",
"canonical_purl": "pkg:julia/HolyLabRegistry/[email protected]?uuid=ac24ea0c-1830-11e9-18d4-81f172323054&repository_url=https://github.com/HolyLab/HolyLabRegistry",
"type": "julia",
"namespace": "HolyLabRegistry",
"name": "RegisterQD",
"version": "0.3.1",
"qualifiers": {"uuid": "ac24ea0c-1830-11e9-18d4-81f172323054", "repository_url": "https://github.com/HolyLab/HolyLabRegistry"},
"subpath": null,
"is_invalid": false
}
]