makepatch 0.2.6__tar.gz → 0.2.7__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.6 → makepatch-0.2.7}/CHANGELOG.md +4 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/PKG-INFO +1 -1
- {makepatch-0.2.6 → makepatch-0.2.7}/pyproject.toml +1 -1
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/hooks/_patch.py +6 -18
- {makepatch-0.2.6 → makepatch-0.2.7}/.editorconfig +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/.gitignore +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/.idea/inspectionProfiles/Project_Default.xml +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/.idea/makepatch.iml +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/.idea/modules.xml +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/.idea/workspace.xml +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/README.md +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/__hooks__.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/__init__.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/_config.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/_types/__init__.pyi +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/_types/hatch.pyi +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/core/__init__.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/core/_patcher.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/hooks/__init__.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/scripts/__init__.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/scripts/_rebuild.py +0 -0
- {makepatch-0.2.6 → makepatch-0.2.7}/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.7
|
|
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.7"
|
|
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,25 +24,13 @@ class PatcherBuildHook(BuildHookInterface):
|
|
|
24
24
|
config = self.__config
|
|
25
25
|
patcher = self.__patcher
|
|
26
26
|
|
|
27
|
-
if
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if patcher.setup_required():
|
|
33
|
-
patcher.resolve_sources()
|
|
34
|
-
patcher.resolve_src()
|
|
27
|
+
if self.target_name == "wheel":
|
|
28
|
+
if patcher.has_sdist_cache():
|
|
29
|
+
dst = self.__dst = config.project_root / "src" / config.module_name
|
|
30
|
+
build_data["force_include"][str(dst)] = dst.name
|
|
31
|
+
return
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
if dst.exists():
|
|
38
|
-
if not dst.is_dir(): raise RuntimeError(f"{dst} is not a directory")
|
|
39
|
-
shutil.rmtree(dst)
|
|
40
|
-
dst.mkdir(parents=True)
|
|
41
|
-
|
|
42
|
-
patcher.copy(dst)
|
|
43
|
-
patcher.apply(dst / config.module_source)
|
|
44
|
-
self.__success = False
|
|
45
|
-
return
|
|
33
|
+
raise RuntimeError("sdist doesn't have patched packages")
|
|
46
34
|
|
|
47
35
|
patcher.resolve_src()
|
|
48
36
|
|
|
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
|