nmk-python 1.0.0__py3-none-any.whl → 1.1.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 +4 -4
- nmk_python/build.yml +14 -4
- {nmk_python-1.0.0.dist-info → nmk_python-1.1.0.dist-info}/METADATA +2 -2
- {nmk_python-1.0.0.dist-info → nmk_python-1.1.0.dist-info}/RECORD +7 -7
- {nmk_python-1.0.0.dist-info → nmk_python-1.1.0.dist-info}/WHEEL +1 -1
- {nmk_python-1.0.0.dist-info → nmk_python-1.1.0.dist-info}/LICENSE +0 -0
- {nmk_python-1.0.0.dist-info → nmk_python-1.1.0.dist-info}/top_level.txt +0 -0
nmk_python/build.py
CHANGED
|
@@ -121,7 +121,7 @@ class Installer(VenvUpdateBuilder):
|
|
|
121
121
|
Install built wheel in venv
|
|
122
122
|
"""
|
|
123
123
|
|
|
124
|
-
def build(self, name: str, pip_args: str, to_remove: str):
|
|
124
|
+
def build(self, name: str, pip_args: list[str], to_remove: str):
|
|
125
125
|
"""
|
|
126
126
|
Install wheel in venv
|
|
127
127
|
|
|
@@ -133,7 +133,7 @@ class Installer(VenvUpdateBuilder):
|
|
|
133
133
|
# Check if wheel can be installed
|
|
134
134
|
if _can_install(name, self.logger):
|
|
135
135
|
# Install wheel in current venv
|
|
136
|
-
super().build(pip_args)
|
|
136
|
+
super().build(" ".join(pip_args))
|
|
137
137
|
|
|
138
138
|
# Remove stamp file
|
|
139
139
|
Path(to_remove).unlink(missing_ok=True)
|
|
@@ -162,7 +162,7 @@ class EditableBuilder(NmkTaskBuilder):
|
|
|
162
162
|
Install python project in editable mode
|
|
163
163
|
"""
|
|
164
164
|
|
|
165
|
-
def build(self, pip_args: str):
|
|
165
|
+
def build(self, pip_args: list[str]):
|
|
166
166
|
"""
|
|
167
167
|
Install project in venv as editable package
|
|
168
168
|
|
|
@@ -172,7 +172,7 @@ class EditableBuilder(NmkTaskBuilder):
|
|
|
172
172
|
# Check if project can be installed in editable mode
|
|
173
173
|
if _can_install(self.model.config["pythonPackage"].value, self.logger):
|
|
174
174
|
# Delegate to pip
|
|
175
|
-
run_pip(["install", "-e", "."], logger=self.logger, extra_args=pip_args)
|
|
175
|
+
run_pip(["install", "-e", "."], logger=self.logger, extra_args=" ".join(pip_args))
|
|
176
176
|
|
|
177
177
|
# Touch stamp file
|
|
178
178
|
self.main_output.touch()
|
nmk_python/build.yml
CHANGED
|
@@ -48,6 +48,16 @@ config:
|
|
|
48
48
|
password: ${{ secrets.pypi_password }}
|
|
49
49
|
packages_dir: ${r!pythonArtifacts}
|
|
50
50
|
|
|
51
|
+
# Wheel install arguments
|
|
52
|
+
pythonWheelInstallArgs:
|
|
53
|
+
- --force-reinstall # force reinstall because otherwise install will be skipped if version didn't changed
|
|
54
|
+
- --no-deps # but skip dependencies to avoid reinstalling everything (deps are already installed by py.venv task)
|
|
55
|
+
|
|
56
|
+
# Editable install arguments
|
|
57
|
+
pythonEditableInstallArgs:
|
|
58
|
+
- --no-deps # skip dependencies to avoid reinstalling everything
|
|
59
|
+
- --no-build-isolation # disable dependencies install when building for "editable" mode
|
|
60
|
+
|
|
51
61
|
tasks:
|
|
52
62
|
|
|
53
63
|
# Python editable install
|
|
@@ -66,7 +76,8 @@ tasks:
|
|
|
66
76
|
- ${pythonProjectFile}
|
|
67
77
|
builder: nmk_python.build.EditableBuilder
|
|
68
78
|
params:
|
|
69
|
-
pip_args:
|
|
79
|
+
pip_args:
|
|
80
|
+
- ${pythonEditableInstallArgs}
|
|
70
81
|
|
|
71
82
|
# Python wheel build
|
|
72
83
|
py.build:
|
|
@@ -107,9 +118,8 @@ tasks:
|
|
|
107
118
|
builder: nmk_python.build.Installer
|
|
108
119
|
params:
|
|
109
120
|
name: ${pythonPackage}
|
|
110
|
-
pip_args:
|
|
111
|
-
|
|
112
|
-
# - but skip dependencies to avoid reinstalling everything (deps are already installed by py.venv task)
|
|
121
|
+
pip_args:
|
|
122
|
+
- ${pythonWheelInstallArgs}
|
|
113
123
|
to_remove: ${pythonEditableStamp}
|
|
114
124
|
|
|
115
125
|
# Python module clean
|
|
@@ -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=rN7CvAUPU-gGsg17cBojdqGBSbW-GAEFItz234rqM1E,6307
|
|
4
|
+
nmk_python/build.yml,sha256=Yn4zVuNNo1fnAsvlI_ul_kmEpLp_5WHK4pA0T9kkQ3I,4297
|
|
5
5
|
nmk_python/doc.yml,sha256=12amAlYylH7JAHaqBIOoEZ_LrXY_bPNKuHrrwUkIj8w,932
|
|
6
6
|
nmk_python/files.py,sha256=gtPf6ldR5F4oGsAdzFnEIbI9MqqvF3z5JQnyONZmLmk,1863
|
|
7
7
|
nmk_python/files.yml,sha256=-vGjogdulwsfdKVEUa5RARYDKxF3m9RmHKFnIhaT3_k,780
|
|
@@ -19,8 +19,8 @@ nmk_python/templates/pytest.toml.jinja,sha256=zQ3SRWnF23Omxm7zInE54j0l3OyjXSOn5p
|
|
|
19
19
|
nmk_python/templates/python-settings.json.jinja,sha256=-6J1tybWEzChxlDqu4tp9BMWxbYD8HpztGs9G8LkC_w,877
|
|
20
20
|
nmk_python/templates/python-test-debug-launch.json.jinja,sha256=J_xju2EpHNXvgvqBxlf99p7g-ZMh3xE-_2r7o_57gpU,364
|
|
21
21
|
nmk_python/templates/ruff.toml.jinja,sha256=DTHe1ixK1SBY8d2xBCfkGz89HzjAoMO7Ogs12AY1i4Y,346
|
|
22
|
-
nmk_python-1.
|
|
23
|
-
nmk_python-1.
|
|
24
|
-
nmk_python-1.
|
|
25
|
-
nmk_python-1.
|
|
26
|
-
nmk_python-1.
|
|
22
|
+
nmk_python-1.1.0.dist-info/LICENSE,sha256=PROo9EW7wP6jmSr_90OluItAsIB411b_CAqEBioMKpI,1074
|
|
23
|
+
nmk_python-1.1.0.dist-info/METADATA,sha256=xdcI0iJEVV_3VQQHdj2m0oEo5ith5CAhcSMQSXM2CWo,3118
|
|
24
|
+
nmk_python-1.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
25
|
+
nmk_python-1.1.0.dist-info/top_level.txt,sha256=MCb5w_hoOZ0kk3Dajxrd9Pz6lZ3pyuS6TQCRA3vddTo,11
|
|
26
|
+
nmk_python-1.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|