makepatch 0.2.7__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 CHANGED
@@ -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
- 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
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: makepatch
3
- Version: 0.2.7
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=nkl68u3U8_KM8RjJbCndnSc9_kZD6Wn7ApQLius_vqY,1857
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.7.dist-info/METADATA,sha256=RBixOzrFkkwAiurHydg3hVrqSthldwTMKbEwV1Q4i9o,2804
13
- makepatch-0.2.7.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
14
- makepatch-0.2.7.dist-info/entry_points.txt,sha256=tDk_T8AJNcjy0KhBEXxf9wZBIAhv3l4pGekKOqXpNpY,159
15
- makepatch-0.2.7.dist-info/RECORD,,
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,,