effectual 0.7.12__tar.gz → 0.8.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {effectual-0.7.12 → effectual-0.8.0}/PKG-INFO +1 -1
- {effectual-0.7.12 → effectual-0.8.0}/pyproject.toml +1 -1
- {effectual-0.7.12 → effectual-0.8.0}/src/effectual/build.py +4 -6
- {effectual-0.7.12 → effectual-0.8.0}/uv.lock +1 -1
- {effectual-0.7.12 → effectual-0.8.0}/.gitignore +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/.python-version +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/LICENSE +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/README.md +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/src/effectual/__init__.py +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/src/effectual/colors.py +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/src/effectual/config.py +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/src/effectual/developer.py +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/src/effectual/transformations.py +0 -0
- {effectual-0.7.12 → effectual-0.8.0}/taskfile.yml +0 -0
@@ -101,7 +101,7 @@ def dependencies() -> None:
|
|
101
101
|
|
102
102
|
|
103
103
|
def getHash(filePath: Path) -> str:
|
104
|
-
"""
|
104
|
+
"""Creates an MD5 Hash from a file
|
105
105
|
|
106
106
|
Args:
|
107
107
|
filePath (Path): Path to the file
|
@@ -110,7 +110,7 @@ def getHash(filePath: Path) -> str:
|
|
110
110
|
str: String of the hash
|
111
111
|
"""
|
112
112
|
with open(filePath, "rb") as file:
|
113
|
-
fileHash = hashlib.
|
113
|
+
fileHash = hashlib.md5(file.read()).hexdigest()
|
114
114
|
return fileHash
|
115
115
|
|
116
116
|
|
@@ -146,7 +146,7 @@ def main() -> None:
|
|
146
146
|
currentHash["hashes"]["pyproject"] = getHash(Path("./pyproject.toml"))
|
147
147
|
currentHash["hashes"]["lock"] = getHash(Path("./uv.lock"))
|
148
148
|
|
149
|
-
freshHash: bool =
|
149
|
+
freshHash: bool = True # Whether or not to re-optimize deps
|
150
150
|
|
151
151
|
if uvHashPath.exists():
|
152
152
|
lastHash: dict[str, Any] = loadToml(uvHashPath).get("hashes")
|
@@ -154,14 +154,12 @@ def main() -> None:
|
|
154
154
|
with open(uvHashPath, "w") as file:
|
155
155
|
dumpHashes(currentHash, file)
|
156
156
|
dependencies()
|
157
|
-
freshHash = True
|
158
157
|
else:
|
159
158
|
freshHash = False
|
160
159
|
else:
|
161
160
|
with open(uvHashPath, "x") as file:
|
162
161
|
dumpHashes(currentHash, file)
|
163
162
|
dependencies()
|
164
|
-
freshHash = True
|
165
163
|
|
166
164
|
bundleFiles(
|
167
165
|
sourceDirectory,
|
@@ -176,5 +174,5 @@ def main() -> None:
|
|
176
174
|
print(completeColor(f"Completed in {endTime - startTime:.4f}s"))
|
177
175
|
|
178
176
|
|
179
|
-
if "__main__"
|
177
|
+
if "__main__" == __name__:
|
180
178
|
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
|