maketool 0.8.22__py3-none-any.whl → 0.8.23__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.
maketool/sublime.py CHANGED
@@ -161,6 +161,30 @@ def _upsert_keybindings(existing: list[dict], updates: list[dict]) -> list[dict]
161
161
  out.append(upd)
162
162
  return out
163
163
 
164
+ def _prune_maketool_bindings(existing: list[dict], maketool: list[dict]) -> list[dict]:
165
+ """
166
+ Remove existing bindings that represent the same maketool intent
167
+ (command + args.variant), regardless of key.
168
+ """
169
+ def intent(item: dict) -> tuple:
170
+ return (
171
+ item.get("command"),
172
+ (item.get("args") or {}).get("variant")
173
+ )
174
+
175
+ maketool_intents = {intent(m) for m in maketool}
176
+
177
+ out = []
178
+ for item in existing:
179
+ if not isinstance(item, dict):
180
+ out.append(item)
181
+ continue
182
+ if intent(item) in maketool_intents:
183
+ continue
184
+ out.append(item)
185
+
186
+ return out
187
+
164
188
 
165
189
  def process(user_packages_dir: str) -> None:
166
190
  os.makedirs(user_packages_dir, exist_ok=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maketool
3
- Version: 0.8.22
3
+ Version: 0.8.23
4
4
  Summary: Python Automation tool for building PySide6 UI and PyInstaller EXE.
5
5
  Author-email: Alan Lilly <panofish@gmail.com>
6
6
  Requires-Python: >=3.7
@@ -4,9 +4,9 @@ maketool/clean.py,sha256=pJYb-kt23_HaOrckv8Kft09HKl9m4_Lt1Tf15HQCmvE,3245
4
4
  maketool/compile.py,sha256=n1mzoyU5hlOjHVn2ytCsZVEvN6hta8-VHyR25UGc1CQ,14496
5
5
  maketool/refscan.py,sha256=zQugRIBbGvhiK2vF_Ye3EaPQv0G0u0DGeik-UdWdFF8,9941
6
6
  maketool/run.py,sha256=UO6O7IaSl8XBqPEsC0CaTt65Or0m3_wQFvWZUnY4J00,2399
7
- maketool/sublime.py,sha256=5XaqABW12EOqjQhkqAQmWPKLvkatUYZIJT5wUXG0Qws,9224
8
- maketool-0.8.22.dist-info/METADATA,sha256=proqV63QIEyIgAICGfgh6gPT5cehcOAeFaYMQGaPryE,4845
9
- maketool-0.8.22.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
10
- maketool-0.8.22.dist-info/entry_points.txt,sha256=hYswW0t7b9YacCLg0-4zAI1CKKjeOH1LJfi34Z8lAPc,248
11
- maketool-0.8.22.dist-info/top_level.txt,sha256=e7JbT3AdVc2AJstJ1xW1hcwhwfFQ6U8QRdFzaFQe6sQ,9
12
- maketool-0.8.22.dist-info/RECORD,,
7
+ maketool/sublime.py,sha256=C5RfFk9-Xa2Ewad8yypsCsBKcAowoki96RFLISZW-DY,9886
8
+ maketool-0.8.23.dist-info/METADATA,sha256=CYhe8ixhMQhurAvacfxZQ_5M-iYn_on2Wd4tm0ZnR6E,4845
9
+ maketool-0.8.23.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
10
+ maketool-0.8.23.dist-info/entry_points.txt,sha256=hYswW0t7b9YacCLg0-4zAI1CKKjeOH1LJfi34Z8lAPc,248
11
+ maketool-0.8.23.dist-info/top_level.txt,sha256=e7JbT3AdVc2AJstJ1xW1hcwhwfFQ6U8QRdFzaFQe6sQ,9
12
+ maketool-0.8.23.dist-info/RECORD,,