effectual 0.7.2__tar.gz → 0.7.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {effectual-0.7.2 → effectual-0.7.4}/PKG-INFO +1 -1
- {effectual-0.7.2 → effectual-0.7.4}/pyproject.toml +1 -1
- {effectual-0.7.2 → effectual-0.7.4}/src/effectual/developer.py +9 -7
- {effectual-0.7.2 → effectual-0.7.4}/uv.lock +1 -1
- {effectual-0.7.2 → effectual-0.7.4}/.gitignore +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/.python-version +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/LICENSE +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/README.md +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/src/effectual/__init__.py +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/src/effectual/build.py +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/src/effectual/colors.py +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/src/effectual/config.py +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/src/effectual/transformations.py +0 -0
- {effectual-0.7.2 → effectual-0.7.4}/taskfile.yml +0 -0
@@ -4,7 +4,7 @@ import zipfile
|
|
4
4
|
from pathlib import Path
|
5
5
|
from typing import Any
|
6
6
|
|
7
|
-
from watchfiles import
|
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__":
|
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
|