poetry-plugin-ivcap 0.2.4__tar.gz → 0.2.6__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.
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/PKG-INFO +1 -1
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/poetry_plugin_ivcap/ivcap.py +2 -2
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/poetry_plugin_ivcap/plugin.py +10 -1
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/pyproject.toml +1 -1
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/AUTHORS.md +0 -0
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/LICENSE +0 -0
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/README.md +0 -0
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/poetry_plugin_ivcap/docker.py +0 -0
- {poetry_plugin_ivcap-0.2.4 → poetry_plugin_ivcap-0.2.6}/poetry_plugin_ivcap/util.py +0 -0
|
@@ -43,7 +43,7 @@ def service_register(data, line):
|
|
|
43
43
|
if not pkg or pkg == "":
|
|
44
44
|
line(f"<error>No package '{dcfg.docker_name}' found. Please build and publish it first.</error>")
|
|
45
45
|
return
|
|
46
|
-
service_id = get_service_id(data, line)
|
|
46
|
+
service_id = get_service_id(data, False, line)
|
|
47
47
|
|
|
48
48
|
cmd = ["poetry", "run", "python", service, "--print-service-description"]
|
|
49
49
|
line(f"<debug>Running: {' '.join(cmd)} </debug>")
|
|
@@ -85,7 +85,7 @@ def tool_register(data, line):
|
|
|
85
85
|
line(f"<debug>Running: {' '.join(cmd)} </debug>")
|
|
86
86
|
svc = subprocess.check_output(cmd).decode()
|
|
87
87
|
|
|
88
|
-
service_id = get_service_id(data, line)
|
|
88
|
+
service_id = get_service_id(data, False, line)
|
|
89
89
|
svc = svc.replace("#SERVICE_ID#", service_id)
|
|
90
90
|
|
|
91
91
|
with tempfile.NamedTemporaryFile(mode='w+', delete=False) as tmp:
|
|
@@ -8,6 +8,7 @@ from poetry.plugins.application_plugin import ApplicationPlugin
|
|
|
8
8
|
from cleo.commands.command import Command
|
|
9
9
|
from cleo.helpers import argument, option
|
|
10
10
|
import subprocess
|
|
11
|
+
from importlib.metadata import version
|
|
11
12
|
|
|
12
13
|
from poetry_plugin_ivcap.util import get_version
|
|
13
14
|
|
|
@@ -59,10 +60,17 @@ Configurable options in pyproject.toml:
|
|
|
59
60
|
ignore_validation_errors = True
|
|
60
61
|
|
|
61
62
|
def handle(self):
|
|
63
|
+
|
|
64
|
+
sub = self.argument("subcommand")
|
|
65
|
+
if sub == "version":
|
|
66
|
+
#v = poetry.get_plugin('ivcap').version
|
|
67
|
+
v = version("poetry-plugin-ivcap")
|
|
68
|
+
print(f"IVCAP plugin (version {v})")
|
|
69
|
+
return
|
|
70
|
+
|
|
62
71
|
poetry = self.application.poetry
|
|
63
72
|
data = poetry.pyproject.data
|
|
64
73
|
|
|
65
|
-
sub = self.argument("subcommand")
|
|
66
74
|
args = self.argument("args")
|
|
67
75
|
is_silent = self.option("silent")
|
|
68
76
|
|
|
@@ -84,6 +92,7 @@ Configurable options in pyproject.toml:
|
|
|
84
92
|
print(sid)
|
|
85
93
|
elif sub == "tool-register":
|
|
86
94
|
tool_register(data, self.line)
|
|
95
|
+
|
|
87
96
|
else:
|
|
88
97
|
if not (sub == None or sub == "help"):
|
|
89
98
|
self.line(f"<error>Unknown subcommand: {sub}</error>")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|