diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore b/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore new file mode 100644 index 000000000..32afefef9 --- /dev/null +++ b/python/openinference-instrumentation/src/openinference/instrumentation/.gitignore @@ -0,0 +1,14 @@ +/anthropic +/bedrock +/crewai +/dspy +/groq +/guardrails +/haystack +/instructor +/langchain +/litellm +/llama-index +/mistralai +/openai +/vertexai diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/bedrock b/python/openinference-instrumentation/src/openinference/instrumentation/bedrock deleted file mode 120000 index 7a2ad3ad2..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/bedrock +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-bedrock/src/openinference/instrumentation/bedrock \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/crewai b/python/openinference-instrumentation/src/openinference/instrumentation/crewai deleted file mode 120000 index 0a1d3bd0d..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/crewai +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-crewai/src/openinference/instrumentation/crewai \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/dspy b/python/openinference-instrumentation/src/openinference/instrumentation/dspy deleted file mode 120000 index 4403be01d..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/dspy +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-dspy/src/openinference/instrumentation/dspy \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/guardrails b/python/openinference-instrumentation/src/openinference/instrumentation/guardrails deleted file mode 120000 index bd81c45ba..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/guardrails +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-guardrails/src/openinference/instrumentation/guardrails \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/haystack b/python/openinference-instrumentation/src/openinference/instrumentation/haystack deleted file mode 120000 index 9fd038077..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/haystack +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-haystack/src/openinference/instrumentation/haystack \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/langchain b/python/openinference-instrumentation/src/openinference/instrumentation/langchain deleted file mode 120000 index e88f5d845..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/langchain +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-langchain/src/openinference/instrumentation/langchain \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/litellm b/python/openinference-instrumentation/src/openinference/instrumentation/litellm deleted file mode 120000 index d6b9b2586..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/litellm +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-litellm/src/openinference/instrumentation/litellm \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/llama_index b/python/openinference-instrumentation/src/openinference/instrumentation/llama_index deleted file mode 120000 index 53cbe0e07..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/llama_index +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-llama-index/src/openinference/instrumentation/llama_index \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/mistralai b/python/openinference-instrumentation/src/openinference/instrumentation/mistralai deleted file mode 120000 index 37a7d51db..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/mistralai +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-mistralai/src/openinference/instrumentation/mistralai \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/openai b/python/openinference-instrumentation/src/openinference/instrumentation/openai deleted file mode 120000 index f120f41e5..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/openai +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-openai/src/openinference/instrumentation/openai \ No newline at end of file diff --git a/python/openinference-instrumentation/src/openinference/instrumentation/vertexai b/python/openinference-instrumentation/src/openinference/instrumentation/vertexai deleted file mode 120000 index 43e6e2f0d..000000000 --- a/python/openinference-instrumentation/src/openinference/instrumentation/vertexai +++ /dev/null @@ -1 +0,0 @@ -../../../../instrumentation/openinference-instrumentation-vertexai/src/openinference/instrumentation/vertexai \ No newline at end of file diff --git a/python/tox.ini b/python/tox.ini index 181ee95e3..69707d511 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -84,3 +84,16 @@ commands = ci: ruff check --no-fix . ci: mypy . ci: pytest -n auto -x -ra {posargs:.} + +[testenv:add_symlinks] +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()]' + +[testenv:remove_symlinks] +description = Remove symlinks to packages +changedir = openinference-instrumentation/src/openinference/instrumentation +allowlist_externals = find +commands = + find . -maxdepth 1 -type l -exec unlink {} \;