cdk8s-cli 2.201.51 → 2.202.0
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/package.json
CHANGED
|
@@ -7,9 +7,9 @@ const cli = require.resolve('../../bin/cdk8s');
|
|
|
7
7
|
|
|
8
8
|
exports.pre = () => {
|
|
9
9
|
try {
|
|
10
|
-
execSync(`${platform() === 'win32' ? 'where' : 'which'}
|
|
10
|
+
execSync(`${platform() === 'win32' ? 'where' : 'which'} uv`);
|
|
11
11
|
} catch {
|
|
12
|
-
console.error(`Unable to find "
|
|
12
|
+
console.error(`Unable to find "uv". Install from https://docs.astral.sh/uv/getting-started/installation/`);
|
|
13
13
|
process.exit(1);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
@@ -23,19 +23,19 @@ exports.post = options => {
|
|
|
23
23
|
throw new Error(`missing context "pypi_cdk8s_plus"`);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
execSync('
|
|
26
|
+
execSync('uv lock --refresh')
|
|
27
27
|
|
|
28
|
-
// this installs the libraries in the
|
|
29
|
-
execSync('
|
|
28
|
+
// this installs the libraries in the pyproject.toml we provide
|
|
29
|
+
execSync('uv sync', { stdio: 'inherit' });
|
|
30
30
|
|
|
31
|
-
// these are more akward to put in the
|
|
32
|
-
execSync(`
|
|
33
|
-
execSync(`
|
|
31
|
+
// these are more akward to put in the pyproject.toml since they can be local wheel files
|
|
32
|
+
execSync(`uv pip install --prerelease allow ${pypi_cdk8s}`, { stdio: 'inherit' });
|
|
33
|
+
execSync(`uv pip install --prerelease allow ${pypi_cdk8s_plus}`, { stdio: 'inherit' });
|
|
34
34
|
|
|
35
35
|
chmodSync('main.py', '700');
|
|
36
36
|
|
|
37
37
|
execSync(`node "${cli}" import k8s -l python`);
|
|
38
|
-
execSync(`
|
|
38
|
+
execSync(`uv run python main.py`);
|
|
39
39
|
|
|
40
40
|
console.log(readFileSync('./help', 'utf-8'));
|
|
41
41
|
};
|