ddtrace-internal 0.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.4
2
+ Name: ddtrace-internal
3
+ Version: 0.0.0
4
+ Summary: Stub internal Datadog Python package (ddtrace-internal).
5
+ Author-email: "Datadog, Inc." <dev@datadoghq.com>
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+
9
+ # ddtrace-internal
10
+
11
+ Stub Python distribution for code used by multiple products in dd-trace-py
12
+
13
+ ## Local install (editable)
14
+
15
+ ```bash
16
+ python -m pip install -e .
17
+ ```
18
+
19
+ ## Running tests
20
+
21
+ ```bash
22
+ cd packages/ddtrace-internal
23
+ riot run # all supported Python versions
24
+ riot run -p 3.12 # a single version
25
+ ```
26
+
27
+ `riot` installs the package fresh into each test venv, so it must be run from this directory (not the repo root). In CI, `riot --wheel-path <dir>` is used instead to test the actual built wheel.
28
+
29
+ ## Layout
30
+
31
+ - `src/_ddtrace_internal/` — package root
32
+ - `tests/<module_path>/test.py` — tests, mirroring the source layout (e.g. `src/_ddtrace_internal/foo.py` → `tests/foo/test.py`)
33
+ - `riotfile.py` — test venv/matrix definitions
@@ -0,0 +1,25 @@
1
+ # ddtrace-internal
2
+
3
+ Stub Python distribution for code used by multiple products in dd-trace-py
4
+
5
+ ## Local install (editable)
6
+
7
+ ```bash
8
+ python -m pip install -e .
9
+ ```
10
+
11
+ ## Running tests
12
+
13
+ ```bash
14
+ cd packages/ddtrace-internal
15
+ riot run # all supported Python versions
16
+ riot run -p 3.12 # a single version
17
+ ```
18
+
19
+ `riot` installs the package fresh into each test venv, so it must be run from this directory (not the repo root). In CI, `riot --wheel-path <dir>` is used instead to test the actual built wheel.
20
+
21
+ ## Layout
22
+
23
+ - `src/_ddtrace_internal/` — package root
24
+ - `tests/<module_path>/test.py` — tests, mirroring the source layout (e.g. `src/_ddtrace_internal/foo.py` → `tests/foo/test.py`)
25
+ - `riotfile.py` — test venv/matrix definitions
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ddtrace-internal"
7
+ version = "0.0.0"
8
+ description = "Stub internal Datadog Python package (ddtrace-internal)."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ authors = [{ name = "Datadog, Inc.", email = "dev@datadoghq.com" }]
12
+
13
+ [tool.setuptools.packages.find]
14
+ where = ["src"]
15
+
16
+ [tool.pytest.ini_options]
17
+ # Tests live at tests/<module_path>/test.py, mirroring the source layout so
18
+ # sibling fixtures/data for a module's tests have a natural home -- pytest's
19
+ # default `test_*.py`/`*_test.py` globs don't match a bare `test.py`.
20
+ python_files = ["test.py", "test_*.py"]
21
+
22
+ [tool.deptry]
23
+ # `setup.py`/`scripts/`/`tests/`/`riotfile.py` aren't part of the installable
24
+ # package and pull in their own build/dev-only imports; deptry's `exclude`
25
+ # is `re.match`-anchored, hence the leading `.*` to match regardless of
26
+ # invocation path.
27
+ exclude = [".*/scripts(/|$)", ".*/setup\\.py$", ".*/tests(/|$)", ".*/riotfile\\.py$"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,5 @@
1
+ """Install shim for setuptools / older pip (configuration lives in pyproject.toml)."""
2
+
3
+ from setuptools import setup
4
+
5
+ setup()
@@ -0,0 +1,41 @@
1
+ """Internal Datadog Python package (stub)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import TYPE_CHECKING
6
+
7
+ if TYPE_CHECKING:
8
+ from types import ModuleType
9
+
10
+ __version__ = "0.0.0"
11
+
12
+
13
+ def check_module_path(module: ModuleType | None, attr_path: str) -> bool:
14
+ """Helper function to safely check if a nested attribute path exists on a module.
15
+
16
+ Args:
17
+ module: The root module object
18
+ attr_path: Dot-separated path to the attribute (e.g., "flows.llm_flows.functions")
19
+
20
+ Returns:
21
+ bool: True if the full path exists, False otherwise
22
+
23
+ Example:
24
+ check_module_path(adk, "flows.llm_flows.functions.__call_tool_async")
25
+ check_module_path(adk, "agents.llm_agent.LlmAgent")
26
+ """
27
+ if not module:
28
+ return False
29
+
30
+ try:
31
+ current = module
32
+ for attr in attr_path.split("."):
33
+ if not hasattr(current, attr):
34
+ return False
35
+ current = getattr(current, attr)
36
+
37
+ return True
38
+ except (ImportError, AttributeError):
39
+ # Some modules may raise ImportError when accessing attributes that require
40
+ # additional dependencies (e.g., ContainerCodeExecutor requiring Docker for google-adk and an extra pkg install)
41
+ return False
@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.4
2
+ Name: ddtrace-internal
3
+ Version: 0.0.0
4
+ Summary: Stub internal Datadog Python package (ddtrace-internal).
5
+ Author-email: "Datadog, Inc." <dev@datadoghq.com>
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+
9
+ # ddtrace-internal
10
+
11
+ Stub Python distribution for code used by multiple products in dd-trace-py
12
+
13
+ ## Local install (editable)
14
+
15
+ ```bash
16
+ python -m pip install -e .
17
+ ```
18
+
19
+ ## Running tests
20
+
21
+ ```bash
22
+ cd packages/ddtrace-internal
23
+ riot run # all supported Python versions
24
+ riot run -p 3.12 # a single version
25
+ ```
26
+
27
+ `riot` installs the package fresh into each test venv, so it must be run from this directory (not the repo root). In CI, `riot --wheel-path <dir>` is used instead to test the actual built wheel.
28
+
29
+ ## Layout
30
+
31
+ - `src/_ddtrace_internal/` — package root
32
+ - `tests/<module_path>/test.py` — tests, mirroring the source layout (e.g. `src/_ddtrace_internal/foo.py` → `tests/foo/test.py`)
33
+ - `riotfile.py` — test venv/matrix definitions
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ setup.py
4
+ src/_ddtrace_internal/__init__.py
5
+ src/ddtrace_internal.egg-info/PKG-INFO
6
+ src/ddtrace_internal.egg-info/SOURCES.txt
7
+ src/ddtrace_internal.egg-info/dependency_links.txt
8
+ src/ddtrace_internal.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ _ddtrace_internal