pyloid 0.20.0__py3-none-any.whl → 0.20.1__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.
@@ -25,22 +25,23 @@ def cleanup_before_build(json_path):
25
25
  if not dist_dir.exists():
26
26
  raise Exception(f"Cannot find directory to clean: {dist_dir}")
27
27
 
28
- if not cleanup_patterns:
29
- print("\033[1;33mNo cleanup patterns found. Files may have already been removed.\033[0m")
30
- else:
31
- print("\033[1;34mCleaning up unnecessary files...\033[0m")
32
- for pattern in cleanup_patterns:
33
- matching_files = list(dist_dir.glob(pattern))
34
- if not matching_files:
35
- print(f"\033[1;33mAleady removed: {pattern}\033[0m")
36
- for file_path in matching_files:
37
- print(f"\033[33mRemoving: {file_path}\033[0m")
38
- if file_path.is_dir():
39
- shutil.rmtree(file_path)
40
- else:
41
- file_path.unlink()
42
- print(f"\033[32mRemoved: {file_path}\033[0m")
43
-
28
+ print("\033[1;34mCleaning up unnecessary files...\033[0m")
29
+ exclude_patterns = [p[1:] for p in cleanup_patterns if p.startswith('!')]
30
+ include_patterns = [p for p in cleanup_patterns if not p.startswith('!')]
31
+
32
+ for pattern in include_patterns:
33
+ matching_files = list(dist_dir.glob(pattern))
34
+ for file_path in matching_files:
35
+ if any(file_path.match(p) for p in exclude_patterns):
36
+ print(f"\033[33mSkipping: {file_path}\033[0m")
37
+ continue
38
+ print(f"\033[33mRemoving: {file_path}\033[0m")
39
+ if file_path.is_dir():
40
+ shutil.rmtree(file_path)
41
+ else:
42
+ file_path.unlink()
43
+ print(f"\033[32mRemoved: {file_path}\033[0m")
44
+
44
45
  print("\033[1;32mFile cleanup completed.\033[0m")
45
46
 
46
47
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyloid
3
- Version: 0.20.0
3
+ Version: 0.20.1
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -86,7 +86,7 @@ This project uses PySide6, which is licensed under the LGPL (Lesser General Publ
86
86
 
87
87
  ## Contributing 🤝
88
88
 
89
- (Add information about how to contribute here)
89
+ Not Yet
90
90
 
91
91
  ## Issues
92
92
 
@@ -2,7 +2,7 @@ pyloid/__init__.py,sha256=t1_67LkSfP4F1TYq4-62z5Cc3Gx1jyWI1yXux7Ojaug,484
2
2
  pyloid/api.py,sha256=A61Kmddh8BlpT3LfA6NbPQNzFmD95vQ4WKX53oKsGYU,2419
3
3
  pyloid/autostart.py,sha256=K7DQYl4LHItvPp0bt1V9WwaaZmVSTeGvadkcwG-KKrI,3899
4
4
  pyloid/browser_window.py,sha256=6Es-DH45URUV6rlCBWj3ZWwrXLMUvqp5700WlU8Sdwo,62984
5
- pyloid/builder/__init__.py,sha256=ZYWcCRp1PQISO0C9CBxlqwrRbQUNqdoMlH4xkhYzcrM,2856
5
+ pyloid/builder/__init__.py,sha256=nw0r2RXqZ6eEbSbVF44sHD7NXovMShujxpTwygXXlrY,2889
6
6
  pyloid/builder/build_config.schema.json,sha256=Wj4_RCxXrQE9lq9Qxen1oy1Q0lhi2ojDkln8YX_LntM,2213
7
7
  pyloid/builder/spec.py,sha256=eTZ6b3ksysjH1mnorBtHFsMI7r9jGmCOJGcpJvNmY_E,6119
8
8
  pyloid/custom/titlebar.py,sha256=itzK9pJbZMQ7BKca9kdbuHMffurrw15UijR6OU03Xsk,3894
@@ -15,7 +15,7 @@ pyloid/thread_pool.py,sha256=fKOBb8jMfZn_7crA_fJCno8dObBRZE31EIWaNQ759aw,14616
15
15
  pyloid/timer.py,sha256=RqMsChFUd93cxMVgkHWiIKrci0QDTBgJSTULnAtYT8M,8712
16
16
  pyloid/tray.py,sha256=D12opVEc2wc2T4tK9epaN1oOdeziScsIVNM2uCN7C-A,1710
17
17
  pyloid/utils.py,sha256=mAjuppRXlZAocggf8La00Ae0Qzi4IRL_ovG87x4wagI,3300
18
- pyloid-0.20.0.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
19
- pyloid-0.20.0.dist-info/METADATA,sha256=OBjfyn3s22LjbPf8wLVAbdKVnxuoJn8e8TPl84ZXOf0,3095
20
- pyloid-0.20.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- pyloid-0.20.0.dist-info/RECORD,,
18
+ pyloid-0.20.1.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
19
+ pyloid-0.20.1.dist-info/METADATA,sha256=R0OvvSUncz6VqS-vD_0zNJ_AYEBtpX75KFkqWS9rrqk,3056
20
+ pyloid-0.20.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
+ pyloid-0.20.1.dist-info/RECORD,,