patch-package-py 0.1.0__tar.gz → 0.1.1__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.0
3
+ Version: 0.1.1
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
@@ -190,8 +190,9 @@ def commit_changes(package_name: str, version: str, site_packages_path: Path) ->
190
190
  with open(patch_file_path, "w") as f:
191
191
  f.write(diff_content)
192
192
 
193
+ current_site_packages = find_site_packages(Path.cwd() / ".venv")
193
194
  try:
194
- apply_patch(patch_file_path, site_packages_path)
195
+ apply_patch(patch_file_path, current_site_packages)
195
196
  except subprocess.CalledProcessError:
196
197
  logger.error(
197
198
  f"Error: failed to apply the patch after creation. There's maybe a conflict, you can try to reinstall the package and apply the patch manually via `{CLI_NAME} apply {patch_file_name}`"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "patch-package-py"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "patch 3rd party Python packages"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"