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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: effectual
3
- Version: 0.7.12
3
+ Version: 0.8.0
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.12"
3
+ version = "0.8.0"
4
4
  description = "A python package/script bundler"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -101,7 +101,7 @@ def dependencies() -> None:
101
101
 
102
102
 
103
103
  def getHash(filePath: Path) -> str:
104
- """Gets the hash of a single file
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.sha1(file.read()).hexdigest()
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 = False
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__" in __name__:
177
+ if "__main__" == __name__:
180
178
  main()
@@ -164,7 +164,7 @@ wheels = [
164
164
 
165
165
  [[package]]
166
166
  name = "effectual"
167
- version = "0.7.12"
167
+ version = "0.8.0"
168
168
  source = { editable = "." }
169
169
  dependencies = [
170
170
  { name = "click" },
File without changes
File without changes
File without changes
File without changes
File without changes