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.
- {effectual-0.7.5 → effectual-0.7.6}/PKG-INFO +4 -3
- {effectual-0.7.5 → effectual-0.7.6}/pyproject.toml +1 -1
- {effectual-0.7.5 → effectual-0.7.6}/src/effectual/developer.py +13 -3
- {effectual-0.7.5 → effectual-0.7.6}/uv.lock +1 -1
- {effectual-0.7.5 → effectual-0.7.6}/.gitignore +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/.python-version +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/LICENSE +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/README.md +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/src/effectual/__init__.py +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/src/effectual/build.py +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/src/effectual/colors.py +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/src/effectual/config.py +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/src/effectual/transformations.py +0 -0
- {effectual-0.7.5 → effectual-0.7.6}/taskfile.yml +0 -0
@@ -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
|
@@ -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__":
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|