poetry-plugin-ivcap 0.2.4__py3-none-any.whl → 0.2.5__py3-none-any.whl

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.
@@ -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,6 +60,7 @@ Configurable options in pyproject.toml:
59
60
  ignore_validation_errors = True
60
61
 
61
62
  def handle(self):
63
+
62
64
  poetry = self.application.poetry
63
65
  data = poetry.pyproject.data
64
66
 
@@ -84,6 +86,12 @@ Configurable options in pyproject.toml:
84
86
  print(sid)
85
87
  elif sub == "tool-register":
86
88
  tool_register(data, self.line)
89
+ elif sub == "version":
90
+ #v = poetry.get_plugin('ivcap').version
91
+ v = version("poetry-plugin-ivcap")
92
+ print(f"IVCAP plugin (version {v})")
93
+ return
94
+
87
95
  else:
88
96
  if not (sub == None or sub == "help"):
89
97
  self.line(f"<error>Unknown subcommand: {sub}</error>")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: poetry-plugin-ivcap
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: A custom Poetry command for IVCAP deployments
5
5
  License: MIT
6
6
  Author: Max Ott
@@ -0,0 +1,10 @@
1
+ poetry_plugin_ivcap/docker.py,sha256=9frC-F5S3p3vP-4mrLSlqvtx9ayNZ-xZXsMkWAtg4y4,7952
2
+ poetry_plugin_ivcap/ivcap.py,sha256=zUSJIxEk2Hl4h5clYLYGShkqCS9KowT_X7x3n4OTEak,5753
3
+ poetry_plugin_ivcap/plugin.py,sha256=0WUhkWz1ERx4tMSqeJFjIXupgjO7L1-X0O5BSZelgm8,4451
4
+ poetry_plugin_ivcap/util.py,sha256=bcjjbKoV_pAgeuC7Ws9XbJa3phFpNVyrRAlFJ1VubRg,3429
5
+ poetry_plugin_ivcap-0.2.5.dist-info/AUTHORS.md,sha256=s9xR4_HAHQgbNlj505LViebt5AtACQmhPf92aJvNYgg,88
6
+ poetry_plugin_ivcap-0.2.5.dist-info/LICENSE,sha256=dsQrDPPwW7iJs9pxahgJKDW8RNPf5FyXG70MFUlxcuk,1587
7
+ poetry_plugin_ivcap-0.2.5.dist-info/METADATA,sha256=Su6j8ZrmdKBub8zwmkKageOpOduuD38uLjpp80QF0Pk,3032
8
+ poetry_plugin_ivcap-0.2.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
9
+ poetry_plugin_ivcap-0.2.5.dist-info/entry_points.txt,sha256=3xagEFBkGgrVe8WyjmhlHLr4JDEWPN_W4DwxnIBWbNY,74
10
+ poetry_plugin_ivcap-0.2.5.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- poetry_plugin_ivcap/docker.py,sha256=9frC-F5S3p3vP-4mrLSlqvtx9ayNZ-xZXsMkWAtg4y4,7952
2
- poetry_plugin_ivcap/ivcap.py,sha256=kG2uplKuYy7RQuEzm6KY_PH7fcHqwug0FphmNBqKLKI,5739
3
- poetry_plugin_ivcap/plugin.py,sha256=T1l8O5Hmh-S2Mqhx9wmF2H8gJ5zAOb4Exv-yS83-4OM,4212
4
- poetry_plugin_ivcap/util.py,sha256=bcjjbKoV_pAgeuC7Ws9XbJa3phFpNVyrRAlFJ1VubRg,3429
5
- poetry_plugin_ivcap-0.2.4.dist-info/AUTHORS.md,sha256=s9xR4_HAHQgbNlj505LViebt5AtACQmhPf92aJvNYgg,88
6
- poetry_plugin_ivcap-0.2.4.dist-info/LICENSE,sha256=dsQrDPPwW7iJs9pxahgJKDW8RNPf5FyXG70MFUlxcuk,1587
7
- poetry_plugin_ivcap-0.2.4.dist-info/METADATA,sha256=UyJme5lRgsJ22v6-XMqAXf0cmEQ5dobiOdQ3tRvg1Ns,3032
8
- poetry_plugin_ivcap-0.2.4.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
9
- poetry_plugin_ivcap-0.2.4.dist-info/entry_points.txt,sha256=3xagEFBkGgrVe8WyjmhlHLr4JDEWPN_W4DwxnIBWbNY,74
10
- poetry_plugin_ivcap-0.2.4.dist-info/RECORD,,