throughline-transform 0.4.0__tar.gz → 0.4.1__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 (30) hide show
  1. {throughline_transform-0.4.0/src/throughline_transform.egg-info → throughline_transform-0.4.1}/PKG-INFO +1 -1
  2. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/pyproject.toml +1 -1
  3. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/cli.py +6 -2
  4. {throughline_transform-0.4.0 → throughline_transform-0.4.1/src/throughline_transform.egg-info}/PKG-INFO +1 -1
  5. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/tests/test_outputs.py +9 -0
  6. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/LICENSE +0 -0
  7. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/MANIFEST.in +0 -0
  8. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/NOTICE +0 -0
  9. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/README.md +0 -0
  10. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/setup.cfg +0 -0
  11. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/__init__.py +0 -0
  12. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/blocks.py +0 -0
  13. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/html.py +0 -0
  14. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/markdown.py +0 -0
  15. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/model.py +0 -0
  16. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/notes.py +0 -0
  17. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/office.py +0 -0
  18. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/package.py +0 -0
  19. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/progress.py +0 -0
  20. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/project.py +0 -0
  21. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/provenance.py +0 -0
  22. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/shape.py +0 -0
  23. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/tables.py +0 -0
  24. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/SOURCES.txt +0 -0
  25. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/dependency_links.txt +0 -0
  26. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/entry_points.txt +0 -0
  27. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/requires.txt +0 -0
  28. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/top_level.txt +0 -0
  29. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/tests/conftest.py +0 -0
  30. {throughline_transform-0.4.0 → throughline_transform-0.4.1}/tests/test_surface.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: throughline-transform
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Turn a throughline requirements graph on disk, committed or not, into the forms its readers open: Markdown, a folder of Obsidian notes, CSV, an Excel workbook, a Word document, or a print-ready HTML document. Ships the tl-transform CLI.
5
5
  Author-email: Henry J Grech-Cini <henry.grechcini@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "throughline-transform"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  description = "Turn a throughline requirements graph on disk, committed or not, into the forms its readers open: Markdown, a folder of Obsidian notes, CSV, an Excel workbook, a Word document, or a print-ready HTML document. Ships the tl-transform CLI."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -152,10 +152,14 @@ def main(argv: list[str] | None = None) -> int:
152
152
  try:
153
153
  root = find_graph(args.directory)
154
154
  graph = load(root)
155
+ # UR-0003: the tool that produced the output, named as tl-ratify names itself —
156
+ # this package first, then the throughline that read the graph. The dump
157
+ # records throughline's bare distribution version.
158
+ producer = f"throughline-transform {_v('throughline-transform')} (throughline {graph.tool_version})"
155
159
  provenance = (
156
- stated(graph.tool_version, args.repository, args.ref, args.commit, args.tree)
160
+ stated(producer, args.repository, args.ref, args.commit, args.tree)
157
161
  if any((args.repository, args.ref, args.commit, args.tree))
158
- else provenance_of(root, graph.tool_version)
162
+ else provenance_of(root, producer)
159
163
  )
160
164
  result, default = produce(graph, root, args.format, opts, provenance)
161
165
  with slow(f"still writing {args.output or default}…"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: throughline-transform
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Turn a throughline requirements graph on disk, committed or not, into the forms its readers open: Markdown, a folder of Obsidian notes, CSV, an Excel workbook, a Word document, or a print-ready HTML document. Ships the tl-transform CLI.
5
5
  Author-email: Henry J Grech-Cini <henry.grechcini@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -322,6 +322,15 @@ def test_provenance_reads_git_and_notices_uncommitted_changes(git_graph: Path):
322
322
  subprocess.run(["git", "-C", str(git_graph), "checkout", "--", "."], check=True)
323
323
 
324
324
 
325
+ def test_the_output_names_the_tool_that_produced_it(plain_graph: Path, tmp_path: Path):
326
+ # UR-0003: "the tool that produced it" is this package, named first, and then the
327
+ # throughline that read the graph; the dump records only throughline's version.
328
+ out = tmp_path / "named.md"
329
+ assert main(["md", "-C", str(plain_graph), "-o", str(out), "--repository", "r"]) == 0
330
+ line = next(l for l in out.read_text().splitlines() if "Produced by:" in l)
331
+ assert re.search(r"Produced by: throughline-transform \S+ \(throughline \S+\)$", line), line
332
+
333
+
325
334
  # --- the command (UR-0001, SR-0011) -----------------------------------------
326
335
 
327
336