From a41671eeb229fd5e4898991252ed6dac743e5e92 Mon Sep 17 00:00:00 2001 From: Nicholas Yager Date: Wed, 22 Jan 2025 08:44:31 -0500 Subject: [PATCH] =?UTF-8?q?bump:=20version=200.7.2=20=E2=86=92=200.7.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbt_loom/manifests.py | 12 +++++++++++- pyproject.toml | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/dbt_loom/manifests.py b/dbt_loom/manifests.py index 717e9e2..e047c9d 100644 --- a/dbt_loom/manifests.py +++ b/dbt_loom/manifests.py @@ -2,6 +2,7 @@ from io import BytesIO import json import gzip +import os from pathlib import Path from typing import Dict, List, Optional from urllib.parse import unquote, urlunparse @@ -128,7 +129,16 @@ def load_from_local_filesystem(config: FileReferenceConfig) -> Dict: if not config.path.path: raise InvalidManifestPath() - file_path = Path(unquote(config.path.path.lstrip("/"))) + if config.path.netloc: + file_path = Path(f"//{config.path.netloc}{config.path.path}") + else: + file_path = Path( + unquote( + config.path.path.lstrip("/") + if os.name == "nt" + else config.path.path + ) + ) if not file_path.exists(): raise LoomConfigurationError(f"The path `{file_path}` does not exist.") diff --git a/pyproject.toml b/pyproject.toml index fb2d781..e61b4a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [tool.poetry] name = "dbt-loom" -version = "0.7.2" +version = "0.7.3" description = "A dbt-core plugin to import public nodes in multi-project deployments." authors = ["Nicholas Yager "] readme = "README.md" packages = [{ include = "dbt_loom" }] [tool.commitizen] -version = "0.7.2" +version = "0.7.3" version_files = ["pyproject.toml:^version"] [tool.poetry.dependencies]