value-semantics-core 2.1.0__tar.gz → 2.3.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.
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/PKG-INFO +2 -2
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/README.md +3 -1
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/pyproject.toml +2 -2
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_comps_manifest_display.py +6 -1
- value_semantics_core-2.3.0/tests/test_figure_statement.py +841 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/__init__.py +112 -0
- value_semantics_core-2.3.0/value_semantics_core/figure_statement.py +2315 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core.egg-info/PKG-INFO +2 -2
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core.egg-info/SOURCES.txt +2 -0
- value_semantics_core-2.3.0/value_semantics_core.egg-info/requires.txt +1 -0
- value_semantics_core-2.1.0/value_semantics_core.egg-info/requires.txt +0 -1
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/setup.cfg +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_enterprise_value.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_forward_ev_adjusted_ebitda.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_forward_pe.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_ntm_forward_ev_adjusted_ebitda.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_ntm_forward_pe.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_numeric_display.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_two_stage_reconciliation.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/comps_manifest_display.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/conventions_ir_v1.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/decimal_wire.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/enterprise_value.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/formatting.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/forward_ev_adjusted_ebitda.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/forward_pe.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/numeric_display.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/period_ref.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/quantity.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core/reconciliation.py +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core.egg-info/dependency_links.txt +0 -0
- {value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/value_semantics_core.egg-info/top_level.txt +0 -0
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Python authority for serialized numeric semantics. `value_semantics_core/__init__.py`
|
|
4
4
|
`__all__` is the public surface; `packages/value-semantics-js` is its TypeScript
|
|
5
|
-
mirror (only `src/generated.ts`
|
|
5
|
+
mirror (only `packages/value-semantics-js/src/generated.ts` is generated from this package).
|
|
6
|
+
|
|
7
|
+
Owner doc: [`docs/reference/value-semantics-contract.md`](../../docs/reference/value-semantics-contract.md) — serialized numeric semantics contract.
|
|
6
8
|
|
|
7
9
|
Tests: `python3 -m pytest packages/value-semantics-core/tests -q`
|
|
8
10
|
|
|
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "value-semantics-core"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.3.0"
|
|
8
8
|
description = "Shared value-semantics types and canonical numeric conventions"
|
|
9
9
|
requires-python = ">=3.10"
|
|
10
|
-
dependencies = ["pydantic>=2.
|
|
10
|
+
dependencies = ["pydantic>=2.12,<3"]
|
|
11
11
|
|
|
12
12
|
[tool.setuptools.packages.find]
|
|
13
13
|
where = ["."]
|
{value_semantics_core-2.1.0 → value_semantics_core-2.3.0}/tests/test_comps_manifest_display.py
RENAMED
|
@@ -73,19 +73,24 @@ def test_vendored_package_imports_without_hidden_dependencies(tmp_path: Path) ->
|
|
|
73
73
|
run_dir.mkdir()
|
|
74
74
|
script = textwrap.dedent(
|
|
75
75
|
"""
|
|
76
|
+
import importlib.util
|
|
76
77
|
from pathlib import Path
|
|
77
78
|
from types import SimpleNamespace
|
|
78
79
|
import sys
|
|
79
80
|
|
|
80
81
|
vendor_root = Path(sys.argv[1]).resolve()
|
|
81
82
|
repository_root = Path(sys.argv[2]).resolve()
|
|
83
|
+
api_root = repository_root / "api"
|
|
82
84
|
sys.path.insert(0, str(vendor_root))
|
|
83
85
|
for entry in sys.path:
|
|
84
86
|
if not entry:
|
|
85
87
|
raise SystemExit("empty sys.path entry would expose the subprocess CWD")
|
|
86
88
|
resolved = Path(entry).resolve()
|
|
87
|
-
if resolved == repository_root or
|
|
89
|
+
if resolved == repository_root or resolved == api_root or api_root in resolved.parents:
|
|
88
90
|
raise SystemExit(f"AI repository leaked onto sys.path: {resolved}")
|
|
91
|
+
for name in ("schema", "agent"):
|
|
92
|
+
if importlib.util.find_spec(name) is not None:
|
|
93
|
+
raise SystemExit(f"AI-repository {name} package unexpectedly importable")
|
|
89
94
|
|
|
90
95
|
from value_semantics_core.comps_manifest_display import (
|
|
91
96
|
display_for_metric,
|