nmk-python 1.12.2__py3-none-any.whl → 1.13.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.
- nmk_python/build.py +10 -1
- nmk_python/build.yml +1 -0
- {nmk_python-1.12.2.dist-info → nmk_python-1.13.0.dist-info}/METADATA +1 -1
- {nmk_python-1.12.2.dist-info → nmk_python-1.13.0.dist-info}/RECORD +8 -8
- {nmk_python-1.12.2.dist-info → nmk_python-1.13.0.dist-info}/WHEEL +0 -0
- {nmk_python-1.12.2.dist-info → nmk_python-1.13.0.dist-info}/entry_points.txt +0 -0
- {nmk_python-1.12.2.dist-info → nmk_python-1.13.0.dist-info}/licenses/LICENSE +0 -0
- {nmk_python-1.12.2.dist-info → nmk_python-1.13.0.dist-info}/top_level.txt +0 -0
nmk_python/build.py
CHANGED
|
@@ -166,7 +166,7 @@ class Uninstaller(NmkTaskBuilder):
|
|
|
166
166
|
Uninstall current project wheel from venv
|
|
167
167
|
"""
|
|
168
168
|
|
|
169
|
-
def build(self, name: str, local_deps: list[str] | None = None): # pyright: ignore[reportIncompatibleMethodOverride]
|
|
169
|
+
def build(self, name: str, local_deps: list[str] | None = None, lock_files: list[str] | None = None): # pyright: ignore[reportIncompatibleMethodOverride]
|
|
170
170
|
"""
|
|
171
171
|
Uninstall wheel from venv
|
|
172
172
|
|
|
@@ -174,8 +174,17 @@ class Uninstaller(NmkTaskBuilder):
|
|
|
174
174
|
|
|
175
175
|
:param name: wheel name to be uninstalled
|
|
176
176
|
:param local_deps: list of workspace local dependencies patterns, used to find additional wheels to uninstall
|
|
177
|
+
:param lock_files: list of paths to lock files to be cleaned
|
|
177
178
|
"""
|
|
178
179
|
|
|
180
|
+
# Clean lock files, if required and present
|
|
181
|
+
project_root = self.model.env_backend.project_path
|
|
182
|
+
for lock_file_path in filter(
|
|
183
|
+
lambda p: p.is_file(), map(lambda p: p if p.is_absolute() else project_root / p, map(Path, lock_files if lock_files else []))
|
|
184
|
+
):
|
|
185
|
+
self.logger.debug(f"Removing lock file: {lock_file_path}")
|
|
186
|
+
lock_file_path.unlink()
|
|
187
|
+
|
|
179
188
|
# Find local deps to uninstall, from provided packages
|
|
180
189
|
wheel_names = set([name])
|
|
181
190
|
eb = cast(EnvBackend, self.model.env_backend) # type: ignore
|
nmk_python/build.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
nmk_python/__init__.py,sha256=EouCWXbAeObby1vOCx0Vx_WaGC2fEEFDMCen3JZt4TU,446
|
|
2
2
|
nmk_python/badges.yml,sha256=LzElZecCXKxdF-oPkvIwfnbQlOcAM_zUj6MelClmAug,749
|
|
3
|
-
nmk_python/build.py,sha256=
|
|
4
|
-
nmk_python/build.yml,sha256=
|
|
3
|
+
nmk_python/build.py,sha256=5acJJ1EQGEqvcOhBqA2qtTzGaZBviAliEEvjIj8ybu8,17675
|
|
4
|
+
nmk_python/build.yml,sha256=x1jPasHa0h9Bgqmc-xnr-IBmjLBpNLdE3aEZXYMgsZA,6570
|
|
5
5
|
nmk_python/doc.yml,sha256=12amAlYylH7JAHaqBIOoEZ_LrXY_bPNKuHrrwUkIj8w,932
|
|
6
6
|
nmk_python/files.py,sha256=K6Y-XKXuf8jh4x333Qgj6G1MyB-BgZ5Kd2-XCZhsfR4,2000
|
|
7
7
|
nmk_python/files.yml,sha256=jlp87gW9rTASUnsy7id7VWanaMUMN_py82bMa2adniM,813
|
|
@@ -30,9 +30,9 @@ nmk_python/templates/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
30
30
|
nmk_python/templates/src/__init__.py.jinja,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
nmk_python/templates/src/sample.py.jinja,sha256=OOTps7EjviwYFCIb5GpMHcidxhBY5NLQVlcFLqxuxNU,227
|
|
32
32
|
nmk_python/templates/src/test_sample.py.jinja,sha256=u-ShBoKDF3se9KvgQ1SzO4NwymjqNowwURF4Q1oR3wo,221
|
|
33
|
-
nmk_python-1.
|
|
34
|
-
nmk_python-1.
|
|
35
|
-
nmk_python-1.
|
|
36
|
-
nmk_python-1.
|
|
37
|
-
nmk_python-1.
|
|
38
|
-
nmk_python-1.
|
|
33
|
+
nmk_python-1.13.0.dist-info/licenses/LICENSE,sha256=PROo9EW7wP6jmSr_90OluItAsIB411b_CAqEBioMKpI,1074
|
|
34
|
+
nmk_python-1.13.0.dist-info/METADATA,sha256=hzKrXJ3O6HtO25C6qTUYD1I_P32D8VzOlZhRcwfYgTw,3205
|
|
35
|
+
nmk_python-1.13.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
36
|
+
nmk_python-1.13.0.dist-info/entry_points.txt,sha256=QLXIIXl6wODHDnVkh7KuiLv_XzfFtNfdWwpxyB675ak,88
|
|
37
|
+
nmk_python-1.13.0.dist-info/top_level.txt,sha256=MCb5w_hoOZ0kk3Dajxrd9Pz6lZ3pyuS6TQCRA3vddTo,11
|
|
38
|
+
nmk_python-1.13.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|