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.
@@ -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>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "effectual"
3
- version = "0.7.2"
3
+ version = "0.7.4"
4
4
  description = "A python package/script bundler"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -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__":
@@ -39,7 +39,7 @@ wheels = [
39
39
 
40
40
  [[package]]
41
41
  name = "effectual"
42
- version = "0.7.2"
42
+ version = "0.7.4"
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