effectual 0.7.6__py3-none-any.whl → 0.7.8__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/build.py +10 -8
- effectual/developer.py +1 -2
- {effectual-0.7.6.dist-info → effectual-0.7.8.dist-info}/METADATA +4 -3
- effectual-0.7.8.dist-info/RECORD +11 -0
- effectual-0.7.6.dist-info/RECORD +0 -11
- {effectual-0.7.6.dist-info → effectual-0.7.8.dist-info}/WHEEL +0 -0
- {effectual-0.7.6.dist-info → effectual-0.7.8.dist-info}/entry_points.txt +0 -0
- {effectual-0.7.6.dist-info → effectual-0.7.8.dist-info}/licenses/LICENSE +0 -0
effectual/build.py
CHANGED
@@ -41,11 +41,17 @@ def bundleFiles(
|
|
41
41
|
cachePath: Path = Path("./.effectual_cache/cachedPackages")
|
42
42
|
if cachePath.exists():
|
43
43
|
if Path.iterdir(cachePath):
|
44
|
-
totalSize: int =
|
44
|
+
totalSize: int = sum(
|
45
|
+
cachedFile.stat().st_size
|
46
|
+
for cachedFile in cachePath.rglob("*")
|
47
|
+
if cachedFile.is_file()
|
48
|
+
)
|
49
|
+
print(
|
50
|
+
f"{tagColor('bundling')} || uv dependencies {folderColor(totalSize)}" # noqa: E501
|
51
|
+
)
|
45
52
|
for cachedFile in cachePath.rglob("*"):
|
46
53
|
if cachedFile.is_dir() and not any(cachedFile.iterdir()):
|
47
54
|
continue
|
48
|
-
totalSize += cachedFile.stat().st_size
|
49
55
|
stringCachedFile = str(cachedFile)
|
50
56
|
if (
|
51
57
|
cachedFile.suffix
|
@@ -61,10 +67,6 @@ def bundleFiles(
|
|
61
67
|
arcName: str = str(cachedFile.relative_to(cachePath))
|
62
68
|
bundler.write(cachedFile, arcname=arcName)
|
63
69
|
|
64
|
-
print(
|
65
|
-
f"{tagColor('bundling')} || uv dependencies {folderColor(totalSize)}" # noqa: E501
|
66
|
-
)
|
67
|
-
|
68
70
|
for pyFile in sourceDirectory.rglob("*.py"):
|
69
71
|
print(f"{tagColor('bundling')} || {pyFile.name} {fileColor(pyFile)}")
|
70
72
|
if minification:
|
@@ -141,8 +143,8 @@ def main() -> None:
|
|
141
143
|
|
142
144
|
Path("./.effectual_cache/").mkdir(parents=True, exist_ok=True)
|
143
145
|
currentHash["hashes"] = dict()
|
144
|
-
currentHash["hashes"]["pyproject"] = getHash("./pyproject.toml")
|
145
|
-
currentHash["hashes"]["lock"] = getHash("./uv.lock")
|
146
|
+
currentHash["hashes"]["pyproject"] = getHash(Path("./pyproject.toml"))
|
147
|
+
currentHash["hashes"]["lock"] = getHash(Path("./uv.lock"))
|
146
148
|
|
147
149
|
freshHash: bool = False
|
148
150
|
|
effectual/developer.py
CHANGED
@@ -43,10 +43,9 @@ def main() -> None:
|
|
43
43
|
bundle(sourceDirectory, outputFile)
|
44
44
|
runCommand = subprocess.Popen(["uv", "run", outputFile], shell=True)
|
45
45
|
|
46
|
-
pidSet: set = set()
|
46
|
+
pidSet: set[Any] = set()
|
47
47
|
|
48
48
|
for change in watch(sourceDirectory, debounce=600):
|
49
|
-
print(pidSet)
|
50
49
|
print(f"{tagColor('reloaded')} || file change detected")
|
51
50
|
for pid in pidSet.copy():
|
52
51
|
try:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: effectual
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.8
|
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>
|
@@ -89,8 +89,9 @@ This is like what what [Rollup](https://rollupjs.org/) does for vite
|
|
89
89
|
|
90
90
|
- [Treeshaking](https://webpack.js.org/guides/tree-shaking/)
|
91
91
|
- Rewriting some time critical parts in Rust 🚀🦀
|
92
|
-
- Cross platform compatibility
|
93
|
-
-
|
92
|
+
- Cross platform compatibility (multiple output bundles)
|
93
|
+
- Bundle python version shebang and bytecode compilation
|
94
|
+
- Plugin and loader system (like rollup and webpack)
|
94
95
|
|
95
96
|
# Contributions
|
96
97
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
effectual/__init__.py,sha256=Hg_RSVgpLZvaeBUqt5uL_r5YIDsVdKPcFE2L5WJVYbM,482
|
2
|
+
effectual/build.py,sha256=0sYkASMQl7ImoqOS7UH2E-37IfxTydC103udg7UX608,6350
|
3
|
+
effectual/colors.py,sha256=na7SEUSXM7aHvEKeIAn5shrZJtrBYq_ZUp121GRO_PQ,1411
|
4
|
+
effectual/config.py,sha256=Z99V7AnJpSWuo-aEz10TDj5BAaT7tboGJUjggj-HQh4,1798
|
5
|
+
effectual/developer.py,sha256=sgh7p9iJXJd-R-Tx8nbeR3isS3ybXMtvhKIxzg3Kl9A,1988
|
6
|
+
effectual/transformations.py,sha256=7GHgQWzin2J1W62yMReHXaYIChXc3f0rNJA-yY4LDEI,1313
|
7
|
+
effectual-0.7.8.dist-info/METADATA,sha256=oRCnvNdGbyFWxzahP8OixZrG3l2NKXtEM-vqIR0Fu5w,3060
|
8
|
+
effectual-0.7.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
effectual-0.7.8.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
|
10
|
+
effectual-0.7.8.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
|
11
|
+
effectual-0.7.8.dist-info/RECORD,,
|
effectual-0.7.6.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
effectual/__init__.py,sha256=Hg_RSVgpLZvaeBUqt5uL_r5YIDsVdKPcFE2L5WJVYbM,482
|
2
|
-
effectual/build.py,sha256=0X3sKF9irQ2uDx8XiT3QBeqNozatFGq--siF4mdQE-U,6231
|
3
|
-
effectual/colors.py,sha256=na7SEUSXM7aHvEKeIAn5shrZJtrBYq_ZUp121GRO_PQ,1411
|
4
|
-
effectual/config.py,sha256=Z99V7AnJpSWuo-aEz10TDj5BAaT7tboGJUjggj-HQh4,1798
|
5
|
-
effectual/developer.py,sha256=KU4Lu_-dyAlBmflso0WfdMHhC3QcilDJgal8y--ewEU,2006
|
6
|
-
effectual/transformations.py,sha256=7GHgQWzin2J1W62yMReHXaYIChXc3f0rNJA-yY4LDEI,1313
|
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
|
File without changes
|