ezcompiler 2.3.2__tar.gz → 2.3.4__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 (97) hide show
  1. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.scripts/dev/update_version.py +7 -7
  2. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/PKG-INFO +1 -1
  3. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/herald.config.json +1 -1
  4. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/pyproject.toml +1 -1
  5. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/requirements.in +1 -1
  6. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/__init__.py +1 -1
  7. ezcompiler-2.3.2/src/ezcompiler/version.py → ezcompiler-2.3.4/src/ezcompiler/_version.py +1 -1
  8. ezcompiler-2.3.2/src/ezcompiler/adapters/cx_freeze_compiler.py → ezcompiler-2.3.4/src/ezcompiler/adapters/_cx_freeze_compiler.py +2 -2
  9. ezcompiler-2.3.2/src/ezcompiler/adapters/disk_uploader.py → ezcompiler-2.3.4/src/ezcompiler/adapters/_disk_uploader.py +1 -2
  10. ezcompiler-2.3.2/src/ezcompiler/adapters/nuitka_compiler.py → ezcompiler-2.3.4/src/ezcompiler/adapters/_nuitka_compiler.py +2 -2
  11. ezcompiler-2.3.2/src/ezcompiler/adapters/pyinstaller_compiler.py → ezcompiler-2.3.4/src/ezcompiler/adapters/_pyinstaller_compiler.py +2 -2
  12. ezcompiler-2.3.2/src/ezcompiler/adapters/server_uploader.py → ezcompiler-2.3.4/src/ezcompiler/adapters/_server_uploader.py +1 -1
  13. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/adapters/base_compiler.py +4 -4
  14. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/adapters/compiler_factory.py +4 -4
  15. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/adapters/uploader_factory.py +3 -3
  16. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/assets/templates/__init__.py +1 -1
  17. ezcompiler-2.3.2/src/ezcompiler/assets/templates/template_loader.py → ezcompiler-2.3.4/src/ezcompiler/assets/templates/_template_loader.py +1 -1
  18. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/interfaces/cli_interface.py +3 -3
  19. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/interfaces/python_api.py +2 -3
  20. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/services/compiler_service.py +2 -3
  21. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/services/config_service.py +3 -3
  22. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/services/pipeline_service.py +1 -3
  23. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/services/template_service.py +4 -6
  24. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/services/uploader_service.py +1 -1
  25. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/shared/__init__.py +3 -3
  26. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/shared/exceptions/__init__.py +22 -17
  27. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/shared/exceptions/services/__init__.py +2 -2
  28. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/services/base.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/services/_base.py +1 -1
  29. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/services/service_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/services/_service_exceptions.py +1 -1
  30. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/shared/exceptions/utils/__init__.py +8 -8
  31. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/compiler_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_compiler_exceptions.py +1 -1
  32. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/config_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_config_exceptions.py +1 -1
  33. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/file_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_file_exceptions.py +1 -1
  34. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/template_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_template_exceptions.py +1 -1
  35. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/uploader_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_uploader_exceptions.py +1 -1
  36. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/validation_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_validation_exceptions.py +1 -1
  37. ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/zip_exceptions.py → ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_zip_exceptions.py +1 -1
  38. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/__init__.py +6 -6
  39. ezcompiler-2.3.2/src/ezcompiler/utils/compiler_utils.py → ezcompiler-2.3.4/src/ezcompiler/utils/_compiler_utils.py +2 -2
  40. ezcompiler-2.3.2/src/ezcompiler/utils/config_utils.py → ezcompiler-2.3.4/src/ezcompiler/utils/_config_utils.py +3 -3
  41. ezcompiler-2.3.2/src/ezcompiler/utils/template_utils.py → ezcompiler-2.3.4/src/ezcompiler/utils/_template_utils.py +1 -1
  42. ezcompiler-2.3.2/src/ezcompiler/utils/zip_utils.py → ezcompiler-2.3.4/src/ezcompiler/utils/_zip_utils.py +2 -2
  43. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/meta_validators.py +1 -1
  44. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/schema_validators.py +1 -1
  45. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/string_validators.py +1 -1
  46. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/type_validators.py +1 -1
  47. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/value_validators.py +1 -1
  48. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/uv.lock +1 -1
  49. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.clinerules +0 -0
  50. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/README.md +0 -0
  51. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/core/advanced-cognitive-conduct.instructions.md +0 -0
  52. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/core/commit-standards.instructions.md +0 -0
  53. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/core/hexagonal-architecture-standards.instructions.md +0 -0
  54. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/languages/python/pyproject-standards.instructions.md +0 -0
  55. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/languages/python/python-development-standards.instructions.md +0 -0
  56. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/instructions/languages/python/python-formatting-standards.instructions.md +0 -0
  57. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/workflows/README_DOC.md +0 -0
  58. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/workflows/README_PUBLISH.md +0 -0
  59. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/workflows/auto-tag.yml +0 -0
  60. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/workflows/docs.yml +0 -0
  61. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.github/workflows/publish-pypi.yml +0 -0
  62. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.gitignore +0 -0
  63. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.pre-commit-config.yaml +0 -0
  64. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.scripts/build/build_package.py +0 -0
  65. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.scripts/build/upload_to_pypi.py +0 -0
  66. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.scripts/dev/generate_architecture_graph.py +0 -0
  67. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/.scripts/dev/lint.py +0 -0
  68. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/AGENTS.md +0 -0
  69. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/CLAUDE.md +0 -0
  70. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/LICENSE +0 -0
  71. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/MANIFEST.in +0 -0
  72. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/README.md +0 -0
  73. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/cliff.toml +0 -0
  74. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/mkdocs.yml +0 -0
  75. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/requirements-dev.in +0 -0
  76. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/adapters/__init__.py +0 -0
  77. /ezcompiler-2.3.2/src/ezcompiler/adapters/disk_file_writer.py → /ezcompiler-2.3.4/src/ezcompiler/adapters/_disk_file_writer.py +0 -0
  78. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/adapters/base_file_writer.py +0 -0
  79. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/adapters/base_uploader.py +0 -0
  80. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/assets/__init__.py +0 -0
  81. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/assets/templates/config/config.json.template +0 -0
  82. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/assets/templates/config/config.yaml.template +0 -0
  83. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/assets/templates/setup/setup.py.template +0 -0
  84. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/assets/templates/version/version_info.txt.template +0 -0
  85. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/interfaces/__init__.py +0 -0
  86. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/py.typed +0 -0
  87. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/services/__init__.py +0 -0
  88. /ezcompiler-2.3.2/src/ezcompiler/shared/compilation_result.py → /ezcompiler-2.3.4/src/ezcompiler/shared/_compilation_result.py +0 -0
  89. /ezcompiler-2.3.2/src/ezcompiler/shared/compiler_config.py → /ezcompiler-2.3.4/src/ezcompiler/shared/_compiler_config.py +0 -0
  90. /ezcompiler-2.3.2/src/ezcompiler/shared/exceptions/utils/base.py → /ezcompiler-2.3.4/src/ezcompiler/shared/exceptions/utils/_base.py +0 -0
  91. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/types.py +0 -0
  92. /ezcompiler-2.3.2/src/ezcompiler/utils/file_utils.py → /ezcompiler-2.3.4/src/ezcompiler/utils/_file_utils.py +0 -0
  93. /ezcompiler-2.3.2/src/ezcompiler/utils/uploader_utils.py → /ezcompiler-2.3.4/src/ezcompiler/utils/_uploader_utils.py +0 -0
  94. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/__init__.py +0 -0
  95. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/domain_validators.py +0 -0
  96. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/format_validators.py +0 -0
  97. {ezcompiler-2.3.2 → ezcompiler-2.3.4}/src/ezcompiler/utils/validators/path_validators.py +0 -0
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env python3
2
2
  # ///////////////////////////////////////////////////////////////
3
- # UPDATE_VERSION - Sync version.py and README badge from pyproject.toml
3
+ # UPDATE_VERSION - Sync _version.py and README badge from pyproject.toml
4
4
  # ///////////////////////////////////////////////////////////////
5
5
 
6
- """Update version.py from the version defined in pyproject.toml.
6
+ """Update _version.py from the version defined in pyproject.toml.
7
7
 
8
8
  pyproject.toml [project].version is the single source of truth.
9
9
  The README version badge is dynamic (shields.io PyPI) and does not need updating.
@@ -63,10 +63,10 @@ def read_version() -> str:
63
63
 
64
64
 
65
65
  def update_version_py(version: str) -> None:
66
- """Update __version__ in src/{project_name}/version.py."""
66
+ """Update __version__ in src/{project_name}/_version.py."""
67
67
  project_root = Path(__file__).resolve().parents[2]
68
68
  version_path = (
69
- project_root / "src" / project_name.lower().replace("-", "_") / "version.py"
69
+ project_root / "src" / project_name.lower().replace("-", "_") / "_version.py"
70
70
  )
71
71
  content = version_path.read_text(encoding="utf-8")
72
72
 
@@ -76,11 +76,11 @@ def update_version_py(version: str) -> None:
76
76
  content,
77
77
  )
78
78
  if new_content == content:
79
- console.print(f"[dim]✓ version.py already at {version} — no change[/dim]")
79
+ console.print(f"[dim]✓ _version.py already at {version} — no change[/dim]")
80
80
  return
81
81
  version_path.write_text(new_content, encoding="utf-8")
82
82
  console.print(
83
- f"[green]✓[/green] Updated [cyan]version.py[/cyan] to [bold]{version}[/bold]"
83
+ f"[green]✓[/green] Updated [cyan]_version.py[/cyan] to [bold]{version}[/bold]"
84
84
  )
85
85
 
86
86
 
@@ -99,7 +99,7 @@ def main() -> None:
99
99
  console.print(
100
100
  Panel.fit(
101
101
  f"[bold green]✓ Version synchronization completed![/bold green]\n"
102
- f"[dim]version.py updated to {version}[/dim]",
102
+ f"[dim]_version.py updated to {version}[/dim]",
103
103
  border_style="green",
104
104
  )
105
105
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezcompiler
3
- Version: 2.3.2
3
+ Version: 2.3.4
4
4
  Summary: Project compilation and distribution framework for Python projects
5
5
  Project-URL: Homepage, https://github.com/neuraaak/ezcompiler
6
6
  Project-URL: Documentation, https://neuraaak.github.io/ezcompiler/
@@ -19,4 +19,4 @@
19
19
  "thresholds": {
20
20
  "maxFileLines": 500
21
21
  }
22
- }
22
+ }
@@ -14,7 +14,7 @@ build-backend = "hatchling.build"
14
14
 
15
15
  [project]
16
16
  name = "ezcompiler"
17
- version = "2.3.2"
17
+ version = "2.3.4"
18
18
  description = "Project compilation and distribution framework for Python projects"
19
19
  readme = { file = "README.md", content-type = "text/markdown" }
20
20
  requires-python = ">=3.11"
@@ -6,4 +6,4 @@ requests>=2.28.0
6
6
  click>=8.0.0
7
7
  PyYAML>=6.0
8
8
  ezplog>=2.0.2
9
- tomli-w>=1.0.0
9
+ tomli-w>=1.0.0
@@ -49,6 +49,7 @@ from __future__ import annotations
49
49
  import sys
50
50
 
51
51
  # Local imports
52
+ from ._version import __version__
52
53
  from .interfaces import EzCompiler
53
54
  from .shared import (
54
55
  CompilationError,
@@ -61,7 +62,6 @@ from .shared import (
61
62
  VersionError,
62
63
  )
63
64
  from .types import CompilerName, FilePath, IncludeFiles, JsonMap, UploadTarget
64
- from .version import __version__
65
65
 
66
66
  # ///////////////////////////////////////////////////////////////
67
67
  # METADATA INFORMATION
@@ -7,4 +7,4 @@
7
7
 
8
8
  from __future__ import annotations
9
9
 
10
- __version__ = "2.3.2"
10
+ __version__ = "2.3.4"
@@ -29,7 +29,7 @@ from pathlib import Path
29
29
  from typing import Any
30
30
 
31
31
  # Local imports
32
- from ..shared.compiler_config import CompilerConfig
32
+ from ..shared import CompilerConfig
33
33
  from ..shared.exceptions import CompilationError
34
34
  from .base_compiler import BaseCompiler
35
35
 
@@ -124,7 +124,7 @@ class CxFreezeCompiler(BaseCompiler):
124
124
  data = self._get_include_files_data()
125
125
 
126
126
  # Determine base for executable (Win32GUI for no-console on Windows)
127
- from ..utils.compiler_utils import CompilerUtils
127
+ from ..utils._compiler_utils import CompilerUtils
128
128
 
129
129
  base = CompilerUtils.get_windows_base_for_console(console)
130
130
 
@@ -27,8 +27,7 @@ from typing import Any
27
27
 
28
28
  # Local imports
29
29
  from ..shared.exceptions import UploadError
30
- from ..utils.file_utils import FileUtils
31
- from ..utils.uploader_utils import UploaderUtils
30
+ from ..utils import FileUtils, UploaderUtils
32
31
  from .base_uploader import BaseUploader
33
32
 
34
33
  # ///////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ import sys
24
24
  from pathlib import Path
25
25
 
26
26
  # Local imports
27
- from ..shared.compiler_config import CompilerConfig
27
+ from ..shared import CompilerConfig
28
28
  from ..shared.exceptions import CompilationError
29
29
  from .base_compiler import BaseCompiler
30
30
 
@@ -90,7 +90,7 @@ class NuitkaCompiler(BaseCompiler):
90
90
  self._prepare_output_directory()
91
91
 
92
92
  # Choose output mode
93
- from ..utils.compiler_utils import CompilerUtils
93
+ from ..utils._compiler_utils import CompilerUtils
94
94
 
95
95
  onefile = CompilerUtils.check_onefile_mode()
96
96
  self._zip_needed = not onefile
@@ -27,7 +27,7 @@ import sys
27
27
  from pathlib import Path
28
28
 
29
29
  # Local imports
30
- from ..shared.compiler_config import CompilerConfig
30
+ from ..shared import CompilerConfig
31
31
  from ..shared.exceptions import CompilationError
32
32
  from .base_compiler import BaseCompiler
33
33
 
@@ -121,7 +121,7 @@ class PyInstallerCompiler(BaseCompiler):
121
121
  self._prepare_output_directory()
122
122
 
123
123
  # Determine output type and ZIP behavior
124
- from ..utils.compiler_utils import CompilerUtils
124
+ from ..utils._compiler_utils import CompilerUtils
125
125
 
126
126
  onefile = CompilerUtils.check_onefile_mode()
127
127
  self._zip_needed = not onefile
@@ -28,7 +28,7 @@ import requests
28
28
 
29
29
  # Local imports
30
30
  from ..shared.exceptions import UploadError
31
- from ..utils.uploader_utils import UploaderUtils
31
+ from ..utils import UploaderUtils
32
32
  from .base_uploader import BaseUploader
33
33
 
34
34
  # ///////////////////////////////////////////////////////////////
@@ -22,7 +22,7 @@ from __future__ import annotations
22
22
  from abc import ABC, abstractmethod
23
23
 
24
24
  # Local imports
25
- from ..shared.compiler_config import CompilerConfig
25
+ from ..shared import CompilerConfig
26
26
 
27
27
  # ///////////////////////////////////////////////////////////////
28
28
  # CLASSES
@@ -148,7 +148,7 @@ class BaseCompiler(ABC):
148
148
  Called at the start of compile() to ensure config is valid.
149
149
  Uses CompilerUtils internally.
150
150
  """
151
- from ..utils.compiler_utils import CompilerUtils
151
+ from ..utils._compiler_utils import CompilerUtils
152
152
 
153
153
  CompilerUtils.validate_compiler_config(self._config)
154
154
 
@@ -163,7 +163,7 @@ class BaseCompiler(ABC):
163
163
  Called before compilation to ensure output directory is ready.
164
164
  Uses CompilerUtils internally.
165
165
  """
166
- from ..utils.compiler_utils import CompilerUtils
166
+ from ..utils._compiler_utils import CompilerUtils
167
167
 
168
168
  CompilerUtils.prepare_compiler_output_directory(self._config)
169
169
 
@@ -231,6 +231,6 @@ class BaseCompiler(ABC):
231
231
  >>> print(files)
232
232
  ['config.yaml', 'lib/', 'assets/']
233
233
  """
234
- from ..utils.compiler_utils import CompilerUtils
234
+ from ..utils._compiler_utils import CompilerUtils
235
235
 
236
236
  return CompilerUtils.format_include_files_data(self._config)
@@ -16,12 +16,12 @@ from __future__ import annotations
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
18
  # Local imports
19
- from ..shared.compiler_config import CompilerConfig
19
+ from ..shared import CompilerConfig
20
20
  from ..shared.exceptions import CompilationError
21
+ from ._cx_freeze_compiler import CxFreezeCompiler
22
+ from ._nuitka_compiler import NuitkaCompiler
23
+ from ._pyinstaller_compiler import PyInstallerCompiler
21
24
  from .base_compiler import BaseCompiler
22
- from .cx_freeze_compiler import CxFreezeCompiler
23
- from .nuitka_compiler import NuitkaCompiler
24
- from .pyinstaller_compiler import PyInstallerCompiler
25
25
 
26
26
  # ///////////////////////////////////////////////////////////////
27
27
  # CLASSES
@@ -21,10 +21,10 @@ from typing import Any
21
21
 
22
22
  # Local imports
23
23
  from ..shared.exceptions import UploadError
24
- from ..utils.uploader_utils import UploaderUtils
24
+ from ..utils import UploaderUtils
25
+ from ._disk_uploader import DiskUploader
26
+ from ._server_uploader import ServerUploader
25
27
  from .base_uploader import BaseUploader
26
- from .disk_uploader import DiskUploader
27
- from .server_uploader import ServerUploader
28
28
 
29
29
  # ///////////////////////////////////////////////////////////////
30
30
  # CLASSES
@@ -18,7 +18,7 @@ from __future__ import annotations
18
18
  # IMPORTS
19
19
  # ///////////////////////////////////////////////////////////////
20
20
  # Local imports
21
- from .template_loader import TemplateLoader
21
+ from ._template_loader import TemplateLoader
22
22
 
23
23
  # ///////////////////////////////////////////////////////////////
24
24
  # PUBLIC API
@@ -21,7 +21,7 @@ from pathlib import Path
21
21
  from typing import Any
22
22
 
23
23
  # Local imports
24
- from ...utils.template_utils import TemplateProcessor
24
+ from ...utils import TemplateProcessor
25
25
 
26
26
  # ///////////////////////////////////////////////////////////////
27
27
  # CLASSES
@@ -37,17 +37,17 @@ import yaml
37
37
  from ezplog.lib_mode import get_logger, get_printer
38
38
 
39
39
  # Local imports
40
+ from .._version import __version__
40
41
  from ..services import ConfigService, PipelineService, TemplateService, UploaderService
41
42
  from ..shared.exceptions import (
42
43
  CompilationError,
44
+ ConfigError,
43
45
  ConfigurationError,
44
46
  TemplateError,
45
47
  UploadError,
46
48
  VersionError,
49
+ ZipError,
47
50
  )
48
- from ..shared.exceptions.utils.config_exceptions import ConfigError
49
- from ..shared.exceptions.utils.zip_exceptions import ZipError
50
- from ..version import __version__
51
51
 
52
52
  # ///////////////////////////////////////////////////////////////
53
53
  # MODULE-LEVEL LOGGING (lib_mode — passive proxies)
@@ -39,16 +39,15 @@ from ..services import (
39
39
  TemplateService,
40
40
  UploaderService,
41
41
  )
42
- from ..shared import CompilationResult
43
- from ..shared.compiler_config import CompilerConfig
42
+ from ..shared import CompilationResult, CompilerConfig
44
43
  from ..shared.exceptions import (
45
44
  CompilationError,
46
45
  ConfigurationError,
47
46
  TemplateError,
48
47
  UploadError,
49
48
  VersionError,
49
+ ZipError,
50
50
  )
51
- from ..shared.exceptions.utils.zip_exceptions import ZipError
52
51
 
53
52
  # ///////////////////////////////////////////////////////////////
54
53
  # CLASSES
@@ -31,11 +31,10 @@ from ..adapters import (
31
31
  BaseCompiler,
32
32
  CompilerFactory,
33
33
  )
34
- from ..shared.compilation_result import CompilationResult
35
- from ..shared.compiler_config import CompilerConfig
34
+ from ..shared import CompilationResult, CompilerConfig
36
35
  from ..shared.exceptions import CompilationError, ConfigurationError
36
+ from ..utils import ZipUtils
37
37
  from ..utils.validators import validate_compiler_name
38
- from ..utils.zip_utils import ZipUtils
39
38
 
40
39
  # ///////////////////////////////////////////////////////////////
41
40
  # TYPE ALIASES
@@ -23,13 +23,13 @@ from pathlib import Path
23
23
  from typing import Any
24
24
 
25
25
  # Local imports
26
- from ..shared.compiler_config import CompilerConfig
26
+ from ..shared import CompilerConfig
27
27
  from ..shared.exceptions import ConfigurationError
28
- from ..shared.exceptions.utils.config_exceptions import (
28
+ from ..shared.exceptions.utils import (
29
29
  ConfigFileNotFoundError,
30
30
  ConfigFileParseError,
31
31
  )
32
- from ..utils.config_utils import ConfigUtils
32
+ from ..utils._config_utils import ConfigUtils
33
33
 
34
34
  # ///////////////////////////////////////////////////////////////
35
35
  # CLASSES
@@ -20,10 +20,8 @@ from collections.abc import Callable
20
20
  from pathlib import Path
21
21
  from typing import Any
22
22
 
23
- from ..shared.compilation_result import CompilationResult
24
-
25
23
  # Local imports
26
- from ..shared.compiler_config import CompilerConfig
24
+ from ..shared import CompilationResult, CompilerConfig
27
25
  from .compiler_service import CompilerService
28
26
  from .uploader_service import UploaderService
29
27
 
@@ -21,14 +21,12 @@ from __future__ import annotations
21
21
  from pathlib import Path
22
22
  from typing import Any
23
23
 
24
- from ..adapters.base_file_writer import BaseFileWriter
25
- from ..adapters.disk_file_writer import DiskFileWriter
26
-
27
24
  # Local imports
28
- from ..assets.templates.template_loader import TemplateLoader
25
+ from ..adapters import BaseFileWriter
26
+ from ..adapters._disk_file_writer import DiskFileWriter
27
+ from ..assets import TemplateLoader
29
28
  from ..shared.exceptions import TemplateError, VersionError
30
- from ..utils.file_utils import FileUtils
31
- from ..utils.template_utils import TemplateProcessor
29
+ from ..utils import FileUtils, TemplateProcessor
32
30
 
33
31
  # ///////////////////////////////////////////////////////////////
34
32
  # CLASSES
@@ -22,7 +22,7 @@ from pathlib import Path
22
22
  from typing import Any, Literal
23
23
 
24
24
  # Local imports
25
- from ..adapters.uploader_factory import UploaderFactory
25
+ from ..adapters import UploaderFactory
26
26
  from ..shared.exceptions import UploadError
27
27
  from ..utils.validators import validate_upload_structure
28
28
 
@@ -17,8 +17,8 @@ from __future__ import annotations
17
17
  # IMPORTS
18
18
  # ///////////////////////////////////////////////////////////////
19
19
  # Local imports
20
- from .compilation_result import CompilationResult
21
- from .compiler_config import CompilerConfig
20
+ from ._compilation_result import CompilationResult
21
+ from ._compiler_config import CompilerConfig
22
22
  from .exceptions import (
23
23
  CompilationError,
24
24
  ConfigurationError,
@@ -27,7 +27,7 @@ from .exceptions import (
27
27
  UploadError,
28
28
  VersionError,
29
29
  )
30
- from .exceptions.utils.file_exceptions import FileError
30
+ from .exceptions.utils._file_exceptions import FileError
31
31
 
32
32
  # ///////////////////////////////////////////////////////////////
33
33
  # TYPE ALIASES
@@ -42,20 +42,22 @@ from .services import (
42
42
  # IMPORTS - Exception modules from utils
43
43
  # ///////////////////////////////////////////////////////////////
44
44
  from .utils import (
45
- base,
46
- compiler_exceptions,
47
- config_exceptions,
48
- file_exceptions,
49
- template_exceptions,
50
- uploader_exceptions,
51
- validation_exceptions,
52
- zip_exceptions,
45
+ _base,
46
+ _compiler_exceptions,
47
+ _config_exceptions,
48
+ _file_exceptions,
49
+ _template_exceptions,
50
+ _uploader_exceptions,
51
+ _validation_exceptions,
52
+ _zip_exceptions,
53
53
  )
54
54
 
55
55
  # ///////////////////////////////////////////////////////////////
56
56
  # RE-EXPORTS - Base exception for backward compatibility
57
57
  # ///////////////////////////////////////////////////////////////
58
- from .utils.base import EzCompilerError
58
+ from .utils._base import EzCompilerError
59
+ from .utils._config_exceptions import ConfigError
60
+ from .utils._zip_exceptions import ZipError
59
61
 
60
62
  # ///////////////////////////////////////////////////////////////
61
63
  # PUBLIC API - Exception modules
@@ -64,14 +66,14 @@ from .utils.base import EzCompilerError
64
66
  __all__ = [
65
67
  # Exception modules
66
68
  "services",
67
- "base",
68
- "compiler_exceptions",
69
- "config_exceptions",
70
- "file_exceptions",
71
- "uploader_exceptions",
72
- "template_exceptions",
73
- "validation_exceptions",
74
- "zip_exceptions",
69
+ "_base",
70
+ "_compiler_exceptions",
71
+ "_config_exceptions",
72
+ "_file_exceptions",
73
+ "_uploader_exceptions",
74
+ "_template_exceptions",
75
+ "_validation_exceptions",
76
+ "_zip_exceptions",
75
77
  # Base exception (re-exported for convenience)
76
78
  "EzCompilerError",
77
79
  # Service exceptions (re-exported for convenience)
@@ -83,4 +85,7 @@ __all__ = [
83
85
  "VersionError",
84
86
  "UploaderServiceError",
85
87
  "UploadError",
88
+ # Util exceptions promoted for interface layer use
89
+ "ConfigError",
90
+ "ZipError",
86
91
  ]
@@ -16,8 +16,8 @@ from __future__ import annotations
16
16
  # ///////////////////////////////////////////////////////////////
17
17
  # IMPORTS - Service exceptions
18
18
  # ///////////////////////////////////////////////////////////////
19
- from .base import EzCompilerServiceError
20
- from .service_exceptions import (
19
+ from ._base import EzCompilerServiceError
20
+ from ._service_exceptions import (
21
21
  CompilationError,
22
22
  CompilerServiceError,
23
23
  ConfigurationError,
@@ -11,7 +11,7 @@ This module defines the base exception class that all other exceptions inherit f
11
11
 
12
12
  from __future__ import annotations
13
13
 
14
- from ..utils.base import EzCompilerError
14
+ from ..utils._base import EzCompilerError
15
15
 
16
16
 
17
17
  class EzCompilerServiceError(EzCompilerError):
@@ -16,7 +16,7 @@ from __future__ import annotations
16
16
  # ///////////////////////////////////////////////////////////////
17
17
  # IMPORTS
18
18
  # ///////////////////////////////////////////////////////////////
19
- from .base import EzCompilerServiceError
19
+ from ._base import EzCompilerServiceError
20
20
 
21
21
  # ///////////////////////////////////////////////////////////////
22
22
  # EXCEPTIONS - COMPILER SERVICE
@@ -24,12 +24,12 @@ from __future__ import annotations
24
24
  # ///////////////////////////////////////////////////////////////
25
25
  # IMPORTS - Base exception
26
26
  # ///////////////////////////////////////////////////////////////
27
- from .base import EzCompilerError
27
+ from ._base import EzCompilerError
28
28
 
29
29
  # ///////////////////////////////////////////////////////////////
30
30
  # IMPORTS - Compiler exceptions
31
31
  # ///////////////////////////////////////////////////////////////
32
- from .compiler_exceptions import (
32
+ from ._compiler_exceptions import (
33
33
  CompilationExecutionError,
34
34
  CompilerConfigValidationError,
35
35
  CompilerError,
@@ -42,7 +42,7 @@ from .compiler_exceptions import (
42
42
  # ///////////////////////////////////////////////////////////////
43
43
  # IMPORTS - Config exceptions
44
44
  # ///////////////////////////////////////////////////////////////
45
- from .config_exceptions import (
45
+ from ._config_exceptions import (
46
46
  CompilerOptionError,
47
47
  ConfigError,
48
48
  ConfigFieldValidationError,
@@ -58,7 +58,7 @@ from .config_exceptions import (
58
58
  # ///////////////////////////////////////////////////////////////
59
59
  # IMPORTS - File exceptions
60
60
  # ///////////////////////////////////////////////////////////////
61
- from .file_exceptions import (
61
+ from ._file_exceptions import (
62
62
  DirectoryCreationError,
63
63
  DirectoryListError,
64
64
  FileAccessError,
@@ -73,7 +73,7 @@ from .file_exceptions import (
73
73
  # ///////////////////////////////////////////////////////////////
74
74
  # IMPORTS - ZIP exceptions
75
75
  # ///////////////////////////////////////////////////////////////
76
- from .template_exceptions import (
76
+ from ._template_exceptions import (
77
77
  TemplateFileWriteError,
78
78
  TemplateProcessingError,
79
79
  TemplateSubstitutionError,
@@ -83,7 +83,7 @@ from .template_exceptions import (
83
83
  # ///////////////////////////////////////////////////////////////
84
84
  # IMPORTS - Uploader exceptions
85
85
  # ///////////////////////////////////////////////////////////////
86
- from .uploader_exceptions import (
86
+ from ._uploader_exceptions import (
87
87
  BackupGenerationError,
88
88
  ServerConfigError,
89
89
  SourcePathError,
@@ -96,7 +96,7 @@ from .uploader_exceptions import (
96
96
  # ///////////////////////////////////////////////////////////////
97
97
  # IMPORTS - Validation exceptions
98
98
  # ///////////////////////////////////////////////////////////////
99
- from .validation_exceptions import (
99
+ from ._validation_exceptions import (
100
100
  ChoiceValidationError,
101
101
  FormatValidationError,
102
102
  LengthValidationError,
@@ -107,7 +107,7 @@ from .validation_exceptions import (
107
107
  TypeValidationError,
108
108
  ValidationError,
109
109
  )
110
- from .zip_exceptions import (
110
+ from ._zip_exceptions import (
111
111
  ZipCompressionError,
112
112
  ZipCreationError,
113
113
  ZipError,
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -15,7 +15,7 @@ from __future__ import annotations
15
15
  # ///////////////////////////////////////////////////////////////
16
16
  # IMPORTS
17
17
  # ///////////////////////////////////////////////////////////////
18
- from .base import EzCompilerError
18
+ from ._base import EzCompilerError
19
19
 
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # EXCEPTIONS
@@ -20,12 +20,12 @@ from __future__ import annotations
20
20
  # ///////////////////////////////////////////////////////////////
21
21
  # Local imports
22
22
  from . import validators
23
- from .compiler_utils import CompilerUtils
24
- from .config_utils import ConfigUtils
25
- from .file_utils import FileUtils
26
- from .template_utils import TemplateProcessor
27
- from .uploader_utils import UploaderUtils
28
- from .zip_utils import ZipUtils
23
+ from ._compiler_utils import CompilerUtils
24
+ from ._config_utils import ConfigUtils
25
+ from ._file_utils import FileUtils
26
+ from ._template_utils import TemplateProcessor
27
+ from ._uploader_utils import UploaderUtils
28
+ from ._zip_utils import ZipUtils
29
29
 
30
30
  # ///////////////////////////////////////////////////////////////
31
31
  # PUBLIC API
@@ -22,13 +22,13 @@ from __future__ import annotations
22
22
  from pathlib import Path
23
23
 
24
24
  # Local imports
25
- from ..shared.compiler_config import CompilerConfig
25
+ from ..shared import CompilerConfig
26
26
  from ..shared.exceptions.utils import (
27
27
  CompilerConfigValidationError,
28
28
  MainFileNotFoundError,
29
29
  OutputDirectoryError,
30
30
  )
31
- from .file_utils import FileUtils
31
+ from ._file_utils import FileUtils
32
32
 
33
33
  # ///////////////////////////////////////////////////////////////
34
34
  # CLASSES
@@ -31,15 +31,15 @@ from typing import Any
31
31
  import yaml
32
32
 
33
33
  # Local imports
34
- from ..shared.compiler_config import CompilerConfig
35
- from ..shared.exceptions.utils.config_exceptions import (
34
+ from ..shared import CompilerConfig
35
+ from ..shared.exceptions.utils import (
36
36
  CompilerOptionError,
37
37
  ConfigFileNotFoundError,
38
38
  ConfigFileParseError,
39
39
  ConfigPathError,
40
40
  MissingRequiredConfigError,
41
41
  )
42
- from .file_utils import FileUtils
42
+ from ._file_utils import FileUtils
43
43
  from .validators import validate_string_length
44
44
 
45
45
  # ///////////////////////////////////////////////////////////////
@@ -24,7 +24,7 @@ from pathlib import Path
24
24
  from typing import Any
25
25
 
26
26
  # Local imports
27
- from ..shared.exceptions.utils.template_exceptions import (
27
+ from ..shared.exceptions.utils import (
28
28
  TemplateFileWriteError,
29
29
  TemplateSubstitutionError,
30
30
  TemplateValidationError,
@@ -22,14 +22,14 @@ from collections.abc import Callable
22
22
  from pathlib import Path
23
23
 
24
24
  # Local imports
25
- from ..shared.exceptions.utils.zip_exceptions import (
25
+ from ..shared.exceptions.utils import (
26
26
  ZipCreationError,
27
27
  ZipExtractionError,
28
28
  ZipFileCorruptedError,
29
29
  ZipFileNotFoundError,
30
30
  ZipPathError,
31
31
  )
32
- from .file_utils import FileUtils
32
+ from ._file_utils import FileUtils
33
33
 
34
34
  # ///////////////////////////////////////////////////////////////
35
35
  # CLASSES
@@ -20,7 +20,7 @@ from collections.abc import Callable
20
20
  from typing import Any
21
21
 
22
22
  # Local imports
23
- from ...shared.exceptions.utils.validation_exceptions import SchemaValidationError
23
+ from ...shared.exceptions.utils import SchemaValidationError
24
24
 
25
25
  # ///////////////////////////////////////////////////////////////
26
26
  # FUNCTIONS
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
  from typing import Any
20
20
 
21
21
  # Local imports
22
- from ...shared.exceptions.utils.validation_exceptions import (
22
+ from ...shared.exceptions.utils import (
23
23
  FormatValidationError,
24
24
  LengthValidationError,
25
25
  RequiredFieldError,
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
  import re
20
20
 
21
21
  # Local imports
22
- from ...shared.exceptions.utils.validation_exceptions import PatternValidationError
22
+ from ...shared.exceptions.utils import PatternValidationError
23
23
 
24
24
  # ///////////////////////////////////////////////////////////////
25
25
  # FUNCTIONS
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
  from typing import Any
20
20
 
21
21
  # Local imports
22
- from ...shared.exceptions.utils.validation_exceptions import TypeValidationError
22
+ from ...shared.exceptions.utils import TypeValidationError
23
23
 
24
24
  # ///////////////////////////////////////////////////////////////
25
25
  # FUNCTIONS
@@ -19,7 +19,7 @@ from __future__ import annotations
19
19
  from typing import Any
20
20
 
21
21
  # Local imports
22
- from ...shared.exceptions.utils.validation_exceptions import (
22
+ from ...shared.exceptions.utils import (
23
23
  ChoiceValidationError,
24
24
  LengthValidationError,
25
25
  RangeValidationError,
@@ -489,7 +489,7 @@ wheels = [
489
489
 
490
490
  [[package]]
491
491
  name = "ezcompiler"
492
- version = "2.3.2"
492
+ version = "2.3.4"
493
493
  source = { editable = "." }
494
494
  dependencies = [
495
495
  { name = "click" },
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