morphconv 1.0.1__tar.gz → 1.0.2__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.
Files changed (42) hide show
  1. {morphconv-1.0.1 → morphconv-1.0.2}/PKG-INFO +2 -2
  2. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/models_3d.py +4 -0
  3. {morphconv-1.0.1 → morphconv-1.0.2}/morphconv.egg-info/PKG-INFO +2 -2
  4. {morphconv-1.0.1 → morphconv-1.0.2}/morphconv.egg-info/requires.txt +2 -0
  5. {morphconv-1.0.1 → morphconv-1.0.2}/pyproject.toml +2 -2
  6. {morphconv-1.0.1 → morphconv-1.0.2}/LICENSE +0 -0
  7. {morphconv-1.0.1 → morphconv-1.0.2}/README.md +0 -0
  8. {morphconv-1.0.1 → morphconv-1.0.2}/morph/__init__.py +0 -0
  9. {morphconv-1.0.1 → morphconv-1.0.2}/morph/batch.py +0 -0
  10. {morphconv-1.0.1 → morphconv-1.0.2}/morph/cli.py +0 -0
  11. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/__init__.py +0 -0
  12. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/archives.py +0 -0
  13. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/audio.py +0 -0
  14. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/csv_json.py +0 -0
  15. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/csv_to_xlsx.py +0 -0
  16. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/documents.py +0 -0
  17. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/ebooks.py +0 -0
  18. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/fonts.py +0 -0
  19. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/images.py +0 -0
  20. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/json_yaml.py +0 -0
  21. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/ocr.py +0 -0
  22. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/pandas_extra.py +0 -0
  23. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/svg.py +0 -0
  24. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/video.py +0 -0
  25. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/vtracer_converter.py +0 -0
  26. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/web.py +0 -0
  27. {morphconv-1.0.1 → morphconv-1.0.2}/morph/converters/xlsx_to_csv.py +0 -0
  28. {morphconv-1.0.1 → morphconv-1.0.2}/morph/deps.py +0 -0
  29. {morphconv-1.0.1 → morphconv-1.0.2}/morph/ffmpeg_utils.py +0 -0
  30. {morphconv-1.0.1 → morphconv-1.0.2}/morph/history.py +0 -0
  31. {morphconv-1.0.1 → morphconv-1.0.2}/morph/progress.py +0 -0
  32. {morphconv-1.0.1 → morphconv-1.0.2}/morph/registry.py +0 -0
  33. {morphconv-1.0.1 → morphconv-1.0.2}/morph/tui.py +0 -0
  34. {morphconv-1.0.1 → morphconv-1.0.2}/morphconv.egg-info/SOURCES.txt +0 -0
  35. {morphconv-1.0.1 → morphconv-1.0.2}/morphconv.egg-info/dependency_links.txt +0 -0
  36. {morphconv-1.0.1 → morphconv-1.0.2}/morphconv.egg-info/entry_points.txt +0 -0
  37. {morphconv-1.0.1 → morphconv-1.0.2}/morphconv.egg-info/top_level.txt +0 -0
  38. {morphconv-1.0.1 → morphconv-1.0.2}/setup.cfg +0 -0
  39. {morphconv-1.0.1 → morphconv-1.0.2}/tests/test_cli.py +0 -0
  40. {morphconv-1.0.1 → morphconv-1.0.2}/tests/test_converters.py +0 -0
  41. {morphconv-1.0.1 → morphconv-1.0.2}/tests/test_registry.py +0 -0
  42. {morphconv-1.0.1 → morphconv-1.0.2}/tests/test_web.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: morphconv
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: morph — convert anything to anything, from the CLI
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -31,7 +31,7 @@ Requires-Dist: trafilatura>=1.8.0
31
31
  Requires-Dist: crawl4ai>=0.4.0
32
32
  Requires-Dist: playwright>=1.40.0
33
33
  Requires-Dist: vtracer>=0.6.0
34
- Requires-Dist: bpy>=5.0.0
34
+ Requires-Dist: bpy>=5.0.0; python_version < "3.13"
35
35
  Provides-Extra: dev
36
36
  Requires-Dist: pytest>=8.0.0; extra == "dev"
37
37
  Requires-Dist: pytest-mock>=3.12.0; extra == "dev"
@@ -11,6 +11,10 @@ from ..registry import ConversionResult, register
11
11
 
12
12
  def _run_bpy_script(script_content: str) -> None:
13
13
  """Run a bpy script in an isolated subprocess to prevent global state corruption/memory leaks."""
14
+ import importlib.util
15
+ if importlib.util.find_spec("bpy") is None:
16
+ raise RuntimeError(f"3D conversion requires the 'bpy' package (not available on Python {sys.version_info.major}.{sys.version_info.minor}). Please use Python 3.13 or older, or install Blender.")
17
+
14
18
  code = f"""
15
19
  import bpy
16
20
  import sys
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: morphconv
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: morph — convert anything to anything, from the CLI
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -31,7 +31,7 @@ Requires-Dist: trafilatura>=1.8.0
31
31
  Requires-Dist: crawl4ai>=0.4.0
32
32
  Requires-Dist: playwright>=1.40.0
33
33
  Requires-Dist: vtracer>=0.6.0
34
- Requires-Dist: bpy>=5.0.0
34
+ Requires-Dist: bpy>=5.0.0; python_version < "3.13"
35
35
  Provides-Extra: dev
36
36
  Requires-Dist: pytest>=8.0.0; extra == "dev"
37
37
  Requires-Dist: pytest-mock>=3.12.0; extra == "dev"
@@ -23,6 +23,8 @@ trafilatura>=1.8.0
23
23
  crawl4ai>=0.4.0
24
24
  playwright>=1.40.0
25
25
  vtracer>=0.6.0
26
+
27
+ [:python_version < "3.13"]
26
28
  bpy>=5.0.0
27
29
 
28
30
  [dev]
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "morphconv"
7
- version = "1.0.1"
7
+ version = "1.0.2"
8
8
  description = "morph — convert anything to anything, from the CLI"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -35,7 +35,7 @@ dependencies = [
35
35
  "crawl4ai>=0.4.0",
36
36
  "playwright>=1.40.0",
37
37
  "vtracer>=0.6.0",
38
- "bpy>=5.0.0",
38
+ "bpy>=5.0.0; python_version < '3.13'",
39
39
  ]
40
40
 
41
41
  [project.scripts]
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