makepatch 0.2.6__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.
Files changed (23) hide show
  1. {makepatch-0.2.6 → makepatch-0.2.8}/CHANGELOG.md +8 -0
  2. {makepatch-0.2.6 → makepatch-0.2.8}/PKG-INFO +1 -1
  3. {makepatch-0.2.6 → makepatch-0.2.8}/pyproject.toml +1 -1
  4. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/hooks/_patch.py +1 -16
  5. {makepatch-0.2.6 → makepatch-0.2.8}/.editorconfig +0 -0
  6. {makepatch-0.2.6 → makepatch-0.2.8}/.gitignore +0 -0
  7. {makepatch-0.2.6 → makepatch-0.2.8}/.idea/inspectionProfiles/Project_Default.xml +0 -0
  8. {makepatch-0.2.6 → makepatch-0.2.8}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  9. {makepatch-0.2.6 → makepatch-0.2.8}/.idea/makepatch.iml +0 -0
  10. {makepatch-0.2.6 → makepatch-0.2.8}/.idea/modules.xml +0 -0
  11. {makepatch-0.2.6 → makepatch-0.2.8}/.idea/workspace.xml +0 -0
  12. {makepatch-0.2.6 → makepatch-0.2.8}/README.md +0 -0
  13. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/__hooks__.py +0 -0
  14. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/__init__.py +0 -0
  15. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/_config.py +0 -0
  16. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/_types/__init__.pyi +0 -0
  17. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/_types/hatch.pyi +0 -0
  18. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/core/__init__.py +0 -0
  19. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/core/_patcher.py +0 -0
  20. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/hooks/__init__.py +0 -0
  21. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/scripts/__init__.py +0 -0
  22. {makepatch-0.2.6 → makepatch-0.2.8}/src/makepatch/scripts/_rebuild.py +0 -0
  23. {makepatch-0.2.6 → makepatch-0.2.8}/uv.lock +0 -0
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## 0.2.x
4
4
 
5
+ ### 0.2.8
6
+
7
+ - Fixed `uv sync` failure
8
+
9
+ ### 0.2.7
10
+
11
+ - Fixed the issue not fixed in previous version.
12
+
5
13
  ### 0.2.6
6
14
 
7
15
  - 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.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.6"
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,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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes