effectual 0.7.2__py3-none-any.whl → 0.7.4__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.
effectual/developer.py CHANGED
@@ -4,7 +4,7 @@ import zipfile
4
4
  from pathlib import Path
5
5
  from typing import Any
6
6
 
7
- from watchfiles import run_process
7
+ from watchfiles import watch
8
8
 
9
9
  from .colors import completeColor, fileColor, tagColor
10
10
  from .config import loadConfig
@@ -38,13 +38,15 @@ def main() -> None:
38
38
 
39
39
  outputFile: Path = devBundlePath / outputFileName
40
40
 
41
- run_process(sourceDirectory, target=runCommand, args=(sourceDirectory, outputFile))
42
-
43
-
44
- def runCommand(sourceDirectory: Path, outputFile: Path) -> None:
45
- print(f"{tagColor('reloaded')} || file change detected")
46
41
  bundle(sourceDirectory, outputFile)
47
- subprocess.Popen(["uv", "run", outputFile], shell=True)
42
+ runCommand = subprocess.Popen(["uv", "run", outputFile], shell=True)
43
+
44
+ for change in watch(sourceDirectory):
45
+ print(f"{tagColor('reloaded')} || file change detected")
46
+ runCommand.kill()
47
+ runCommand.wait()
48
+ bundle(sourceDirectory, outputFile)
49
+ runCommand = subprocess.Popen(["uv", "run", outputFile], shell=True)
48
50
 
49
51
 
50
52
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: effectual
3
- Version: 0.7.2
3
+ Version: 0.7.4
4
4
  Summary: A python package/script bundler
5
5
  Project-URL: Homepage, https://github.com/effectualpy/effectual
6
6
  Author-email: jake <jakewdr@proton.me>
@@ -2,10 +2,10 @@ effectual/__init__.py,sha256=Hg_RSVgpLZvaeBUqt5uL_r5YIDsVdKPcFE2L5WJVYbM,482
2
2
  effectual/build.py,sha256=0X3sKF9irQ2uDx8XiT3QBeqNozatFGq--siF4mdQE-U,6231
3
3
  effectual/colors.py,sha256=na7SEUSXM7aHvEKeIAn5shrZJtrBYq_ZUp121GRO_PQ,1411
4
4
  effectual/config.py,sha256=Z99V7AnJpSWuo-aEz10TDj5BAaT7tboGJUjggj-HQh4,1798
5
- effectual/developer.py,sha256=Kw3rF3dp9Fidjaem8anLN0tLKK_XC38cYGZ_R1jkbdE,1678
5
+ effectual/developer.py,sha256=ZAwNJmCYpr8N3_Siq33ny7I8LuDZcE0Eh7Y7HV94cKw,1752
6
6
  effectual/transformations.py,sha256=7GHgQWzin2J1W62yMReHXaYIChXc3f0rNJA-yY4LDEI,1313
7
- effectual-0.7.2.dist-info/METADATA,sha256=SHIrfABUdnjgD_s-Km2REDuSmeVQ3iJhZ0bj0IK7NWw,2590
8
- effectual-0.7.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
9
- effectual-0.7.2.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
10
- effectual-0.7.2.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
11
- effectual-0.7.2.dist-info/RECORD,,
7
+ effectual-0.7.4.dist-info/METADATA,sha256=K9HVfFNIh5AF3yKGkaBvCK5Z6e_-VVNvb7GbXgYNU28,2590
8
+ effectual-0.7.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
9
+ effectual-0.7.4.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
10
+ effectual-0.7.4.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
11
+ effectual-0.7.4.dist-info/RECORD,,