diffai-python 0.3.15__py3-none-win_amd64.whl → 0.3.16__py3-none-win_amd64.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.
diffai_python/__init__.py CHANGED
@@ -208,21 +208,18 @@ class DiffResult:
208
208
  return self.raw_output
209
209
 
210
210
  def _find_diffai_binary() -> str:
211
- """Find the diffai binary, checking bundled location first."""
212
- # Check if bundled with package
211
+ """Find the diffai binary bundled with package."""
212
+ # Check if bundled with package (OS-specific wheel contains appropriate binary)
213
213
  package_dir = Path(__file__).parent.parent.parent
214
214
  bundled_binary = package_dir / "diffai"
215
215
 
216
216
  if bundled_binary.exists() and bundled_binary.is_file():
217
217
  return str(bundled_binary)
218
218
 
219
- # Fallback to system PATH
220
- system_binary = shutil.which("diffai")
221
- if system_binary:
222
- return system_binary
223
-
219
+ # Error if binary not found - no system PATH fallback allowed
224
220
  raise DiffaiError(
225
- "diffai binary not found. Please ensure diffai is installed or available in PATH."
221
+ f"diffai binary not found at {bundled_binary}. This might indicate a packaging issue. "
222
+ "Please report this at: https://github.com/kako-jun/diffai/issues"
226
223
  )
227
224
 
228
225
  def diff(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffai-python
3
- Version: 0.3.15
3
+ Version: 0.3.16
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -0,0 +1,7 @@
1
+ diffai_python-0.3.16.data/scripts/diffai.exe,sha256=bApalCJYpSuw2k0e7z40gQW04yPRyMQ0-CWaQZDEhdo,243200
2
+ diffai_python-0.3.16.dist-info/METADATA,sha256=2livjX9Y9hVtiqjLV2DVF88Bffdu56NNVUko4CJnGX8,11944
3
+ diffai_python-0.3.16.dist-info/WHEEL,sha256=T1-x9ZAB-aE3ewIGbYuockW5ywV7fI-Nla9FsiR1vW4,93
4
+ diffai_python/__init__.py,sha256=N4MR7V489SwJDk3h58hpjI_JQgLU0ny4UYPdSZgYbEY,10703
5
+ diffai_python/__main__.py,sha256=0ABdXiMt3e1FQ3Bept_jgjEoU6unvf-pW9iG50YuS70,106
6
+ diffai_python/installer.py,sha256=8aLhL6sZ8uDgCoZQM6Ea_dR2jiF4k7mN81I7TghO12U,7132
7
+ diffai_python-0.3.16.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- diffai_python-0.3.15.data/scripts/diffai.exe,sha256=Fgy8ki6FH8ZPczoXxCwUFzLr0YO1orB3voDOWehBBS8,243200
2
- diffai_python-0.3.15.dist-info/METADATA,sha256=JWQeghJM4efo-ov6quvFDlnFd4kzrWi2ZLJAXXnysXE,11944
3
- diffai_python-0.3.15.dist-info/WHEEL,sha256=T1-x9ZAB-aE3ewIGbYuockW5ywV7fI-Nla9FsiR1vW4,93
4
- diffai_python/__init__.py,sha256=eL_ZqXdoct718oT9v7smtFVbvRSrV1WjP0w4oRNMnjs,10653
5
- diffai_python/__main__.py,sha256=0ABdXiMt3e1FQ3Bept_jgjEoU6unvf-pW9iG50YuS70,106
6
- diffai_python/installer.py,sha256=8aLhL6sZ8uDgCoZQM6Ea_dR2jiF4k7mN81I7TghO12U,7132
7
- diffai_python-0.3.15.dist-info/RECORD,,