openjd-cli 0.7.1__tar.gz → 0.7.3__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.
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/PKG-INFO +1 -1
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/_version.py +16 -3
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/pyproject.toml +2 -1
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_common/_validation_utils.py +3 -2
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_create_argparser.py +7 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_version.py +16 -3
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/.gitignore +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/LICENSE +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/NOTICE +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/README.md +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/hatch.toml +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/hatch_version_hook.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/__main__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_check/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_check/_check_command.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_common/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_common/_extensions.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_common/_job_from_template.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/_local_session/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/_local_session/_actions.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/_local_session/_logs.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/_local_session/_session_manager.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/_run_command.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_schema/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_schema/_schema_command.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_summary/__init__.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_summary/_summary_command.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_summary/_summary_output.py +0 -0
- {openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openjd-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: Provides a command-line interface for working with Open Job Description templates.
|
|
5
5
|
Project-URL: Homepage, https://github.com/OpenJobDescription/openjd-cli
|
|
6
6
|
Project-URL: Source, https://github.com/OpenJobDescription/openjd-cli
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '0.7.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 7,
|
|
31
|
+
__version__ = version = '0.7.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 7, 3)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
|
@@ -190,6 +190,7 @@ patch_tags = [
|
|
|
190
190
|
"feat",
|
|
191
191
|
"fix",
|
|
192
192
|
"refactor",
|
|
193
|
+
"perf",
|
|
193
194
|
]
|
|
194
195
|
|
|
195
196
|
[tool.semantic_release.publish]
|
|
@@ -203,4 +204,4 @@ trim_blocks = true
|
|
|
203
204
|
lstrip_blocks = true
|
|
204
205
|
|
|
205
206
|
[tool.semantic_release.branches.release]
|
|
206
|
-
match = "(mainline|release)"
|
|
207
|
+
match = "(mainline|release|patch_.*)"
|
|
@@ -15,11 +15,12 @@ from openjd.model import (
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def get_doc_type(filepath: Path) -> DocumentType:
|
|
18
|
+
# If the file has a .json extension, treat it strictly
|
|
19
|
+
# as JSON, otherwise treat it as YAML.
|
|
18
20
|
if filepath.suffix.lower() == ".json":
|
|
19
21
|
return DocumentType.JSON
|
|
20
|
-
|
|
22
|
+
else:
|
|
21
23
|
return DocumentType.YAML
|
|
22
|
-
raise RuntimeError(f"'{str(filepath)}' is not JSON or YAML.")
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
def read_template(template_file: Path) -> dict[str, Any]:
|
|
@@ -5,6 +5,8 @@ import sys
|
|
|
5
5
|
import traceback
|
|
6
6
|
from typing import Optional
|
|
7
7
|
|
|
8
|
+
from ._version import version
|
|
9
|
+
|
|
8
10
|
from ._common import SubparserGroup
|
|
9
11
|
|
|
10
12
|
from ._check import populate_argparser as populate_check_subparser
|
|
@@ -22,6 +24,11 @@ def create_argparser() -> ArgumentParser:
|
|
|
22
24
|
"""Generate the root argparser for the CLI"""
|
|
23
25
|
parser = ArgumentParser(prog="openjd", usage="openjd <command> [arguments]")
|
|
24
26
|
parser.set_defaults(func=lambda _: parser.print_help())
|
|
27
|
+
|
|
28
|
+
parser.add_argument(
|
|
29
|
+
"--version", action="version", version=f"Open Job Description CLI {version}"
|
|
30
|
+
)
|
|
31
|
+
|
|
25
32
|
subcommands = SubparserGroup(
|
|
26
33
|
parser,
|
|
27
34
|
title="commands",
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '0.7.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 7,
|
|
31
|
+
__version__ = version = '0.7.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 7, 3)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
|
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
|
{openjd_cli-0.7.1 → openjd_cli-0.7.3}/src/openjd/cli/_run/_local_session/_session_manager.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
|