effectual 0.7.5__py3-none-any.whl → 0.7.6__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 +13 -3
- {effectual-0.7.5.dist-info → effectual-0.7.6.dist-info}/METADATA +4 -3
- {effectual-0.7.5.dist-info → effectual-0.7.6.dist-info}/RECORD +6 -6
- {effectual-0.7.5.dist-info → effectual-0.7.6.dist-info}/WHEEL +1 -1
- {effectual-0.7.5.dist-info → effectual-0.7.6.dist-info}/entry_points.txt +0 -0
- {effectual-0.7.5.dist-info → effectual-0.7.6.dist-info}/licenses/LICENSE +0 -0
effectual/developer.py
CHANGED
@@ -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
|
-
|
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
|
-
|
47
|
-
|
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__":
|
@@ -1,10 +1,11 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: effectual
|
3
|
-
Version: 0.7.
|
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
|
@@ -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=
|
5
|
+
effectual/developer.py,sha256=KU4Lu_-dyAlBmflso0WfdMHhC3QcilDJgal8y--ewEU,2006
|
6
6
|
effectual/transformations.py,sha256=7GHgQWzin2J1W62yMReHXaYIChXc3f0rNJA-yY4LDEI,1313
|
7
|
-
effectual-0.7.
|
8
|
-
effectual-0.7.
|
9
|
-
effectual-0.7.
|
10
|
-
effectual-0.7.
|
11
|
-
effectual-0.7.
|
7
|
+
effectual-0.7.6.dist-info/METADATA,sha256=kRHsKnnc_i-9wMoo8NQLhd5lDmUqJaIDmdJdQCUrpRU,2951
|
8
|
+
effectual-0.7.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
effectual-0.7.6.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
|
10
|
+
effectual-0.7.6.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
|
11
|
+
effectual-0.7.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|