value-semantics-core 2.1.0__tar.gz → 2.2.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.
Files changed (32) hide show
  1. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/PKG-INFO +2 -2
  2. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/README.md +3 -1
  3. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/pyproject.toml +2 -2
  4. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_comps_manifest_display.py +6 -1
  5. value_semantics_core-2.2.0/tests/test_figure_statement.py +677 -0
  6. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/__init__.py +84 -0
  7. value_semantics_core-2.2.0/value_semantics_core/figure_statement.py +1985 -0
  8. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core.egg-info/PKG-INFO +2 -2
  9. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core.egg-info/SOURCES.txt +2 -0
  10. value_semantics_core-2.2.0/value_semantics_core.egg-info/requires.txt +1 -0
  11. value_semantics_core-2.1.0/value_semantics_core.egg-info/requires.txt +0 -1
  12. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/setup.cfg +0 -0
  13. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_enterprise_value.py +0 -0
  14. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_forward_ev_adjusted_ebitda.py +0 -0
  15. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_forward_pe.py +0 -0
  16. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_ntm_forward_ev_adjusted_ebitda.py +0 -0
  17. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_ntm_forward_pe.py +0 -0
  18. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_numeric_display.py +0 -0
  19. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/tests/test_two_stage_reconciliation.py +0 -0
  20. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/comps_manifest_display.py +0 -0
  21. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/conventions_ir_v1.py +0 -0
  22. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/decimal_wire.py +0 -0
  23. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/enterprise_value.py +0 -0
  24. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/formatting.py +0 -0
  25. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/forward_ev_adjusted_ebitda.py +0 -0
  26. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/forward_pe.py +0 -0
  27. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/numeric_display.py +0 -0
  28. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/period_ref.py +0 -0
  29. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/quantity.py +0 -0
  30. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core/reconciliation.py +0 -0
  31. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core.egg-info/dependency_links.txt +0 -0
  32. {value_semantics_core-2.1.0 → value_semantics_core-2.2.0}/value_semantics_core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: value-semantics-core
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Shared value-semantics types and canonical numeric conventions
5
5
  Requires-Python: >=3.10
6
- Requires-Dist: pydantic<3,>=2.10
6
+ Requires-Dist: pydantic<3,>=2.12
@@ -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` there is generated from this package).
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.1.0"
7
+ version = "2.2.0"
8
8
  description = "Shared value-semantics types and canonical numeric conventions"
9
9
  requires-python = ">=3.10"
10
- dependencies = ["pydantic>=2.10,<3"]
10
+ dependencies = ["pydantic>=2.12,<3"]
11
11
 
12
12
  [tool.setuptools.packages.find]
13
13
  where = ["."]
@@ -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 repository_root in resolved.parents:
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,