pinokiod 8.0.35 → 8.0.36
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.
- package/kernel/shell.js +1 -0
- package/package.json +1 -1
- package/test/shell-run-template.test.js +28 -0
package/kernel/shell.js
CHANGED
package/package.json
CHANGED
|
@@ -146,6 +146,34 @@ test('Shell.init_env preserves multiline Pinokio argv env values only', async ()
|
|
|
146
146
|
assert.equal(shell.env.OTHER_MULTILINE, 'line one line two')
|
|
147
147
|
})
|
|
148
148
|
|
|
149
|
+
test('Shell.activate keeps managed Python downloads automatic on every platform', async () => {
|
|
150
|
+
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'pinokio-shell-uv-python-'))
|
|
151
|
+
const kernel = createKernel(root)
|
|
152
|
+
kernel.bin = {
|
|
153
|
+
activationCommands: () => [],
|
|
154
|
+
path: (...parts) => path.join(root, 'bin', ...parts)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
for (const [platform, shellName] of [
|
|
158
|
+
['linux', 'bash'],
|
|
159
|
+
['darwin', 'bash'],
|
|
160
|
+
['win32', 'cmd.exe']
|
|
161
|
+
]) {
|
|
162
|
+
const shell = createShell(kernel)
|
|
163
|
+
shell.platform = platform
|
|
164
|
+
shell.shell = shellName
|
|
165
|
+
shell.env = { UV_PYTHON_DOWNLOADS: 'manual' }
|
|
166
|
+
|
|
167
|
+
await shell.activate({
|
|
168
|
+
path: root,
|
|
169
|
+
message: ['true']
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
assert.equal(shell.env.UV_PYTHON_PREFERENCE, 'only-managed')
|
|
173
|
+
assert.equal(shell.env.UV_PYTHON_DOWNLOADS, 'automatic')
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
|
|
149
177
|
test('Shell.init_env disables Hugging Face hub update checks by default without overriding apps', async () => {
|
|
150
178
|
const root = await fs.mkdtemp(path.join(os.tmpdir(), 'pinokio-shell-hf-env-'))
|
|
151
179
|
await fs.mkdir(path.join(root, 'api'), { recursive: true })
|