patch-package-py 0.1.2__tar.gz → 0.1.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: patch-package-py
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: patch 3rd party Python packages
5
5
  Project-URL: Homepage, https://github.com/nomyfan/patch-package-py
6
6
  Project-URL: Repository, https://github.com/nomyfan/patch-package-py
@@ -209,9 +209,10 @@ def apply_patch(patch_file: Path, site_packages_dir: Path) -> None:
209
209
  # Parse package name and version from patch file name
210
210
  patch_name = patch_file.stem # Remove .patch extension
211
211
  if "+" not in patch_name:
212
- raise ValueError(
213
- f"Invalid patch file name format: {patch_file.name}. Expected format: package_name+version.patch"
212
+ logger.warning(
213
+ f"Invalid patch file name format: {patch_file.name}. Expected format: package_name+version.patch, skipping..."
214
214
  )
215
+ return
215
216
 
216
217
  package_name, version = patch_name.rsplit("+", 1)
217
218
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "patch-package-py"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "patch 3rd party Python packages"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"