We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is problematic:
>>> P.from_string("pkg:pypi/foo:[email protected]") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/tmp/purl/venv/lib/python3.10/site-packages/packageurl/__init__.py", line 508, in from_string raise ValueError(msg) ValueError: Invalid purl 'pkg:pypi/foo:[email protected]' cannot contain a "user:pass@host:port" URL Authority component: ''. >>> P.from_string("pkg:maven/com.apache:foo/[email protected]") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/tmp/purl/venv/lib/python3.10/site-packages/packageurl/__init__.py", line 508, in from_string raise ValueError(msg) ValueError: Invalid purl 'pkg:maven/com.apache:foo/[email protected]' cannot contain a "user:pass@host:port" URL Authority component: ''. >>> P.from_string("pkg:maven/com.apache$3Afoo/[email protected]") PackageURL(type='maven', namespace='com.apache$3Afoo', name='foobar', version='1.2.3', qualifiers={}, subpath=None) >>> P.from_string("pkg:maven/com.apache%3Afoo/[email protected]") PackageURL(type='maven', namespace='com.apache:foo', name='foobar', version='1.2.3', qualifiers={}, subpath=None) >>> str(P.from_string("pkg:maven/com.apache%3Afoo/[email protected]")) 'pkg:maven/c om.apache:foo/[email protected]'
See also package-url/purl-spec#39
The text was updated successfully, but these errors were encountered:
We cannot round trip:
>>> from packageurl import PackageURL as P >>> P.from_string(str(P.from_string("pkg:maven/com.apache%3Afoo/[email protected]"))) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/tmp/purl/venv/lib/python3.10/site-packages/packageurl/__init__.py", line 508, in from_string raise ValueError(msg) ValueError: Invalid purl 'pkg:maven/com.apache:foo/[email protected]' cannot contain a "user:pass@host:port" URL Authority component: ''.
Sorry, something went wrong.
No branches or pull requests
This is problematic:
See also package-url/purl-spec#39
The text was updated successfully, but these errors were encountered: