Skip to content

Commit db7a172

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7f79d13 commit db7a172

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dev_toolbox/pypi_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Metadata(TypedDict):
6363

6464

6565
def _extract_version_from_filename(x: str) -> str:
66-
x = x.split("/")[-1]
66+
x = x.rsplit("/", maxsplit=1)[-1]
6767
return x.split(".tar.gz")[0].split("-")[-1] if x.endswith(".tar.gz") else x.split("-")[1]
6868

6969

0 commit comments

Comments
 (0)