@fishawack/lab-env 4.45.0-beta.3 → 4.45.0-beta.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.45.0-beta.4 (2025-09-03)
4
+
5
+ #### Features
6
+
7
+ * added new clients ([872332e](https://bitbucket.org/fishawackdigital/lab-env/commits/872332e5303b22a6f44102c724b824422418710b))
8
+
9
+ #### Bug Fixes
10
+
11
+ * python now uses uv and implements test command ([b81b8d7](https://bitbucket.org/fishawackdigital/lab-env/commits/b81b8d7c47a6e2fe7437ed930f18e3f54e800fc7))
12
+
3
13
  ### 4.45.0-beta.3 (2025-09-02)
4
14
 
5
15
  #### Features
package/cli.js CHANGED
@@ -39,6 +39,7 @@ const args = hideBin(process.argv);
39
39
  base: [
40
40
  "start",
41
41
  "setup",
42
+ "test",
42
43
  "connect",
43
44
  "execute",
44
45
  "nuke",
@@ -53,7 +54,6 @@ const args = hideBin(process.argv);
53
54
  "check",
54
55
  "npm",
55
56
  "production",
56
- "test",
57
57
  "reinstall",
58
58
  "install",
59
59
  "uninstall",
@@ -69,7 +69,7 @@ const args = hideBin(process.argv);
69
69
  wordpress: ["wp", "composer", "php"],
70
70
  adonis: ["ace", "node"],
71
71
  php: ["composer", "php"],
72
- python: ["python", "pip"],
72
+ python: ["python", "uv"],
73
73
  };
74
74
 
75
75
  // Define which platforms get which command groups
@@ -55,6 +55,9 @@ module.exports.clients = [
55
55
  "danone",
56
56
  "mtpa",
57
57
  "besins",
58
+ "dompe",
59
+ "test",
60
+ "bristolmyers",
58
61
  ];
59
62
 
60
63
  module.exports.static = async (
package/commands/setup.js CHANGED
@@ -21,10 +21,7 @@ module.exports = [
21
21
  ),
22
22
  );
23
23
  } else if (_.platform === "python") {
24
- _.command(
25
- "python",
26
- `python -m venv .venv && pip install -r src/requirements.txt`,
27
- );
24
+ _.command("python", `uv sync --locked || uv sync`);
28
25
  } else {
29
26
  _.command("core", `npm run setup`);
30
27
  }
package/commands/start.js CHANGED
@@ -26,7 +26,7 @@ module.exports = [
26
26
  } else if (_.platform === "python") {
27
27
  _.command(
28
28
  "python",
29
- `python src/main.py -- -- ${argv.flags.join(" ")}`,
29
+ `uv run ./src/main.py -- -- ${argv.flags.join(" ")}`,
30
30
  true,
31
31
  );
32
32
  } else {
package/commands/test.js CHANGED
@@ -6,17 +6,21 @@ module.exports = [
6
6
  () => {},
7
7
  () => {
8
8
  _.up(() => {
9
- _.command(
10
- "core",
11
- `${process.env.VERSION === "0" ? "xvfb-run " : ""}npm run test`,
12
- );
9
+ if (_.platform === "python") {
10
+ _.command("python", `uv run pytest`);
11
+ } else {
12
+ _.command(
13
+ "core",
14
+ `${process.env.VERSION === "0" ? "xvfb-run " : ""}npm run test`,
15
+ );
13
16
 
14
- if (_.platform === "laravel") {
15
- _.command("php", `php artisan test`);
16
- }
17
+ if (_.platform === "laravel") {
18
+ _.command("php", `php artisan test`);
19
+ }
17
20
 
18
- if (_.platform === "adonis") {
19
- _.command("node", `node ace test`);
21
+ if (_.platform === "adonis") {
22
+ _.command("node", `node ace test`);
23
+ }
20
24
  }
21
25
  });
22
26
  },
@@ -1,13 +1,13 @@
1
1
  const _ = require("../globals.js");
2
2
 
3
3
  module.exports = [
4
- "pip [command...]",
5
- "run pip command",
4
+ "uv [command...]",
5
+ "run uv command",
6
6
  (yargs) => {
7
7
  yargs.positional("command", {
8
8
  describe: "command to run",
9
9
  default: "",
10
10
  });
11
11
  },
12
- (argv) => _.command("python", `pip ${argv.command.join(" ")}`),
12
+ (argv) => _.command("python", `uv ${argv.command.join(" ")}`),
13
13
  ];
package/globals.js CHANGED
@@ -183,7 +183,7 @@ try {
183
183
  }
184
184
 
185
185
  try {
186
- python = existsSync(path.join(cwd, "src/requirements.txt"));
186
+ python = existsSync(path.join(cwd, "pyproject.toml"));
187
187
  } catch {
188
188
  /* empty */
189
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "4.45.0-beta.3",
3
+ "version": "4.45.0-beta.4",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  services:
2
2
  python:
3
- image: python:3.13
3
+ image: ghcr.io/astral-sh/uv:python3.13-bookworm
4
4
  working_dir: /workspace
5
5
  command: sleep infinity
6
6
  tty: true
@@ -8,7 +8,8 @@ services:
8
8
  user: "${USER_UID}:${USER_GID}"
9
9
  environment:
10
10
  - PATH=/workspace/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
11
- - PIP_NO_CACHE_DIR=off
11
+ - UV_NO_CACHE=1
12
+ - UV_LINK_MODE=copy
12
13
  - PYTHONDONTWRITEBYTECODE="1"
13
14
  - PYTHONUNBUFFERED="1"
14
15
  - REPO=${REPO:-}