cfengine 0.7.2__tar.gz → 0.8.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.
- {cfengine-0.7.2 → cfengine-0.8.0}/HACKING.md +0 -3
- {cfengine-0.7.2 → cfengine-0.8.0}/PKG-INFO +1 -1
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine.egg-info/PKG-INFO +1 -1
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/dev.py +17 -17
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/docs.py +3 -3
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/main.py +5 -4
- {cfengine-0.7.2 → cfengine-0.8.0}/.github/dependabot.yml +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/.github/workflows/format.yml +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/.github/workflows/lint.yml +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/.github/workflows/pypi-publish.yml +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/.github/workflows/test.yml +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/.gitignore +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/.python-version +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/LICENSE +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/README.md +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/ci/01-install.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/ci/02-safe-tests.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/ci/03-unsafe-tests.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/pyproject.toml +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/setup.cfg +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine.egg-info/SOURCES.txt +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine.egg-info/dependency_links.txt +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine.egg-info/entry_points.txt +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine.egg-info/requires.txt +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine.egg-info/top_level.txt +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/__init__.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/__main__.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/commands.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/deptool.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/format.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/lint.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/paths.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/shell.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/utils.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/src/cfengine_cli/version.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/__init__.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/001_hello_world.expected.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/001_hello_world.input.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/002_basics.expected.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/002_basics.input.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/003_wrapping.expected.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/003_wrapping.input.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/004_comments.expected.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/format/004_comments.input.cf +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/run-format-tests.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/run-shell-tests.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/shell/001-help.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/shell/002-version.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/shell/003-format.sh +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/test_deps.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/test_paths.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/test_utils.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/tests/test_version.py +0 -0
- {cfengine-0.7.2 → cfengine-0.8.0}/uv.lock +0 -0
|
@@ -138,6 +138,3 @@ cat tests/shell/*.sh | bash
|
|
|
138
138
|
- It would be nice if we refactored `validate_config()` in `cfbs` so it would take a simple dictionary (JSON) instead of a special CFBSConfig object.
|
|
139
139
|
- Missing commands:
|
|
140
140
|
- `cfengine install` - Install CFEngine packages / binaries (Wrapping `cf-remote install`).
|
|
141
|
-
- `cfengine dev` - Subcommand for CFEngine developers / maintainers.
|
|
142
|
-
- `cfengine dev release-information` - Generate release information (Wrapping `cfbs generate-release-information`)
|
|
143
|
-
- `cfengine dev dependency-tables` - Update dependency tables in markdown files.
|
|
@@ -2,7 +2,7 @@ import os
|
|
|
2
2
|
from cfbs.commands import generate_release_information_command
|
|
3
3
|
from cfengine_cli.utils import UserError
|
|
4
4
|
from cfengine_cli.deptool import (
|
|
5
|
-
update_dependency_tables,
|
|
5
|
+
update_dependency_tables as _update_dependency_tables,
|
|
6
6
|
print_release_dependency_tables,
|
|
7
7
|
)
|
|
8
8
|
from cfengine_cli.docs import update_docs, check_docs
|
|
@@ -26,35 +26,35 @@ def _expect_repo(repo) -> bool:
|
|
|
26
26
|
return answer
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
def
|
|
29
|
+
def update_dependency_tables() -> int:
|
|
30
30
|
answer = _expect_repo("buildscripts")
|
|
31
31
|
if answer:
|
|
32
|
-
return
|
|
32
|
+
return _update_dependency_tables()
|
|
33
33
|
return 1
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
def
|
|
36
|
+
def print_dependency_tables(args) -> int:
|
|
37
37
|
answer = _expect_repo("buildscripts")
|
|
38
38
|
if answer:
|
|
39
39
|
return print_release_dependency_tables(args)
|
|
40
40
|
return 1
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def format_docs() -> int:
|
|
44
44
|
answer = _expect_repo("documentation")
|
|
45
45
|
if answer:
|
|
46
46
|
return update_docs()
|
|
47
47
|
return 1
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
def
|
|
50
|
+
def lint_docs() -> int:
|
|
51
51
|
answer = _expect_repo("documentation")
|
|
52
52
|
if answer:
|
|
53
53
|
return check_docs()
|
|
54
54
|
return 1
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
def
|
|
57
|
+
def generate_release_information() -> int:
|
|
58
58
|
answer = _expect_repo("release-information")
|
|
59
59
|
if answer:
|
|
60
60
|
generate_release_information_command()
|
|
@@ -63,15 +63,15 @@ def release_information() -> int:
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
def dispatch_dev_subcommand(subcommand, args) -> int:
|
|
66
|
-
if subcommand == "
|
|
67
|
-
return
|
|
68
|
-
if subcommand == "
|
|
69
|
-
return
|
|
70
|
-
if subcommand == "docs
|
|
71
|
-
return
|
|
72
|
-
if subcommand == "docs
|
|
73
|
-
return
|
|
74
|
-
if subcommand == "release-information":
|
|
75
|
-
return
|
|
66
|
+
if subcommand == "update-dependency-tables":
|
|
67
|
+
return update_dependency_tables()
|
|
68
|
+
if subcommand == "print-dependency-tables":
|
|
69
|
+
return print_dependency_tables(args)
|
|
70
|
+
if subcommand == "format-docs":
|
|
71
|
+
return format_docs()
|
|
72
|
+
if subcommand == "lint-docs":
|
|
73
|
+
return lint_docs()
|
|
74
|
+
if subcommand == "generate-release-information":
|
|
75
|
+
return generate_release_information()
|
|
76
76
|
|
|
77
77
|
raise UserError("Invalid cfengine dev subcommand - " + subcommand)
|
|
@@ -215,7 +215,7 @@ def _process_markdown_code_blocks(
|
|
|
215
215
|
for language in languages:
|
|
216
216
|
if language not in SUPPORTED_LANGUAGES:
|
|
217
217
|
raise UserError(
|
|
218
|
-
f"Unsupported language '{language}'. The supported languages are: {
|
|
218
|
+
f"Unsupported language '{language}'. The supported languages are: {', '.join(SUPPORTED_LANGUAGES)}"
|
|
219
219
|
)
|
|
220
220
|
|
|
221
221
|
parsed_markdowns = get_markdown_files(path, languages)
|
|
@@ -331,7 +331,7 @@ def update_docs() -> int:
|
|
|
331
331
|
- JSON code blocks are re-formatted by cfbs pretty (we plan to expand this to CFEngine code blocks)
|
|
332
332
|
|
|
333
333
|
Run by the command:
|
|
334
|
-
cfengine dev docs
|
|
334
|
+
cfengine dev format-docs
|
|
335
335
|
"""
|
|
336
336
|
print("Formatting python files with black...")
|
|
337
337
|
_run_black()
|
|
@@ -357,7 +357,7 @@ def check_docs() -> int:
|
|
|
357
357
|
Currently only JSON syntax checking.
|
|
358
358
|
|
|
359
359
|
Run by the command:
|
|
360
|
-
cfengine dev docs
|
|
360
|
+
cfengine dev lint-docs"""
|
|
361
361
|
_process_markdown_code_blocks(
|
|
362
362
|
path=".",
|
|
363
363
|
languages=["json", "cf3"],
|
|
@@ -60,10 +60,11 @@ def _get_arg_parser():
|
|
|
60
60
|
"dev", help="Utilities intended for developers / maintainers of CFEngine"
|
|
61
61
|
)
|
|
62
62
|
dev_subparsers = dev_parser.add_subparsers(dest="dev_command")
|
|
63
|
-
dev_subparsers.add_parser("dependency-tables")
|
|
64
|
-
dev_subparsers.add_parser("
|
|
65
|
-
dev_subparsers.add_parser("docs
|
|
66
|
-
dev_subparsers.add_parser("
|
|
63
|
+
dev_subparsers.add_parser("update-dependency-tables")
|
|
64
|
+
dev_subparsers.add_parser("print-dependency-tables")
|
|
65
|
+
dev_subparsers.add_parser("format-docs")
|
|
66
|
+
dev_subparsers.add_parser("lint-docs")
|
|
67
|
+
dev_subparsers.add_parser("generate-release-information")
|
|
67
68
|
|
|
68
69
|
return ap
|
|
69
70
|
|
|
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
|
|
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
|