effectual 0.5.3__tar.gz → 0.5.4__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.5.3
3
+ Version: 0.5.4
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.5.3"
3
+ version = "0.5.4"
4
4
  description = "A python package/script bundler"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -65,8 +65,9 @@ def bundleFiles(
65
65
 
66
66
 
67
67
  def dependencies(minify: bool) -> None:
68
- with open("./pyproject.toml", "r", encoding="utf-8") as file:
69
- packages: list[str] = loadToml(file).get("project").get("dependencies") # type: ignore
68
+ packages: list[str] = (
69
+ loadToml("./pyproject.toml").get("project").get("dependencies")
70
+ ) # type: ignore
70
71
 
71
72
  arguments: list[str] = ["--no-compile", "--quiet", "--no-binary=none", "--no-cache"]
72
73
 
@@ -111,7 +112,7 @@ def main() -> None:
111
112
  RuntimeError: In the event there is no source directory
112
113
  """
113
114
 
114
- configData: dict[Any, Any] = loadConfig("./pyproject.toml")
115
+ configData: dict[str, Any] = loadConfig("./pyproject.toml")
115
116
 
116
117
  sourceDirectory: Path = Path(configData.get("sourceDirectory", "src/"))
117
118
  outputDirectory: Path = Path(configData.get("outputDirectory", "out/"))
@@ -138,8 +139,7 @@ def main() -> None:
138
139
  currentHash["hashes"]["lock"] = getHash("./uv.lock")
139
140
 
140
141
  if uvHashPath.exists():
141
- with open(uvHashPath, "r") as file:
142
- lastHash: dict[Any, Any] = loadToml(file).get("hashes")
142
+ lastHash: dict[str, Any] = loadToml(uvHashPath).get("hashes")
143
143
  if currentHash["hashes"] != lastHash:
144
144
  with open(uvHashPath, "w") as file:
145
145
  dumpHashes(currentHash, file)
@@ -4,11 +4,11 @@ from typing import Any
4
4
  import rtoml
5
5
 
6
6
 
7
- def loadToml(tomlFile: str | io.TextIOWrapper) -> dict[str, Any]:
7
+ def loadToml(tomlFile: str) -> dict[str, Any]:
8
8
  """Loads a toml file from a specific path to a dictionary
9
9
 
10
10
  Args:
11
- pathToToml (str | io.TextIOWrapper): Path or object of a toml file
11
+ pathToToml (str): Path of a toml file
12
12
 
13
13
  Raises:
14
14
  RuntimeError: Toml file is incorrectly configured
@@ -24,7 +24,7 @@ wheels = [
24
24
 
25
25
  [[package]]
26
26
  name = "effectual"
27
- version = "0.5.2"
27
+ version = "0.5.4"
28
28
  source = { editable = "." }
29
29
  dependencies = [
30
30
  { name = "click" },
File without changes
File without changes
File without changes
File without changes
File without changes