makepatch 0.2.6__py3-none-any.whl → 0.2.8__py3-none-any.whl
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/hooks/_patch.py +1 -16
- {makepatch-0.2.6.dist-info → makepatch-0.2.8.dist-info}/METADATA +1 -1
- {makepatch-0.2.6.dist-info → makepatch-0.2.8.dist-info}/RECORD +5 -5
- {makepatch-0.2.6.dist-info → makepatch-0.2.8.dist-info}/WHEEL +0 -0
- {makepatch-0.2.6.dist-info → makepatch-0.2.8.dist-info}/entry_points.txt +0 -0
makepatch/hooks/_patch.py
CHANGED
|
@@ -24,26 +24,11 @@ class PatcherBuildHook(BuildHookInterface):
|
|
|
24
24
|
config = self.__config
|
|
25
25
|
patcher = self.__patcher
|
|
26
26
|
|
|
27
|
-
if patcher.has_sdist_cache():
|
|
27
|
+
if self.target_name == "wheel" and patcher.has_sdist_cache():
|
|
28
28
|
dst = self.__dst = config.project_root / "src" / config.module_name
|
|
29
29
|
build_data["force_include"][str(dst)] = dst.name
|
|
30
30
|
return
|
|
31
31
|
|
|
32
|
-
if patcher.setup_required():
|
|
33
|
-
patcher.resolve_sources()
|
|
34
|
-
patcher.resolve_src()
|
|
35
|
-
|
|
36
|
-
dst = config.project_root / "work/patched"
|
|
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
|
|
46
|
-
|
|
47
32
|
patcher.resolve_src()
|
|
48
33
|
|
|
49
34
|
dst = self.__dst = config.project_root / "src" / config.module_name
|
|
@@ -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
|
|
@@ -6,10 +6,10 @@ makepatch/_types/hatch.pyi,sha256=MWAwNXZx1RXrdZ8sVLY8pinoOleSajjDatylnFsLprQ,16
|
|
|
6
6
|
makepatch/core/__init__.py,sha256=F943qvL-FwY0zkSuMxHuVzG55EVDICJYouAE1-3NrOU,36
|
|
7
7
|
makepatch/core/_patcher.py,sha256=QEyFHQ6yK9BjhpjmBfGob1qRISlBYeByQsr-zTBLzfQ,4450
|
|
8
8
|
makepatch/hooks/__init__.py,sha256=I7QNThkPOzPtvQiocyUoQKKdWNYWk5wiF-FVRz4LTjo,38
|
|
9
|
-
makepatch/hooks/_patch.py,sha256=
|
|
9
|
+
makepatch/hooks/_patch.py,sha256=MD1Vbqi8VtFedoTFL1cw2TV8uunFLUYwpTXEVvLTsQg,1762
|
|
10
10
|
makepatch/scripts/__init__.py,sha256=gEBpdkVqJeobmUbDLkXCfMUJ0B3S2Ml2TWAmIP_uK84,836
|
|
11
11
|
makepatch/scripts/_rebuild.py,sha256=iisw0dza8cr4o_FBvzcrNGmxeeje98XW2g6dHlJqsJ0,2810
|
|
12
|
-
makepatch-0.2.
|
|
13
|
-
makepatch-0.2.
|
|
14
|
-
makepatch-0.2.
|
|
15
|
-
makepatch-0.2.
|
|
12
|
+
makepatch-0.2.8.dist-info/METADATA,sha256=5Whud_b-MdYT8yTN-CKJRHwXwOowMGbe-j6v_qzqqsM,2804
|
|
13
|
+
makepatch-0.2.8.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
14
|
+
makepatch-0.2.8.dist-info/entry_points.txt,sha256=tDk_T8AJNcjy0KhBEXxf9wZBIAhv3l4pGekKOqXpNpY,159
|
|
15
|
+
makepatch-0.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|