mdify-cli 2.9.1__tar.gz → 2.9.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 2.9.1
3
+ Version: 2.9.3
4
4
  Summary: Convert PDFs and document images into structured Markdown for LLM workflows
5
5
  Author: tiroq
6
6
  License-Expression: MIT
@@ -1,3 +1,3 @@
1
1
  """mdify - Convert documents to Markdown via Docling container."""
2
2
 
3
- __version__ = "2.9.1"
3
+ __version__ = "2.9.3"
@@ -283,10 +283,10 @@ def check_image_exists(runtime: str, image: str) -> bool:
283
283
  try:
284
284
  runtime_name = os.path.basename(runtime)
285
285
 
286
- # Apple Container uses 'image-list' command
286
+ # Apple Container uses 'image list' command (two words)
287
287
  if runtime_name == "container":
288
288
  result = subprocess.run(
289
- [runtime, "image-list", "--format", "json"],
289
+ [runtime, "image", "list", "--format", "json"],
290
290
  capture_output=True,
291
291
  check=False,
292
292
  )
@@ -330,10 +330,10 @@ def pull_image(runtime: str, image: str, quiet: bool = False) -> bool:
330
330
  try:
331
331
  runtime_name = os.path.basename(runtime)
332
332
 
333
- # Apple Container uses 'image-pull' command
333
+ # Apple Container uses 'image pull' command (two words)
334
334
  if runtime_name == "container":
335
335
  result = subprocess.run(
336
- [runtime, "image-pull", image],
336
+ [runtime, "image", "pull", image],
337
337
  capture_output=quiet,
338
338
  check=False,
339
339
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 2.9.1
3
+ Version: 2.9.3
4
4
  Summary: Convert PDFs and document images into structured Markdown for LLM workflows
5
5
  Author: tiroq
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mdify-cli"
3
- version = "2.9.1"
3
+ version = "2.9.3"
4
4
  description = "Convert PDFs and document images into structured Markdown for LLM workflows"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -979,20 +979,20 @@ class TestContainerRuntime:
979
979
  assert "Error pulling image" in captured.err
980
980
 
981
981
  def test_apple_container_pull_success(self):
982
- """Test pull_image uses 'image-pull' for Apple Container."""
982
+ """Test pull_image uses 'image pull' for Apple Container."""
983
983
  mock_result = Mock()
984
984
  mock_result.returncode = 0
985
985
  with patch("mdify.cli.subprocess.run", return_value=mock_result) as mock_run:
986
986
  result = pull_image("/usr/local/bin/container", "test-image", quiet=True)
987
987
  assert result is True
988
988
  mock_run.assert_called_once_with(
989
- ["/usr/local/bin/container", "image-pull", "test-image"],
989
+ ["/usr/local/bin/container", "image", "pull", "test-image"],
990
990
  capture_output=True,
991
991
  check=False,
992
992
  )
993
993
 
994
994
  def test_apple_container_image_exists(self):
995
- """Test check_image_exists uses 'image-list' for Apple Container."""
995
+ """Test check_image_exists uses 'image list' for Apple Container."""
996
996
  mock_result = Mock()
997
997
  mock_result.returncode = 0
998
998
  mock_result.stdout = json.dumps([
@@ -1003,7 +1003,7 @@ class TestContainerRuntime:
1003
1003
  result = check_image_exists("/usr/local/bin/container", "test-image")
1004
1004
  assert result is True
1005
1005
  mock_run.assert_called_once_with(
1006
- ["/usr/local/bin/container", "image-list", "--format", "json"],
1006
+ ["/usr/local/bin/container", "image", "list", "--format", "json"],
1007
1007
  capture_output=True,
1008
1008
  check=False,
1009
1009
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes