Skip to content

Commit

Permalink
chore: fix add_symlinks by replacing dash with underscore in symlink …
Browse files Browse the repository at this point in the history
…name (#1125)
  • Loading branch information
RogerHYang authored Nov 19, 2024
1 parent 6f38725 commit 2a6d57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/instructor
/langchain
/litellm
/llama-index
/llama_index
/mistralai
/openai
/vertexai
2 changes: 1 addition & 1 deletion python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a6d57a

Please sign in to comment.