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.
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/PKG-INFO +1 -1
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/patch_package_py/core.py +2 -1
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/pyproject.toml +1 -1
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/.gitignore +0 -0
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/.python-version +0 -0
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/README.md +0 -0
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/patch_package_py/__init__.py +0 -0
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/patch_package_py/cli.py +0 -0
- {patch_package_py-0.1.0 → patch_package_py-0.1.1}/uv.lock +0 -0
|
@@ -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,
|
|
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}`"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|