Skip to content

Commit dea7760

Browse files
authored
Prepare for release v0.14.0 (package-url#145)
* Prepare for release v0.14.0 Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com> * Fix liniting errors Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com> --------- Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 30f497f commit dea7760

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
0.14.0 (2024-02-29)
5+
-------------------
6+
7+
- Add support for getting golang purl from go import.
8+
https://github.com/nexB/purldb/issues/259
9+
10+
- Fix the "gem" type in the README docs.
11+
https://github.com/package-url/packageurl-python/pull/114
12+
413
0.13.4 (2024-01-08)
514
-------------------
615

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = packageurl-python
3-
version = 0.13.4
3+
version = 0.14.0
44
license = MIT
55
description = A purl aka. Package URL parser and builder
66
long_description = file:README.rst

src/packageurl/__init__.py

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ def unquote(s: AnyStr) -> str:
8484

8585

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

9089

9190
@overload
92-
def get_quoter(encode: None) -> "Callable[[str], str]":
93-
...
91+
def get_quoter(encode: None) -> "Callable[[str], str]": ...
9492

9593

9694
def get_quoter(
@@ -176,22 +174,19 @@ def normalize_version(
176174
@overload
177175
def normalize_qualifiers(
178176
qualifiers: Union[AnyStr, Dict[str, str], None], encode: "Literal[True]" = ...
179-
) -> Optional[str]:
180-
...
177+
) -> Optional[str]: ...
181178

182179

183180
@overload
184181
def normalize_qualifiers(
185182
qualifiers: Union[AnyStr, Dict[str, str], None], encode: "Optional[Literal[False]]"
186-
) -> Optional[Dict[str, str]]:
187-
...
183+
) -> Optional[Dict[str, str]]: ...
188184

189185

190186
@overload
191187
def normalize_qualifiers(
192188
qualifiers: Union[AnyStr, Dict[str, str], None], encode: Optional[bool] = ...
193-
) -> Union[str, Dict[str, str], None]:
194-
...
189+
) -> Union[str, Dict[str, str], None]: ...
195190

196191

197192
def normalize_qualifiers(
@@ -286,8 +281,7 @@ def normalize(
286281
qualifiers: Union[AnyStr, Dict[str, str], None],
287282
subpath: Optional[AnyStr],
288283
encode: "Literal[True]" = ...,
289-
) -> Tuple[str, Optional[str], str, Optional[str], Optional[str], Optional[str]]:
290-
...
284+
) -> Tuple[str, Optional[str], str, Optional[str], Optional[str], Optional[str]]: ...
291285

292286

293287
@overload
@@ -299,8 +293,7 @@ def normalize(
299293
qualifiers: Union[AnyStr, Dict[str, str], None],
300294
subpath: Optional[AnyStr],
301295
encode: "Optional[Literal[False]]",
302-
) -> Tuple[str, Optional[str], str, Optional[str], Optional[Dict[str, str]], Optional[str]]:
303-
...
296+
) -> Tuple[str, Optional[str], str, Optional[str], Optional[Dict[str, str]], Optional[str]]: ...
304297

305298

306299
@overload
@@ -312,8 +305,9 @@ def normalize(
312305
qualifiers: Union[AnyStr, Dict[str, str], None],
313306
subpath: Optional[AnyStr],
314307
encode: Optional[bool] = ...,
315-
) -> Tuple[str, Optional[str], str, Optional[str], Union[str, Dict[str, str], None], Optional[str]]:
316-
...
308+
) -> Tuple[
309+
str, Optional[str], str, Optional[str], Union[str, Dict[str, str], None], Optional[str]
310+
]: ...
317311

318312

319313
def normalize(

0 commit comments

Comments
 (0)