Skip to content

Prepare for release v0.14.0 #145

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

Merged
merged 2 commits into from
Feb 29, 2024
Merged
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
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

0.14.0 (2024-02-29)
-------------------

- Add support for getting golang purl from go import.
https://github.com/nexB/purldb/issues/259

- Fix the "gem" type in the README docs.
https://github.com/package-url/packageurl-python/pull/114

0.13.4 (2024-01-08)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = packageurl-python
version = 0.13.4
version = 0.14.0
license = MIT
description = A purl aka. Package URL parser and builder
long_description = file:README.rst
Expand Down
26 changes: 10 additions & 16 deletions src/packageurl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ def unquote(s: AnyStr) -> str:


@overload
def get_quoter(encode: bool = True) -> "Callable[[AnyStr], str]":
...
def get_quoter(encode: bool = True) -> "Callable[[AnyStr], str]": ...


@overload
def get_quoter(encode: None) -> "Callable[[str], str]":
...
def get_quoter(encode: None) -> "Callable[[str], str]": ...


def get_quoter(
Expand Down Expand Up @@ -176,22 +174,19 @@ def normalize_version(
@overload
def normalize_qualifiers(
qualifiers: Union[AnyStr, Dict[str, str], None], encode: "Literal[True]" = ...
) -> Optional[str]:
...
) -> Optional[str]: ...


@overload
def normalize_qualifiers(
qualifiers: Union[AnyStr, Dict[str, str], None], encode: "Optional[Literal[False]]"
) -> Optional[Dict[str, str]]:
...
) -> Optional[Dict[str, str]]: ...


@overload
def normalize_qualifiers(
qualifiers: Union[AnyStr, Dict[str, str], None], encode: Optional[bool] = ...
) -> Union[str, Dict[str, str], None]:
...
) -> Union[str, Dict[str, str], None]: ...


def normalize_qualifiers(
Expand Down Expand Up @@ -286,8 +281,7 @@ def normalize(
qualifiers: Union[AnyStr, Dict[str, str], None],
subpath: Optional[AnyStr],
encode: "Literal[True]" = ...,
) -> Tuple[str, Optional[str], str, Optional[str], Optional[str], Optional[str]]:
...
) -> Tuple[str, Optional[str], str, Optional[str], Optional[str], Optional[str]]: ...


@overload
Expand All @@ -299,8 +293,7 @@ def normalize(
qualifiers: Union[AnyStr, Dict[str, str], None],
subpath: Optional[AnyStr],
encode: "Optional[Literal[False]]",
) -> Tuple[str, Optional[str], str, Optional[str], Optional[Dict[str, str]], Optional[str]]:
...
) -> Tuple[str, Optional[str], str, Optional[str], Optional[Dict[str, str]], Optional[str]]: ...


@overload
Expand All @@ -312,8 +305,9 @@ def normalize(
qualifiers: Union[AnyStr, Dict[str, str], None],
subpath: Optional[AnyStr],
encode: Optional[bool] = ...,
) -> Tuple[str, Optional[str], str, Optional[str], Union[str, Dict[str, str], None], Optional[str]]:
...
) -> Tuple[
str, Optional[str], str, Optional[str], Union[str, Dict[str, str], None], Optional[str]
]: ...


def normalize(
Expand Down