@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 +10 -0
- package/cli.js +2 -2
- package/commands/create/services/aws/index.js +3 -0
- package/commands/setup.js +1 -4
- package/commands/start.js +1 -1
- package/commands/test.js +13 -9
- package/commands/{pip.js → uv.js} +3 -3
- package/globals.js +1 -1
- package/package.json +1 -1
- package/python/0/docker-compose.yml +3 -2
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", "
|
|
72
|
+
python: ["python", "uv"],
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// Define which platforms get which command groups
|
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
package/commands/test.js
CHANGED
|
@@ -6,17 +6,21 @@ module.exports = [
|
|
|
6
6
|
() => {},
|
|
7
7
|
() => {
|
|
8
8
|
_.up(() => {
|
|
9
|
-
_.
|
|
10
|
-
"
|
|
11
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
if (_.platform === "laravel") {
|
|
18
|
+
_.command("php", `php artisan test`);
|
|
19
|
+
}
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
"
|
|
5
|
-
"run
|
|
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", `
|
|
12
|
+
(argv) => _.command("python", `uv ${argv.command.join(" ")}`),
|
|
13
13
|
];
|
package/globals.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
services:
|
|
2
2
|
python:
|
|
3
|
-
image:
|
|
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
|
-
-
|
|
11
|
+
- UV_NO_CACHE=1
|
|
12
|
+
- UV_LINK_MODE=copy
|
|
12
13
|
- PYTHONDONTWRITEBYTECODE="1"
|
|
13
14
|
- PYTHONUNBUFFERED="1"
|
|
14
15
|
- REPO=${REPO:-}
|