cdk8s-cli 2.201.50 → 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
@@ -106,7 +106,7 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "version": "2.201.50",
109
+ "version": "2.202.0",
110
110
  "jest": {
111
111
  "coverageProvider": "v8",
112
112
  "testMatch": [
@@ -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'} pipenv`);
10
+ execSync(`${platform() === 'win32' ? 'where' : 'which'} uv`);
11
11
  } catch {
12
- console.error(`Unable to find "pipenv". Install from https://pipenv.pypa.io/en/latest/installation/`);
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('pipenv lock --clear')
26
+ execSync('uv lock --refresh')
27
27
 
28
- // this installs the libraries in the Pipfile we provide
29
- execSync('pipenv install', { stdio: 'inherit' });
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 Pipfile since they can be local wheel files
32
- execSync(`pipenv install --pre ${pypi_cdk8s}`, { stdio: 'inherit' });
33
- execSync(`pipenv install --pre ${pypi_cdk8s_plus}`, { stdio: 'inherit' });
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(`pipenv run python main.py`);
38
+ execSync(`uv run python main.py`);
39
39
 
40
40
  console.log(readFileSync('./help', 'utf-8'));
41
41
  };
@@ -1,4 +1,4 @@
1
1
  language: python
2
- app: pipenv run python main.py
2
+ app: uv run python main.py
3
3
  imports:
4
4
  - k8s
@@ -0,0 +1,12 @@
1
+ [project]
2
+ name = "cdk8s-cli"
3
+ version = "0.1.0"
4
+ requires-python = ">=3.10"
5
+ dependencies = [
6
+ "constructs~={{ constructs_version }}"
7
+ ]
8
+
9
+ [[tool.uv.index]]
10
+ name = "pypi"
11
+ url = "https://pypi.org/simple"
12
+
@@ -1,10 +0,0 @@
1
- [[source]]
2
- name = "pypi"
3
- url = "https://pypi.org/simple"
4
- verify_ssl = true
5
-
6
- [requires]
7
- python_version = "3"
8
-
9
- [packages]
10
- constructs = "~={{ constructs_version }}"