Skip to content

Commit

Permalink
Merge branch 'master' into pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
pombredanne authored Nov 21, 2024
2 parents ec6768e + 64a8585 commit 87dc3a4
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PURL-TYPES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ cpan

- The default repository is ``https://www.cpan.org/``.
- The ``namespace``:
- To refer to a CPAN distribution name, the ``namespace`` MUST be present. In this case, the namespace is the CPAN id of the author/publisher. It MUST be written uppercase, followed by the distribution name in the ``name`` component. A distribution name may NEVER contain the string ``::``.
- To refer to a CPAN distribution name, the ``namespace`` MUST be present. In this case, the namespace is the CPAN id of the author/publisher. It MUST be written uppercase, followed by the distribution name in the ``name`` component. A distribution name MUST NOT contain the string ``::``.
- To refer to a CPAN module, the ``namespace`` MUST be absent. The module name MAY contain zero or more ``::`` strings, and the module name MUST NOT contain a ``-``

- The ``name`` is the module or distribution name and is case sensitive.
Expand Down
72 changes: 72 additions & 0 deletions test-suite-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,5 +550,77 @@
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "cpan distribution name are case sensitive",
"purl": "pkg:cpan/DROLSKY/[email protected]",
"canonical_purl": "pkg:cpan/DROLSKY/[email protected]",
"type": "cpan",
"namespace": "DROLSKY",
"name": "DateTime",
"version": "1.55",
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "cpan module name are case sensitive",
"purl": "pkg:cpan/URI::[email protected]",
"canonical_purl": "pkg:cpan/URI::[email protected]",
"type": "cpan",
"namespace": null,
"name": "URI::PackageURL",
"version": "2.11",
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "cpan module name like distribution name",
"purl": "pkg:cpan/[email protected]",
"canonical_purl": "pkg:cpan/[email protected]",
"type": "cpan",
"namespace": null,
"name": "Perl-Version",
"version": "1.013",
"qualifiers": null,
"subpath": null,
"is_invalid": true
},
{
"description": "cpan distribution name like module name",
"purl": "pkg:cpan/GDT/URI::[email protected]",
"canonical_purl": "pkg:cpan/GDT/URI::PackageURL",
"type": "cpan",
"namespace": "GDT",
"name": "URI::PackageURL",
"version": null,
"qualifiers": null,
"subpath": null,
"is_invalid": true
},
{
"description": "cpan valid module name",
"purl": "pkg:cpan/[email protected]",
"canonical_purl": "pkg:cpan/[email protected]",
"type": "cpan",
"namespace": null,
"name": "DateTime",
"version": "1.55",
"qualifiers": null,
"subpath": null,
"is_invalid": false
},
{
"description": "cpan valid module name without version",
"purl": "pkg:cpan/URI",
"canonical_purl": "pkg:cpan/URI",
"type": "cpan",
"namespace": null,
"name": "URI",
"version": null,
"qualifiers": null,
"subpath": null,
"is_invalid": false
}
]

0 comments on commit 87dc3a4

Please sign in to comment.