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.
Files changed (23) hide show
  1. {makepatch-0.2.6 → makepatch-0.2.7}/CHANGELOG.md +4 -0
  2. {makepatch-0.2.6 → makepatch-0.2.7}/PKG-INFO +1 -1
  3. {makepatch-0.2.6 → makepatch-0.2.7}/pyproject.toml +1 -1
  4. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/hooks/_patch.py +6 -18
  5. {makepatch-0.2.6 → makepatch-0.2.7}/.editorconfig +0 -0
  6. {makepatch-0.2.6 → makepatch-0.2.7}/.gitignore +0 -0
  7. {makepatch-0.2.6 → makepatch-0.2.7}/.idea/inspectionProfiles/Project_Default.xml +0 -0
  8. {makepatch-0.2.6 → makepatch-0.2.7}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  9. {makepatch-0.2.6 → makepatch-0.2.7}/.idea/makepatch.iml +0 -0
  10. {makepatch-0.2.6 → makepatch-0.2.7}/.idea/modules.xml +0 -0
  11. {makepatch-0.2.6 → makepatch-0.2.7}/.idea/workspace.xml +0 -0
  12. {makepatch-0.2.6 → makepatch-0.2.7}/README.md +0 -0
  13. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/__hooks__.py +0 -0
  14. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/__init__.py +0 -0
  15. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/_config.py +0 -0
  16. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/_types/__init__.pyi +0 -0
  17. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/_types/hatch.pyi +0 -0
  18. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/core/__init__.py +0 -0
  19. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/core/_patcher.py +0 -0
  20. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/hooks/__init__.py +0 -0
  21. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/scripts/__init__.py +0 -0
  22. {makepatch-0.2.6 → makepatch-0.2.7}/src/makepatch/scripts/_rebuild.py +0 -0
  23. {makepatch-0.2.6 → makepatch-0.2.7}/uv.lock +0 -0
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 0.2.x
4
4
 
5
+ ### 0.2.7
6
+
7
+ - Fixed the issue not fixed in previous version.
8
+
5
9
  ### 0.2.6
6
10
 
7
11
  - Fixed `force-include` was not set correctly, which caused patched packages to not be properly included in the built wheel.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: makepatch
3
- Version: 0.2.6
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.6"
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 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
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
- 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
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