effectual 0.7.5__tar.gz → 0.7.6__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,11 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: effectual
3
- Version: 0.7.5
3
+ Version: 0.7.6
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>
7
- License: MIT
7
+ License-Expression: MIT
8
+ License-File: LICENSE
8
9
  Classifier: Programming Language :: Python :: 3.8
9
10
  Classifier: Programming Language :: Python :: 3.9
10
11
  Classifier: Programming Language :: Python :: 3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "effectual"
3
- version = "0.7.5"
3
+ version = "0.7.6"
4
4
  description = "A python package/script bundler"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,3 +1,5 @@
1
+ import os
2
+ import signal
1
3
  import subprocess
2
4
  import time
3
5
  import zipfile
@@ -41,12 +43,20 @@ def main() -> None:
41
43
  bundle(sourceDirectory, outputFile)
42
44
  runCommand = subprocess.Popen(["uv", "run", outputFile], shell=True)
43
45
 
44
- for change in watch(sourceDirectory, debounce=50):
46
+ pidSet: set = set()
47
+
48
+ for change in watch(sourceDirectory, debounce=600):
49
+ print(pidSet)
45
50
  print(f"{tagColor('reloaded')} || file change detected")
46
- runCommand.kill()
47
- runCommand.wait()
51
+ for pid in pidSet.copy():
52
+ try:
53
+ os.kill(pid, signal.SIGTERM)
54
+ except OSError:
55
+ pass
56
+ pidSet.remove(pid)
48
57
  bundle(sourceDirectory, outputFile)
49
58
  runCommand = subprocess.Popen(["uv", "run", outputFile], shell=True)
59
+ pidSet.add(runCommand.pid)
50
60
 
51
61
 
52
62
  if __name__ == "__main__":
@@ -39,7 +39,7 @@ wheels = [
39
39
 
40
40
  [[package]]
41
41
  name = "effectual"
42
- version = "0.7.5"
42
+ version = "0.7.6"
43
43
  source = { editable = "." }
44
44
  dependencies = [
45
45
  { name = "click" },
File without changes
File without changes
File without changes
File without changes
File without changes