From e1292cb4ab275b4a636cd03d785cd6c833ec92c5 Mon Sep 17 00:00:00 2001 From: David Meyer Date: Wed, 13 Nov 2024 02:30:37 -0500 Subject: [PATCH] Ensure local_sdist recipes use a valid URI for the source URL. (#578) Fixes #448 --- grayskull/strategy/py_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grayskull/strategy/py_base.py b/grayskull/strategy/py_base.py index c9f0808c8..89cfaef62 100644 --- a/grayskull/strategy/py_base.py +++ b/grayskull/strategy/py_base.py @@ -795,7 +795,7 @@ def get_sdist_metadata( metadata["source"] = {"url": sdist_url, "sha256": sha256_checksum(path_pkg)} if config.from_local_sdist: metadata["source"] = { - "url": f"file://{path_pkg}", + "url": Path(path_pkg).as_uri(), "sha256": sha256_checksum(path_pkg), }