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.
- {effectual-0.5.3 → effectual-0.5.4}/PKG-INFO +1 -1
- {effectual-0.5.3 → effectual-0.5.4}/pyproject.toml +1 -1
- {effectual-0.5.3 → effectual-0.5.4}/src/effectual/build.py +5 -5
- {effectual-0.5.3 → effectual-0.5.4}/src/effectual/config.py +2 -2
- {effectual-0.5.3 → effectual-0.5.4}/uv.lock +1 -1
- {effectual-0.5.3 → effectual-0.5.4}/.gitignore +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/.python-version +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/LICENSE +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/README.md +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/src/effectual/__init__.py +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/src/effectual/colors.py +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/src/effectual/developer.py +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/src/effectual/minifier.py +0 -0
- {effectual-0.5.3 → effectual-0.5.4}/taskfile.yml +0 -0
@@ -65,8 +65,9 @@ def bundleFiles(
|
|
65
65
|
|
66
66
|
|
67
67
|
def dependencies(minify: bool) -> None:
|
68
|
-
|
69
|
-
|
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[
|
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
|
-
|
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
|
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
|
11
|
+
pathToToml (str): Path of a toml file
|
12
12
|
|
13
13
|
Raises:
|
14
14
|
RuntimeError: Toml file is incorrectly configured
|
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
|