ceos-ard-cli 0.5.3__tar.gz → 0.5.4__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.
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/PKG-INFO +1 -1
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/__init__.py +3 -3
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/compile.py +5 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/generate.py +5 -5
- ceos_ard_cli-0.5.4/ceos_ard_cli/version.py +1 -0
- ceos_ard_cli-0.5.3/ceos_ard_cli/version.py +0 -1
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/.editorconfig +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/.github/workflows/checks.yaml +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/.github/workflows/publish.yml +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/.gitignore +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/.pre-commit-config.yaml +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/LICENSE +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/README.md +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/schema.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/strictyaml/__init__.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/strictyaml/id_reference.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/strictyaml/markdown.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/utils/__init__.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/utils/files.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/utils/pfs.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/utils/requirement.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/utils/template.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/utils/yaml.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/ceos_ard_cli/validate.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/pixi.lock +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/pyproject.toml +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/tests/__init__.py +0 -0
- {ceos_ard_cli-0.5.3 → ceos_ard_cli-0.5.4}/tests/test_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ceos-ard-cli
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
4
4
|
Summary: CLI tools for CEOS-ARD to generate and validate PFS documents
|
|
5
5
|
Project-URL: Homepage, https://github.com/ceos-org/ceos-ard-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/ceos-org/ceos-ard-cli
|
|
@@ -41,7 +41,7 @@ def cli():
|
|
|
41
41
|
)
|
|
42
42
|
@click.option(
|
|
43
43
|
"--stable",
|
|
44
|
-
"-
|
|
44
|
+
"-r",
|
|
45
45
|
is_flag=True,
|
|
46
46
|
default=False,
|
|
47
47
|
help="Removes the '-draft' suffix from the version number, e.g. 0.1.0-draft becomes 0.1.0",
|
|
@@ -97,7 +97,7 @@ def compile(pfs, output, input_dir, editable, stable, debug):
|
|
|
97
97
|
@click.option("--docx", is_flag=True, default=True, help="Enable/disable Word (docx) generation")
|
|
98
98
|
@click.option(
|
|
99
99
|
"--stable",
|
|
100
|
-
"-
|
|
100
|
+
"-r",
|
|
101
101
|
is_flag=True,
|
|
102
102
|
default=False,
|
|
103
103
|
help="Removes the '-draft' suffix from the version number, e.g. 0.1.0-draft becomes 0.1.0",
|
|
@@ -178,7 +178,7 @@ def generate(pfs, output, input_dir, self_contained, pdf, docx, stable, id, titl
|
|
|
178
178
|
)
|
|
179
179
|
@click.option(
|
|
180
180
|
"--stable",
|
|
181
|
-
"-
|
|
181
|
+
"-r",
|
|
182
182
|
is_flag=True,
|
|
183
183
|
default=False,
|
|
184
184
|
help="Removes the '-draft' suffix from the version number, e.g. 0.1.0-draft becomes 0.1.0",
|
|
@@ -349,6 +349,9 @@ def compile(
|
|
|
349
349
|
elif not stable:
|
|
350
350
|
data["version"] = data["version"] + "-draft"
|
|
351
351
|
|
|
352
|
+
if stable:
|
|
353
|
+
out = out.parent / f"{out.stem}-v{data['version']}"
|
|
354
|
+
|
|
352
355
|
# write a json file for debugging
|
|
353
356
|
if debug:
|
|
354
357
|
import json
|
|
@@ -360,6 +363,8 @@ def compile(
|
|
|
360
363
|
# write bibtex file to disk
|
|
361
364
|
compile_bibtex(data, f"{out}.bib", input_dir)
|
|
362
365
|
|
|
366
|
+
return out
|
|
367
|
+
|
|
363
368
|
|
|
364
369
|
def compile_bibtex(data, out, input_dir: Path):
|
|
365
370
|
input_dir = Path(input_dir).resolve()
|
|
@@ -63,20 +63,20 @@ def generate(
|
|
|
63
63
|
|
|
64
64
|
if docx:
|
|
65
65
|
print("- Generating editable Markdown")
|
|
66
|
-
compile(pfs, output, input_dir, editable=True, stable=stable, metadata=metadata)
|
|
66
|
+
target = compile(pfs, output, input_dir, editable=True, stable=stable, metadata=metadata)
|
|
67
67
|
|
|
68
68
|
print("- Generating Word")
|
|
69
|
-
run_pandoc(
|
|
69
|
+
run_pandoc(target, "docx", input_dir, self_contained)
|
|
70
70
|
|
|
71
71
|
print("- Generating read-only Markdown")
|
|
72
|
-
compile(pfs, output, input_dir, editable=False, stable=stable, metadata=metadata)
|
|
72
|
+
target = compile(pfs, output, input_dir, editable=False, stable=stable, metadata=metadata)
|
|
73
73
|
|
|
74
74
|
print("- Generating HTML")
|
|
75
|
-
run_pandoc(
|
|
75
|
+
run_pandoc(target, "html", input_dir, self_contained)
|
|
76
76
|
|
|
77
77
|
if pdf:
|
|
78
78
|
print("- Generating PDF")
|
|
79
|
-
run_playwright(
|
|
79
|
+
run_playwright(target, input_dir)
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
def run_playwright(out: Path, input_dir: Path):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.5.4"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.5.3"
|
|
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
|