cpdocs 0.3.8__tar.gz → 0.3.9__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 (171) hide show
  1. {cpdocs-0.3.8 → cpdocs-0.3.9}/PKG-INFO +1 -1
  2. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/__init__.py +1 -1
  3. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/providers/contract.py +1 -4
  4. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/rendering/html.py +1 -2
  5. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_language_configurations.py +15 -10
  6. {cpdocs-0.3.8 → cpdocs-0.3.9}/.github/workflows/docs-tag-rebuild.yml +0 -0
  7. {cpdocs-0.3.8 → cpdocs-0.3.9}/.github/workflows/docs.yml +0 -0
  8. {cpdocs-0.3.8 → cpdocs-0.3.9}/.github/workflows/test.yml +0 -0
  9. {cpdocs-0.3.8 → cpdocs-0.3.9}/.gitignore +0 -0
  10. {cpdocs-0.3.8 → cpdocs-0.3.9}/.reuse/templates/bordered.jinja2 +0 -0
  11. {cpdocs-0.3.8 → cpdocs-0.3.9}/LICENSES/Apache-2.0.txt +0 -0
  12. {cpdocs-0.3.8 → cpdocs-0.3.9}/REUSE.toml +0 -0
  13. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/api/index.md +0 -0
  14. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/cpdocs.yml +0 -0
  15. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/examples/index.md +0 -0
  16. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/explanation/architecture.md +0 -0
  17. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/explanation/feature-sets.md +0 -0
  18. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/how-to/ci.md +0 -0
  19. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/how-to/feature-sets.md +0 -0
  20. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/how-to/generated-headers.md +0 -0
  21. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/how-to/other-build-systems.md +0 -0
  22. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/how-to/properdocs.md +0 -0
  23. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/index.md +0 -0
  24. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/api.md +0 -0
  25. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/cli.md +0 -0
  26. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/cmake.md +0 -0
  27. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/comments.md +0 -0
  28. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/configuration.md +0 -0
  29. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/contract.md +0 -0
  30. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/extraction.md +0 -0
  31. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/reference/links.md +0 -0
  32. {cpdocs-0.3.8 → cpdocs-0.3.9}/docs/web/tutorials/first-reference.md +0 -0
  33. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/.gitignore +0 -0
  34. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/CMakeLists.txt +0 -0
  35. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/docs/api/index.md +0 -0
  36. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/docs/cpdocs.yml +0 -0
  37. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/docs/web/api.md +0 -0
  38. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/docs/web/index.md +0 -0
  39. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/include/acme/math.hpp +0 -0
  40. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/properdocs.yml +0 -0
  41. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/readme.md +0 -0
  42. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/basic-cpp/src/math.cpp +0 -0
  43. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/.gitignore +0 -0
  44. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/CMakeLists.txt +0 -0
  45. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/docs/api/index.md +0 -0
  46. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/docs/cpdocs.yml +0 -0
  47. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/docs/web/api.md +0 -0
  48. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/docs/web/index.md +0 -0
  49. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/include/ring/ring.h +0 -0
  50. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/properdocs.yml +0 -0
  51. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/readme.md +0 -0
  52. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/c-basic/src/ring.c +0 -0
  53. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/.gitignore +0 -0
  54. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/CMakeLists.txt +0 -0
  55. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/docs/api/index.md +0 -0
  56. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/docs/cpdocs-minibuild.yml +0 -0
  57. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/docs/cpdocs.yml +0 -0
  58. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/docs/web/api.md +0 -0
  59. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/docs/web/index.md +0 -0
  60. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/include/demo/solver.hpp +0 -0
  61. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/properdocs.yml +0 -0
  62. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/readme.md +0 -0
  63. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-features/tools/minibuild.py +0 -0
  64. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/.gitignore +0 -0
  65. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/CMakeLists.txt +0 -0
  66. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/docs/api/index.md +0 -0
  67. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/docs/cpdocs.yml +0 -0
  68. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/docs/web/api.md +0 -0
  69. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/docs/web/index.md +0 -0
  70. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/include/meta/meta.hpp +0 -0
  71. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/properdocs.yml +0 -0
  72. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/cpp-templates/readme.md +0 -0
  73. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/CMakeLists.txt +0 -0
  74. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/docs/api.md +0 -0
  75. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/docs/cpdocs.yml +0 -0
  76. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/docs/index.md +0 -0
  77. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/lib/normalize.f90 +0 -0
  78. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/mod/geometry.f90 +0 -0
  79. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/properdocs.yml +0 -0
  80. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/fortran-basic/readme.md +0 -0
  81. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/.gitignore +0 -0
  82. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/CMakeLists.txt +0 -0
  83. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/docs/api/index.md +0 -0
  84. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/docs/cpdocs.yml +0 -0
  85. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/docs/web/api.md +0 -0
  86. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/docs/web/index.md +0 -0
  87. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/generated-template/generated.hpp +0 -0
  88. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/include/acme/core.hpp +0 -0
  89. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/properdocs.yml +0 -0
  90. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/readme.md +0 -0
  91. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/generated-cpp/src/generated.cpp +0 -0
  92. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/.gitignore +0 -0
  93. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/CMakeLists.txt +0 -0
  94. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/docs/api/index.md +0 -0
  95. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/docs/cpdocs.yml +0 -0
  96. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/docs/web/api.md +0 -0
  97. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/docs/web/index.md +0 -0
  98. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/include/geom/vector.hpp +0 -0
  99. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/properdocs.yml +0 -0
  100. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/python/pygeom/__init__.py +0 -0
  101. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/readme.md +0 -0
  102. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/mixed/src/geom.cpp +0 -0
  103. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/.gitignore +0 -0
  104. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/docs/api/index.md +0 -0
  105. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/docs/cpdocs.yml +0 -0
  106. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/docs/web/api.md +0 -0
  107. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/docs/web/index.md +0 -0
  108. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/properdocs.yml +0 -0
  109. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/pyproject.toml +0 -0
  110. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/readme.md +0 -0
  111. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/src/dice/__init__.py +0 -0
  112. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/src/dice/_rng.py +0 -0
  113. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/python-basic/src/dice/core.py +0 -0
  114. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/Cargo.lock +0 -0
  115. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/Cargo.toml +0 -0
  116. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/docs/api.md +0 -0
  117. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/docs/cpdocs.yml +0 -0
  118. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/docs/index.md +0 -0
  119. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/properdocs.yml +0 -0
  120. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/readme.md +0 -0
  121. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/rust-toolchain.toml +0 -0
  122. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/src/geometry.rs +0 -0
  123. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/src/internal.rs +0 -0
  124. {cpdocs-0.3.8 → cpdocs-0.3.9}/examples/rust-basic/src/lib.rs +0 -0
  125. {cpdocs-0.3.8 → cpdocs-0.3.9}/properdocs.yml +0 -0
  126. {cpdocs-0.3.8 → cpdocs-0.3.9}/pyproject.toml +0 -0
  127. {cpdocs-0.3.8 → cpdocs-0.3.9}/readme.md +0 -0
  128. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/__main__.py +0 -0
  129. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/build.py +0 -0
  130. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/cli.py +0 -0
  131. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/config.py +0 -0
  132. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/contract.py +0 -0
  133. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/__init__.py +0 -0
  134. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/base.py +0 -0
  135. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/cpp/__init__.py +0 -0
  136. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/cpp/extract.py +0 -0
  137. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/cpp/render.py +0 -0
  138. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/fortran/__init__.py +0 -0
  139. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/fortran/extract.py +0 -0
  140. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/fortran/render.py +0 -0
  141. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/python/__init__.py +0 -0
  142. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/python/extract.py +0 -0
  143. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/python/render.py +0 -0
  144. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/rust/__init__.py +0 -0
  145. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/rust/extract.py +0 -0
  146. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/languages/rust/render.py +0 -0
  147. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/model.py +0 -0
  148. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/plugins/__init__.py +0 -0
  149. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/plugins/properdocs/__init__.py +0 -0
  150. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/plugins/properdocs/core.py +0 -0
  151. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/plugins/properdocs/plugin.py +0 -0
  152. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/providers/__init__.py +0 -0
  153. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/providers/cargo.py +0 -0
  154. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/providers/cmake.py +0 -0
  155. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/providers/python.py +0 -0
  156. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/rendering/__init__.py +0 -0
  157. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/rendering/common.py +0 -0
  158. {cpdocs-0.3.8 → cpdocs-0.3.9}/src/cpdocs/versioning.py +0 -0
  159. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/conftest.py +0 -0
  160. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_api_reference.py +0 -0
  161. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_build.py +0 -0
  162. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_config.py +0 -0
  163. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_contract.py +0 -0
  164. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_examples.py +0 -0
  165. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_feature_set_signatures.py +0 -0
  166. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_properdocs_core.py +0 -0
  167. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_rust_example.py +0 -0
  168. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_rust_provider.py +0 -0
  169. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_tagged_docs_ci.py +0 -0
  170. {cpdocs-0.3.8 → cpdocs-0.3.9}/test/test_versioning.py +0 -0
  171. {cpdocs-0.3.8 → cpdocs-0.3.9}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cpdocs
3
- Version: 0.3.8
3
+ Version: 0.3.9
4
4
  Summary: Semantic, versioned API documentation for C, C++, CUDA, HIP, Fortran, Python and Rust projects
5
5
  Project-URL: Source, https://github.com/ambhora/cpdocs
6
6
  Author-email: Jayesh Badwaik <j.badwaik@fz-juelich.de>
@@ -4,4 +4,4 @@
4
4
  # --------------------------------------------------------------------------------------------------
5
5
  """Language-neutral semantic API documentation generator."""
6
6
 
7
- __version__ = "0.3.8"
7
+ __version__ = "0.3.9"
@@ -43,15 +43,12 @@ def language_template_values(configuration: dict[str, object]) -> dict[str, str]
43
43
  raise RuntimeError(f"cpdocs.yml: language property {path!r} is reserved")
44
44
  result[path] = str(value).lower() if isinstance(value, bool) else str(value)
45
45
  else:
46
- raise RuntimeError(
47
- f"cpdocs.yml: language property {path!r} must be a scalar value"
48
- )
46
+ raise RuntimeError(f"cpdocs.yml: language property {path!r} must be a scalar value")
49
47
 
50
48
  visit("", configuration)
51
49
  return result
52
50
 
53
51
 
54
-
55
52
  def _expand(command: str, values: dict[str, str], *, allowed: set[str], name: str) -> str:
56
53
  placeholders = set(_PLACEHOLDER.findall(command))
57
54
  unknown = sorted(placeholders - allowed)
@@ -1073,8 +1073,7 @@ def _feature_sets_page(graph: ApiGraph, document: Path) -> tuple[str, list[tuple
1073
1073
  body.append(
1074
1074
  f'<tr id="{html.escape(anchor)}">'
1075
1075
  f'<th scope="row">{index}</th>'
1076
- "<td>" + _feature_set_inline(graph, key) + "</td>"
1077
- + configuration_column + "</tr>"
1076
+ "<td>" + _feature_set_inline(graph, key) + "</td>" + configuration_column + "</tr>"
1078
1077
  )
1079
1078
  body.append("</tbody></table></section>")
1080
1079
  # Option metadata are documentation of each resolved build, not extra feature axes.
@@ -68,13 +68,14 @@ Path(output).write_text(json.dumps(data), encoding='utf-8')
68
68
  """,
69
69
  encoding="utf-8",
70
70
  )
71
- command = shlex.quote(sys.executable) + ' language_provider.py'
71
+ command = shlex.quote(sys.executable) + " language_provider.py"
72
72
  (project / "docs" / "cpdocs.yml").write_text(
73
- "contract: 3\nlanguages:\n" + expression
73
+ "contract: 3\nlanguages:\n"
74
+ + expression
74
75
  + "build:\n"
75
- + f' feature-sets: >-\n {command} feature-sets '
76
+ + f" feature-sets: >-\n {command} feature-sets "
76
77
  + '"{{cxx.standard}}" "{{python.version}}" "{{output-file}}"\n'
77
- + f' build: >-\n {command} build '
78
+ + f" build: >-\n {command} build "
78
79
  + '"{{cxx.standard}}" "{{python.version}}" "{{output-file}}" "{{feature-set}}"\n',
79
80
  encoding="utf-8",
80
81
  )
@@ -91,18 +92,22 @@ def test_explicit_keyso_pairs_and_variant_feature_discovery(tmp_path: Path) -> N
91
92
  )
92
93
  graph = build_current(load_config(project / "docs/cpdocs.yml"), output=project / "build")
93
94
  assert len(graph.feature_sets) == 3 # one feature set for C++17, two for C++23
94
- records = [json.loads(line) for line in (project / "build-records.jsonl").read_text().splitlines()]
95
- assert {(item["cxx"], item["python"]) for item in records} == {
96
- ("17", "3.11"), ("23", "3.12")
97
- }
95
+ records = [
96
+ json.loads(line) for line in (project / "build-records.jsonl").read_text().splitlines()
97
+ ]
98
+ assert {(item["cxx"], item["python"]) for item in records} == {("17", "3.11"), ("23", "3.12")}
98
99
  assert len([item for item in records if item["phase"] == "feature-sets"]) == 2
99
100
  assert len([item for item in records if item["phase"] == "build"]) == 3
100
101
  configurations = {key: data["languages"] for key, data in graph.feature_sets.items()}
101
102
  assert {entry["cxx"]["standard"] for entry in configurations.values()} == {17, 23}
102
103
  assert len({key for key in graph.feature_sets}) == 3
103
104
  for language in ("language-001", "language-002"):
104
- assert (project / "build/cpdocs/work/current/language-configurations" / language
105
- / "feature-sets/feature-sets.json").exists()
105
+ assert (
106
+ project
107
+ / "build/cpdocs/work/current/language-configurations"
108
+ / language
109
+ / "feature-sets/feature-sets.json"
110
+ ).exists()
106
111
  feature_page = (project / "build/cpdocs/current/feature-sets/index.html").read_text()
107
112
  assert "cxx.standard=17" in feature_page
108
113
  assert "cxx.standard=23" in feature_page
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes