makepatch 0.2.7__tar.gz → 0.2.8__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.
- {makepatch-0.2.7 → makepatch-0.2.8}/CHANGELOG.md +4 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/PKG-INFO +1 -1
- {makepatch-0.2.7 → makepatch-0.2.8}/pyproject.toml +1 -1
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/hooks/_patch.py +4 -7
- {makepatch-0.2.7 → makepatch-0.2.8}/.editorconfig +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/.gitignore +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/.idea/inspectionProfiles/Project_Default.xml +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/.idea/makepatch.iml +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/.idea/modules.xml +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/.idea/workspace.xml +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/README.md +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/__hooks__.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/__init__.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/_config.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/_types/__init__.pyi +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/_types/hatch.pyi +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/core/__init__.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/core/_patcher.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/hooks/__init__.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/scripts/__init__.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/src/makepatch/scripts/_rebuild.py +0 -0
- {makepatch-0.2.7 → makepatch-0.2.8}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: makepatch
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Hatch build hook to easily hard-fork packages with patches!
|
|
5
5
|
Project-URL: source, https://github.com/AlphaKR93/packages/tree/main/python/makepatch
|
|
6
6
|
Project-URL: issues, https://github.com/AlphaKR93/packages/issues
|
|
@@ -16,7 +16,7 @@ rebuild-patches = "makepatch.scripts:rebuild_patches"
|
|
|
16
16
|
[project]
|
|
17
17
|
name = "makepatch"
|
|
18
18
|
readme = "README.md"
|
|
19
|
-
version = "0.2.
|
|
19
|
+
version = "0.2.8"
|
|
20
20
|
authors = [{ name = "Alpha", email = "dev@alpha93.kr" }]
|
|
21
21
|
description = "Hatch build hook to easily hard-fork packages with patches!"
|
|
22
22
|
license = "MIT"
|
|
@@ -24,13 +24,10 @@ class PatcherBuildHook(BuildHookInterface):
|
|
|
24
24
|
config = self.__config
|
|
25
25
|
patcher = self.__patcher
|
|
26
26
|
|
|
27
|
-
if self.target_name == "wheel":
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
raise RuntimeError("sdist doesn't have patched packages")
|
|
27
|
+
if self.target_name == "wheel" and patcher.has_sdist_cache():
|
|
28
|
+
dst = self.__dst = config.project_root / "src" / config.module_name
|
|
29
|
+
build_data["force_include"][str(dst)] = dst.name
|
|
30
|
+
return
|
|
34
31
|
|
|
35
32
|
patcher.resolve_src()
|
|
36
33
|
|
|
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
|
|
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
|
|
File without changes
|