From 2a6d57a38bcf3fae3ca9e02cee272f0e8ec92314 Mon Sep 17 00:00:00 2001 From: Roger Yang <80478925+RogerHYang@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:36:31 -0800 Subject: [PATCH] chore: fix add_symlinks by replacing dash with underscore in symlink name (#1125) --- .../src/openinference/instrumentation/.gitignore | 2 +- python/tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore b/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore index 32afefef9..250591735 100644 --- a/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore +++ b/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore @@ -8,7 +8,7 @@ /instructor /langchain /litellm -/llama-index +/llama_index /mistralai /openai /vertexai diff --git a/python/tox.ini b/python/tox.ini index 46c06fc1a..5fd73c276 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -98,7 +98,7 @@ commands = description = Add symlinks to packages (for editable install) changedir = openinference-instrumentation/src/openinference/instrumentation commands = - python -c 'from pathlib import Path;[(l.symlink_to(t,True) if not (l:=Path.cwd()/d.name[30:]).exists() and (t:=d/"src"/"openinference"/"instrumentation"/d.name[30:].replace("-","_")).exists() else None) for d in (Path.cwd().parent.parent.parent.parent/"instrumentation").iterdir() if d.is_dir()]' + python -c 'from pathlib import Path;[(l.symlink_to(t,True) if not (l:=Path.cwd()/(name := d.name[30:].replace("-","_"))).exists() and (t:=d/"src"/"openinference"/"instrumentation"/name).exists() else None) for d in (Path.cwd().parent.parent.parent.parent/"instrumentation").iterdir() if d.is_dir()]' [testenv:remove_symlinks] description = Remove symlinks to packages