effectual 0.7.12__py3-none-any.whl → 0.8.0__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 CHANGED
@@ -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()
@@ -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>
@@ -0,0 +1,11 @@
1
+ effectual/__init__.py,sha256=Hg_RSVgpLZvaeBUqt5uL_r5YIDsVdKPcFE2L5WJVYbM,482
2
+ effectual/build.py,sha256=CoWaZD0lMAw4TiHmYfy4CzeNkttnKgHrfLWviZ2LeGI,6331
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.8.0.dist-info/METADATA,sha256=etnnwahupwpP7bkA6cUBtOd80ZyISkFiJunjeGQWFCg,3336
8
+ effectual-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ effectual-0.8.0.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
10
+ effectual-0.8.0.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
11
+ effectual-0.8.0.dist-info/RECORD,,
@@ -1,11 +0,0 @@
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.12.dist-info/METADATA,sha256=nlTVKnuD1trp6Go4I_loILK9ZPAV2NAmM-SDYDKM0Zc,3337
8
- effectual-0.7.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- effectual-0.7.12.dist-info/entry_points.txt,sha256=1W7EjlLZkw_Wz8V1SgdzzDis-CRE5IINyg74upsB0zU,40
10
- effectual-0.7.12.dist-info/licenses/LICENSE,sha256=RrVXS_K_FctToNx9BLuZm9vbcpTi3PHNzWMaz7QyVeg,1082
11
- effectual-0.7.12.dist-info/RECORD,,