Skip to content

Commit

Permalink
Prepare for release v0.14.0 (#145)
Browse files Browse the repository at this point in the history
* Prepare for release v0.14.0

Signed-off-by: Tushar Goel <[email protected]>

* Fix liniting errors

Signed-off-by: Tushar Goel <[email protected]>

---------

Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 authored Feb 29, 2024
1 parent 30f497f commit dea7760
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
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

0 comments on commit dea7760

Please sign in to comment.