effectual 0.7.1__tar.gz → 0.7.2__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.1
3
+ Version: 0.7.2
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.1"
3
+ version = "0.7.2"
4
4
  description = "A python package/script bundler"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,3 +1,4 @@
1
+ import hashlib
1
2
  import os
2
3
  import shutil
3
4
  import zipfile
@@ -5,8 +6,6 @@ from pathlib import Path
5
6
  from time import perf_counter
6
7
  from typing import Any
7
8
 
8
- from watch_lite import getHash
9
-
10
9
  from .colors import completeColor, fileColor, folderColor, tagColor
11
10
  from .config import dumpHashes, loadConfig, loadToml
12
11
  from .transformations import minifyFile, minifyToString
@@ -99,6 +98,20 @@ def dependencies() -> None:
99
98
  )
100
99
 
101
100
 
101
+ def getHash(filePath: Path) -> str:
102
+ """Gets the hash of a single file
103
+
104
+ Args:
105
+ filePath (Path): Path to the file
106
+
107
+ Returns:
108
+ str: String of the hash
109
+ """
110
+ with open(filePath, "rb") as file:
111
+ fileHash = hashlib.sha1(file.read()).hexdigest()
112
+ return fileHash
113
+
114
+
102
115
  def main() -> None:
103
116
  """Entrypoint
104
117
 
@@ -39,7 +39,7 @@ wheels = [
39
39
 
40
40
  [[package]]
41
41
  name = "effectual"
42
- version = "0.7.1"
42
+ version = "0.7.2"
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