python-package-folder 4.1.2__py3-none-any.whl → 4.2.0__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.
@@ -6,6 +6,7 @@ in the wheel without creating duplicates, and automatically includes any new
6
6
  files added to the directory without requiring manual configuration updates.
7
7
  """
8
8
 
9
+ import sys
9
10
  from pathlib import Path
10
11
  from typing import Any
11
12
 
@@ -21,6 +22,10 @@ class CustomBuildHook(BuildHookInterface):
21
22
  source_dir = Path(self.root) / "src" / "python_package_folder"
22
23
  scripts_dir = source_dir / "scripts"
23
24
 
25
+ # Debug: Print to stderr so it shows in build output
26
+ print(f"[DEBUG] Build hook called. Root: {self.root}", file=sys.stderr)
27
+ print(f"[DEBUG] Scripts dir exists: {scripts_dir.exists()}", file=sys.stderr)
28
+
24
29
  # If scripts directory exists, include all files from it
25
30
  if scripts_dir.exists() and scripts_dir.is_dir():
26
31
  # Add all files from scripts directory to force-include
@@ -32,8 +37,18 @@ class CustomBuildHook(BuildHookInterface):
32
37
  # Target path inside the wheel package
33
38
  target_path = f"python_package_folder/scripts/{script_file.name}"
34
39
 
40
+ print(f"[DEBUG] Adding {source_path} -> {target_path}", file=sys.stderr)
41
+
35
42
  # Add to force-include (hatchling will handle this)
36
43
  # We need to add it to build_data['force_include']
37
44
  if "force_include" not in build_data:
38
45
  build_data["force_include"] = {}
39
46
  build_data["force_include"][str(source_path)] = target_path
47
+
48
+ print(f"[DEBUG] force_include now has {len(build_data.get('force_include', {}))} entries", file=sys.stderr)
49
+ else:
50
+ print(f"[DEBUG] Scripts directory not found at {scripts_dir}", file=sys.stderr)
51
+
52
+
53
+ # Export the hook class (hatchling might need this)
54
+ __all__ = ["CustomBuildHook"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-package-folder
3
- Version: 4.1.2
3
+ Version: 4.2.0
4
4
  Summary: Python package to automatically package and build a folder, fetching all relevant dependencies.
5
5
  Project-URL: Repository, https://github.com/alelom/python-package-folder
6
6
  Author-email: Alessio Lombardi <work@alelom.com>
@@ -1,6 +1,6 @@
1
1
  python_package_folder/__init__.py,sha256=DQt-uldOEKfh0MUqCvKdeNKOnpuOvpb7blYvXMyO9Wc,719
2
2
  python_package_folder/__main__.py,sha256=a-__-VLhYw-J7S7CsHdhtEvQr3RiAZxiYDvKhKTgMX4,291
3
- python_package_folder/_hatch_build.py,sha256=HNuhBz5e6uoDNVPKHFcX-8H23u6qyXNM8KO9DgRGXMM,1844
3
+ python_package_folder/_hatch_build.py,sha256=03UCz4RSGaLFPpksgZultQ2lskfgMCI-t9gg6rXKj_A,2500
4
4
  python_package_folder/analyzer.py,sha256=cmTNUDCWBIh3XZ_mShlQVG1P9NN_oe3FUBTirVtYfTQ,16709
5
5
  python_package_folder/finder.py,sha256=RPidZ7LKCFuQ_KgCFIZdHWPXsZIDor3M4C0hKeYW7EI,11799
6
6
  python_package_folder/manager.py,sha256=Z9RPg0ZQ7jZhmEXfCzX9OrD_oiA5p2Pnm5Y9tgW3ObQ,55970
@@ -11,8 +11,8 @@ python_package_folder/subfolder_build.py,sha256=oH_KKLJIMByUZCl8y3AyohUO6Om0OvsI
11
11
  python_package_folder/types.py,sha256=3yeSRR5p_3PDKEAaehW_RJ7NwJHexOIeA08bGaT1iSY,2368
12
12
  python_package_folder/utils.py,sha256=lIkWsFKeAYAJ9TDUM99T4pUBHJVbUvCdUgkWQN-LUho,3111
13
13
  python_package_folder/version.py,sha256=kIDP6S9trEfs9gj7lBYGxrWm4RPssRla24UtlO9Jkh4,9111
14
- python_package_folder-4.1.2.dist-info/METADATA,sha256=VfbnD998xzZY883EYPQlKAgmWEocNeLl_FVm7YvBsGU,37517
15
- python_package_folder-4.1.2.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
16
- python_package_folder-4.1.2.dist-info/entry_points.txt,sha256=ttu4wAhoYSHGhWQNercLz9IVTTpXxhVlRA9vSTvaLe0,91
17
- python_package_folder-4.1.2.dist-info/licenses/LICENSE,sha256=vNgRJh8YiecqZoZld7TtwPI5I72HIymKD9g32fiJjCE,1073
18
- python_package_folder-4.1.2.dist-info/RECORD,,
14
+ python_package_folder-4.2.0.dist-info/METADATA,sha256=BoVDAnlC-FUEwoSfrrZhV0x7o3SrB_vniroHUYT--mk,37517
15
+ python_package_folder-4.2.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
16
+ python_package_folder-4.2.0.dist-info/entry_points.txt,sha256=ttu4wAhoYSHGhWQNercLz9IVTTpXxhVlRA9vSTvaLe0,91
17
+ python_package_folder-4.2.0.dist-info/licenses/LICENSE,sha256=vNgRJh8YiecqZoZld7TtwPI5I72HIymKD9g32fiJjCE,1073
18
+ python_package_folder-4.2.0.dist-info/RECORD,,