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.
- {throughline_transform-0.4.0/src/throughline_transform.egg-info → throughline_transform-0.4.1}/PKG-INFO +1 -1
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/pyproject.toml +1 -1
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/cli.py +6 -2
- {throughline_transform-0.4.0 → throughline_transform-0.4.1/src/throughline_transform.egg-info}/PKG-INFO +1 -1
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/tests/test_outputs.py +9 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/LICENSE +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/MANIFEST.in +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/NOTICE +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/README.md +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/setup.cfg +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/__init__.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/blocks.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/html.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/markdown.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/model.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/notes.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/office.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/package.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/progress.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/project.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/provenance.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/shape.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/tables.py +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/SOURCES.txt +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/dependency_links.txt +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/entry_points.txt +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/requires.txt +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform.egg-info/top_level.txt +0 -0
- {throughline_transform-0.4.0 → throughline_transform-0.4.1}/tests/conftest.py +0 -0
- {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.
|
|
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.
|
|
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"
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/cli.py
RENAMED
|
@@ -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(
|
|
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,
|
|
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.
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/__init__.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/blocks.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/html.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/markdown.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/model.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/notes.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/office.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/package.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/progress.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/project.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/provenance.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/shape.py
RENAMED
|
File without changes
|
{throughline_transform-0.4.0 → throughline_transform-0.4.1}/src/throughline_transform/tables.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|