fastws-cli 0.0.41__tar.gz → 0.0.42__tar.gz
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.
- {fastws_cli-0.0.41/fastws_cli.egg-info → fastws_cli-0.0.42}/PKG-INFO +6 -6
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/README.md +5 -5
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/__init__.py +2 -1
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/build_backend.py +4 -1
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/cargo.py +40 -10
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/core.py +29 -8
- {fastws_cli-0.0.41 → fastws_cli-0.0.42/fastws_cli.egg-info}/PKG-INFO +6 -6
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_build.py +10 -1
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_sync.py +2 -1
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/LICENSE +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/_toml.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/integrate.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/news.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/procs.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/releases.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/store.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws/timelock.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws_cli.egg-info/SOURCES.txt +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws_cli.egg-info/dependency_links.txt +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws_cli.egg-info/entry_points.txt +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws_cli.egg-info/requires.txt +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/fastws_cli.egg-info/top_level.txt +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/pyproject.toml +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/setup.cfg +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_build_backend.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_integrate.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_news.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_procs.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_releases.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_setup.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_store.py +0 -0
- {fastws_cli-0.0.41 → fastws_cli-0.0.42}/tests/test_timelock.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastws-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.42
|
|
4
4
|
Summary: Fast workspace tools for multi-repo management
|
|
5
5
|
Author: Jeremy Howard
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -228,7 +228,7 @@ cargo develop --path /path/to/project
|
|
|
228
228
|
cargo develop --profile quick
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
-
Run from the project root, or give its directory with `--path`. The command reads `python-source`, `module-name`, `manifest-path`, `bindings` and features from `[tool.maturin]`. `[tool.fastws] dev-profile = "quick"` selects a project's default for both `cargo develop` and `fastws.cargo.run_tests`. Without that setting they use `
|
|
231
|
+
Run from the project root, or give its directory with `--path`. The command reads `python-source`, `module-name`, `manifest-path`, `bindings` and features from `[tool.maturin]`. `[tool.fastws] dev-profile = "quick"` selects a project's default for both `cargo develop` and `fastws.cargo.run_tests`. Without that setting they use `release`. An explicit `--profile NAME` overrides the project default. Mixed projects must produce a `cdylib` and set `python-source`; `bindings = "bin"` projects build and install their binary targets directly into the active venv. Define the selected profile in `Cargo.toml` and keep incremental compilation enabled for the local crate.
|
|
232
232
|
|
|
233
233
|
The workspace's `[tool.fastws] cargo = "/path/to/cargo"` optionally selects one explicit Cargo executable for fastws builds, checks, metadata and tests, including nextest's subordinate Cargo calls. A missing executable fails without falling back. With no selection, subprocess uses its normal PATH and working-directory rules. Upstream Cargo stays installed and usable; manifests, profiles, features and package selection are unchanged.
|
|
234
234
|
|
|
@@ -267,7 +267,7 @@ cargo stage --profile dist
|
|
|
267
267
|
maturin build --profile dist
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
-
Pass the same target and
|
|
270
|
+
Pass the same target, feature, and Linux glibc flags (`--zig --manylinux 2_31`, `--no-default-features`) to both commands when needed. Staging builds binaries only. On macOS it matches Maturin's linker flags through `build.rustflags` or existing `RUSTFLAGS`/`CARGO_ENCODED_RUSTFLAGS`. A macOS target with its own `rustflags` must include `-C link-arg=-undefined -C link-arg=dynamic_lookup` there. Shared crates are reused when the two builds resolve the same dependency features. Adding `--lib` to staging can select a different compilation profile under LTO.
|
|
271
271
|
|
|
272
272
|
### `cargo wait`
|
|
273
273
|
|
|
@@ -288,7 +288,7 @@ Where a root has `.config/nextest.toml`, preparation uses `cargo nextest list` t
|
|
|
288
288
|
|
|
289
289
|
`root` can also be a list of roots, which build one after another. Roots without nextest then run their binaries in turn. Each profile then runs at the same time in every root whose config defines it: tests in different roots share a phase, and no phase starts before the previous one ends. Suite names start with the root's directory name, and with several profiles also with the profile, as in `app timed: tests/speed.rs`. A failure ends the run after its profile unless `--no-fail-fast` is given.
|
|
290
290
|
|
|
291
|
-
The default profile is `[tool.fastws].dev-profile`, or `
|
|
291
|
+
The default profile is `[tool.fastws].dev-profile`, or `release` when unset. Explicit `--profile NAME`, `--profile=NAME`, `--release` and `-r` override it. Pass Cargo build/selection options positionally, and test filters and harness options in `test_args`. A failed binary stops the run unless `--no-fail-fast` is given. Results contain compiler diagnostics and each binary's outcomes and captured failures.
|
|
292
292
|
|
|
293
293
|
```python
|
|
294
294
|
from fastws.cargo import run_tests
|
|
@@ -359,13 +359,13 @@ Fastws discovers JavaScript packages directly under the workspace root, explicit
|
|
|
359
359
|
|
|
360
360
|
Each sync updates `packages` in the root `pnpm-workspace.yaml` (creating it with `linkWorkspacePackages: deep`, `preferWorkspacePackages: true`, and `minimumReleaseAge: 1440` by default) and maintains `private: true` in the root `package.json`. It preserves external paths, globs, and unrelated settings, and reports added and removed packages.
|
|
361
361
|
|
|
362
|
-
When JavaScript workspace members are present, `ws-sync` reads `vp toolchain --json -g
|
|
362
|
+
When JavaScript workspace members are present, `ws-sync` reads `vp toolchain --json -g`, writes `devDependencies["vite-plus"]` to `package.json`, sets matching `vite@*` and `vitest@*` entries under `overrides` in `pnpm-workspace.yaml`, and adds those toolchain packages to `minimumReleaseAgeExclude` when `minimumReleaseAge` is enabled. Optional tracked `pnpm-workspace.shared.yaml` and `package.json.shared` files are merged on top on every sync. Object-valued fields merge one level deep, shared values win conflicts, and arrays replace rather than concatenate. Unrelated local settings remain; removing a shared key does not delete its local value. Use these files to declare `packageManager`, `devEngines.runtime`, shared policies such as `allowBuilds`, or explicit Vite+ overrides.
|
|
363
363
|
|
|
364
364
|
Before `uv sync`, fastws regenerates `tool.uv.no-build-isolation-package` and `[tool.uv.config-settings-package]` (`metadata-only = "1"`) with the sorted package names of projects using `fastws.build_backend`, including external checkouts. These builds use the shared environment's `fastws-cli` and `maturin`, skip Rust compilation during editable installs inside the workspace, and keep metadata-only wheels separate from compiled editable wheels in uv's cache. Leave global build isolation enabled for other projects.
|
|
365
365
|
|
|
366
366
|
After `uv sync`, fastws writes `_fastws_pytest.pth` into the workspace venv's `site-packages` to default `PYTEST_DISABLE_PLUGIN_AUTOLOAD=1`, keeping pytest plugins installed for one repo from leaking into others. Repos enable the plugins they need via `-p` in `addopts` (override for a run with `PYTEST_DISABLE_PLUGIN_AUTOLOAD=""`).
|
|
367
367
|
|
|
368
|
-
After `uv sync`, fastws runs `cargo develop` in mixed Rust/Python projects and `bindings = "bin"` Rust CLI projects without a `package.json`, with up to one project per CPU building concurrently by default. Cargo skips unchanged compilation inputs. Projects using `fastws.build_backend` should keep only packaging inputs in `tool.uv.cache-keys`; Rust source changes are handled by Cargo.
|
|
368
|
+
After `uv sync`, fastws runs `cargo develop` in mixed Rust/Python projects and `bindings = "bin"` Rust CLI projects without a `package.json`, with up to one project per CPU building concurrently by default. For clean Git checkouts, sync sets `CARGO_INCREMENTAL=0` on `cargo develop` and `cargo wasm` (unless `CARGO_INCREMENTAL` is already set) so `sccache` caches workspace crates; dirty checkouts keep each repo's configured incremental setting. Cargo skips unchanged compilation inputs. Projects using `fastws.build_backend` should keep only packaging inputs in `tool.uv.cache-keys`; Rust source changes are handled by Cargo.
|
|
369
369
|
|
|
370
370
|
Strictly after `cargo develop` finishes, fastws runs `cargo wasm` in parallel for every repo declaring `[tool.fastws].wasm-package`, so any `post-develop-module` generators have already produced their assets and each generated `wasm/pkg/package.json` exists before JavaScript installation.
|
|
371
371
|
|
|
@@ -199,7 +199,7 @@ cargo develop --path /path/to/project
|
|
|
199
199
|
cargo develop --profile quick
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
-
Run from the project root, or give its directory with `--path`. The command reads `python-source`, `module-name`, `manifest-path`, `bindings` and features from `[tool.maturin]`. `[tool.fastws] dev-profile = "quick"` selects a project's default for both `cargo develop` and `fastws.cargo.run_tests`. Without that setting they use `
|
|
202
|
+
Run from the project root, or give its directory with `--path`. The command reads `python-source`, `module-name`, `manifest-path`, `bindings` and features from `[tool.maturin]`. `[tool.fastws] dev-profile = "quick"` selects a project's default for both `cargo develop` and `fastws.cargo.run_tests`. Without that setting they use `release`. An explicit `--profile NAME` overrides the project default. Mixed projects must produce a `cdylib` and set `python-source`; `bindings = "bin"` projects build and install their binary targets directly into the active venv. Define the selected profile in `Cargo.toml` and keep incremental compilation enabled for the local crate.
|
|
203
203
|
|
|
204
204
|
The workspace's `[tool.fastws] cargo = "/path/to/cargo"` optionally selects one explicit Cargo executable for fastws builds, checks, metadata and tests, including nextest's subordinate Cargo calls. A missing executable fails without falling back. With no selection, subprocess uses its normal PATH and working-directory rules. Upstream Cargo stays installed and usable; manifests, profiles, features and package selection are unchanged.
|
|
205
205
|
|
|
@@ -238,7 +238,7 @@ cargo stage --profile dist
|
|
|
238
238
|
maturin build --profile dist
|
|
239
239
|
```
|
|
240
240
|
|
|
241
|
-
Pass the same target and
|
|
241
|
+
Pass the same target, feature, and Linux glibc flags (`--zig --manylinux 2_31`, `--no-default-features`) to both commands when needed. Staging builds binaries only. On macOS it matches Maturin's linker flags through `build.rustflags` or existing `RUSTFLAGS`/`CARGO_ENCODED_RUSTFLAGS`. A macOS target with its own `rustflags` must include `-C link-arg=-undefined -C link-arg=dynamic_lookup` there. Shared crates are reused when the two builds resolve the same dependency features. Adding `--lib` to staging can select a different compilation profile under LTO.
|
|
242
242
|
|
|
243
243
|
### `cargo wait`
|
|
244
244
|
|
|
@@ -259,7 +259,7 @@ Where a root has `.config/nextest.toml`, preparation uses `cargo nextest list` t
|
|
|
259
259
|
|
|
260
260
|
`root` can also be a list of roots, which build one after another. Roots without nextest then run their binaries in turn. Each profile then runs at the same time in every root whose config defines it: tests in different roots share a phase, and no phase starts before the previous one ends. Suite names start with the root's directory name, and with several profiles also with the profile, as in `app timed: tests/speed.rs`. A failure ends the run after its profile unless `--no-fail-fast` is given.
|
|
261
261
|
|
|
262
|
-
The default profile is `[tool.fastws].dev-profile`, or `
|
|
262
|
+
The default profile is `[tool.fastws].dev-profile`, or `release` when unset. Explicit `--profile NAME`, `--profile=NAME`, `--release` and `-r` override it. Pass Cargo build/selection options positionally, and test filters and harness options in `test_args`. A failed binary stops the run unless `--no-fail-fast` is given. Results contain compiler diagnostics and each binary's outcomes and captured failures.
|
|
263
263
|
|
|
264
264
|
```python
|
|
265
265
|
from fastws.cargo import run_tests
|
|
@@ -330,13 +330,13 @@ Fastws discovers JavaScript packages directly under the workspace root, explicit
|
|
|
330
330
|
|
|
331
331
|
Each sync updates `packages` in the root `pnpm-workspace.yaml` (creating it with `linkWorkspacePackages: deep`, `preferWorkspacePackages: true`, and `minimumReleaseAge: 1440` by default) and maintains `private: true` in the root `package.json`. It preserves external paths, globs, and unrelated settings, and reports added and removed packages.
|
|
332
332
|
|
|
333
|
-
When JavaScript workspace members are present, `ws-sync` reads `vp toolchain --json -g
|
|
333
|
+
When JavaScript workspace members are present, `ws-sync` reads `vp toolchain --json -g`, writes `devDependencies["vite-plus"]` to `package.json`, sets matching `vite@*` and `vitest@*` entries under `overrides` in `pnpm-workspace.yaml`, and adds those toolchain packages to `minimumReleaseAgeExclude` when `minimumReleaseAge` is enabled. Optional tracked `pnpm-workspace.shared.yaml` and `package.json.shared` files are merged on top on every sync. Object-valued fields merge one level deep, shared values win conflicts, and arrays replace rather than concatenate. Unrelated local settings remain; removing a shared key does not delete its local value. Use these files to declare `packageManager`, `devEngines.runtime`, shared policies such as `allowBuilds`, or explicit Vite+ overrides.
|
|
334
334
|
|
|
335
335
|
Before `uv sync`, fastws regenerates `tool.uv.no-build-isolation-package` and `[tool.uv.config-settings-package]` (`metadata-only = "1"`) with the sorted package names of projects using `fastws.build_backend`, including external checkouts. These builds use the shared environment's `fastws-cli` and `maturin`, skip Rust compilation during editable installs inside the workspace, and keep metadata-only wheels separate from compiled editable wheels in uv's cache. Leave global build isolation enabled for other projects.
|
|
336
336
|
|
|
337
337
|
After `uv sync`, fastws writes `_fastws_pytest.pth` into the workspace venv's `site-packages` to default `PYTEST_DISABLE_PLUGIN_AUTOLOAD=1`, keeping pytest plugins installed for one repo from leaking into others. Repos enable the plugins they need via `-p` in `addopts` (override for a run with `PYTEST_DISABLE_PLUGIN_AUTOLOAD=""`).
|
|
338
338
|
|
|
339
|
-
After `uv sync`, fastws runs `cargo develop` in mixed Rust/Python projects and `bindings = "bin"` Rust CLI projects without a `package.json`, with up to one project per CPU building concurrently by default. Cargo skips unchanged compilation inputs. Projects using `fastws.build_backend` should keep only packaging inputs in `tool.uv.cache-keys`; Rust source changes are handled by Cargo.
|
|
339
|
+
After `uv sync`, fastws runs `cargo develop` in mixed Rust/Python projects and `bindings = "bin"` Rust CLI projects without a `package.json`, with up to one project per CPU building concurrently by default. For clean Git checkouts, sync sets `CARGO_INCREMENTAL=0` on `cargo develop` and `cargo wasm` (unless `CARGO_INCREMENTAL` is already set) so `sccache` caches workspace crates; dirty checkouts keep each repo's configured incremental setting. Cargo skips unchanged compilation inputs. Projects using `fastws.build_backend` should keep only packaging inputs in `tool.uv.cache-keys`; Rust source changes are handled by Cargo.
|
|
340
340
|
|
|
341
341
|
Strictly after `cargo develop` finishes, fastws runs `cargo wasm` in parallel for every repo declaring `[tool.fastws].wasm-package`, so any `post-develop-module` generators have already produced their assets and each generated `wasm/pkg/package.json` exists before JavaScript installation.
|
|
342
342
|
|
|
@@ -20,9 +20,12 @@ def _stage(config_settings, default_profile='release'):
|
|
|
20
20
|
parser.add_argument('--features', '-F', action='append')
|
|
21
21
|
parser.add_argument('--all-features', action='store_true')
|
|
22
22
|
parser.add_argument('--no-default-features', action='store_true')
|
|
23
|
+
parser.add_argument('--zig', action='store_true')
|
|
24
|
+
parser.add_argument('--manylinux', '--compatibility')
|
|
23
25
|
args, _ = parser.parse_known_args(maturin.get_maturin_pep517_args(config_settings))
|
|
24
26
|
profile = args.profile or ('release' if args.release else tool['maturin'].get('profile', default_profile))
|
|
25
|
-
stage_binaries(root, profile, args.target, args.features, args.all_features, args.no_default_features
|
|
27
|
+
stage_binaries(root, profile, args.target, args.features, args.all_features, args.no_default_features,
|
|
28
|
+
zig=args.zig, manylinux=args.manylinux)
|
|
26
29
|
|
|
27
30
|
|
|
28
31
|
def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):
|
|
@@ -20,7 +20,7 @@ def settings(root):
|
|
|
20
20
|
return tomllib.loads((Path(root).expanduser()/'pyproject.toml').read_text()).get('tool', {})
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
def _dev_profile(root): return settings(root).get('fastws', {}).get('dev-profile', '
|
|
23
|
+
def _dev_profile(root): return settings(root).get('fastws', {}).get('dev-profile', 'release') if (root/'pyproject.toml').exists() else 'release'
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
def _cargo_command(*args, env=None):
|
|
@@ -247,7 +247,7 @@ def run_tests(
|
|
|
247
247
|
timeout:float=30, # Seconds that each native test binary, or each nextest run of one profile in one root, may take after building; None: no limit
|
|
248
248
|
profiles:tuple=('default',) # The nextest profiles to run in turn, each at once in every root whose `.config/nextest.toml` defines it
|
|
249
249
|
)->Results:
|
|
250
|
-
"Build native tests once per root, with no time limit, then run Cargo's reported executables directly from their package directories. Where a root has `.config/nextest.toml`, `cargo nextest run` runs them instead, each test in its own process, once for each of `profiles` that its config defines, and each binary's results come from nextest's JUnit report. Several roots build in turn. Roots without nextest then run in turn, and each profile then runs in every root that defines it at once. Without `--no-fail-fast`, a failure ends the run after its binary, or after its profile. With several roots, each suite's name starts with its root's directory name, and with several profiles, with the profile. Source edits after building cannot trigger another build; results describe the compiled build, not the latest working tree. `timeout` bounds each binary, or each root's run of a profile, excluding compilation. Outside `FASTWS_JOB`, a run that runs out of time is reported as a failed suite with `timed_out` set. Inside a marked job, the timeout raises so its owner can clean up descendants. An omitted Cargo profile uses each root's tool.fastws.dev-profile, or
|
|
250
|
+
"Build native tests once per root, with no time limit, then run Cargo's reported executables directly from their package directories. Where a root has `.config/nextest.toml`, `cargo nextest run` runs them instead, each test in its own process, once for each of `profiles` that its config defines, and each binary's results come from nextest's JUnit report. Several roots build in turn. Roots without nextest then run in turn, and each profile then runs in every root that defines it at once. Without `--no-fail-fast`, a failure ends the run after its binary, or after its profile. With several roots, each suite's name starts with its root's directory name, and with several profiles, with the profile. Source edits after building cannot trigger another build; results describe the compiled build, not the latest working tree. `timeout` bounds each binary, or each root's run of a profile, excluding compilation. Outside `FASTWS_JOB`, a run that runs out of time is reported as a failed suite with `timed_out` set. Inside a marked job, the timeout raises so its owner can clean up descendants. An omitted Cargo profile uses each root's tool.fastws.dev-profile, or release. Doctests are not run. This takes no timing lock: rustc's wrapper and tests that time own their holds."
|
|
251
251
|
roots = [Path(r).expanduser().resolve() for r in (root if isinstance(root, (list, tuple)) else [root])]
|
|
252
252
|
env = {'CARGO_TERM_QUIET': 'false', 'CARGO_TERM_COLOR': 'never'} | (env or {})
|
|
253
253
|
has_profile = any(a in ('-r', '--release', '--profile') or isinstance(a, str) and a.startswith('--profile=') for a in args)
|
|
@@ -318,6 +318,30 @@ def _maturin_flags(target, env):
|
|
|
318
318
|
if flag not in flags and '-C'+flag not in flags: flags += ['-C', flag]
|
|
319
319
|
return [], dict(env, CARGO_ENCODED_RUSTFLAGS='\x1f'.join(flags))
|
|
320
320
|
|
|
321
|
+
_MANYLINUX_ALIASES = {'manylinux2014': '2.17', 'manylinux2010': '2.12', 'manylinux1': '2.5'}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
def _glibc_version(manylinux):
|
|
325
|
+
if not manylinux: return None
|
|
326
|
+
s = str(manylinux).strip().lower()
|
|
327
|
+
if s in ('off', 'linux', 'auto'): return None
|
|
328
|
+
if s in _MANYLINUX_ALIASES: return _MANYLINUX_ALIASES[s]
|
|
329
|
+
m = re.fullmatch(r'(?:manylinux_)?(\d+)[_.](\d+)', s)
|
|
330
|
+
return f'{m[1]}.{m[2]}' if m else None
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def _host_triple(env=None):
|
|
334
|
+
out = subprocess.run(['rustc', '-vV'], capture_output=True, text=True, check=True, env=env).stdout
|
|
335
|
+
return next(l.split(':', 1)[1].strip() for l in out.splitlines() if l.startswith('host:'))
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def _zig_target(target, manylinux, env=None):
|
|
339
|
+
t = target or (env or {}).get('CARGO_BUILD_TARGET')
|
|
340
|
+
glibc = _glibc_version(manylinux)
|
|
341
|
+
if not glibc: return t
|
|
342
|
+
if not t: t = _host_triple(env)
|
|
343
|
+
return f'{t}.{glibc}' if '-linux-gnu' in t and not re.search(r'\.\d+\.\d+$', t) else t
|
|
344
|
+
|
|
321
345
|
|
|
322
346
|
def build(
|
|
323
347
|
root, # The project directory, whose `tool.maturin` gives the defaults (expands `~`)
|
|
@@ -330,11 +354,16 @@ def build(
|
|
|
330
354
|
all_features=False, # Enable every feature? `tool.maturin`'s `all-features` also turns this on
|
|
331
355
|
no_default_features=False, # Leave out the default features? `tool.maturin`'s `no-default-features` also turns this on
|
|
332
356
|
for_maturin=False, # Use the macOS linker flags that maturin's own wheel build uses?
|
|
357
|
+
env=None, # Extra environment variables for Cargo
|
|
358
|
+
zig=False, # Build via `cargo zigbuild` for Linux glibc targeting?
|
|
359
|
+
manylinux=None, # Target glibc version for `zig`, e.g. `'2_31'` or `'manylinux_2_31'`
|
|
333
360
|
):
|
|
334
361
|
"Build with Cargo and return the compiler artifacts of the workspace's packages."
|
|
335
362
|
root = Path(root).expanduser()
|
|
336
363
|
cfg = settings(root)['maturin']
|
|
337
|
-
|
|
364
|
+
base_env = os.environ | (env or {})
|
|
365
|
+
if zig: target = _zig_target(target, manylinux, base_env)
|
|
366
|
+
cmd = ['zigbuild' if zig else 'build', '--manifest-path', str((root/'Cargo.toml').resolve()), '--message-format=json-diagnostic-short']
|
|
338
367
|
if library: cmd.append('--lib')
|
|
339
368
|
if binaries: cmd.append('--bins')
|
|
340
369
|
if profile := profile or cfg.get('profile'): cmd += ['--profile', profile]
|
|
@@ -342,8 +371,8 @@ def build(
|
|
|
342
371
|
if features := features or cfg.get('features'): cmd += ['--features', features if isinstance(features, str) else ','.join(features)]
|
|
343
372
|
for flag, active in [('all-features', all_features), ('no-default-features', no_default_features)]:
|
|
344
373
|
if active or cfg.get(flag): cmd.append('--' + flag)
|
|
345
|
-
extra,
|
|
346
|
-
cmd, env = _cargo_command(*cmd, *extra, env=env)
|
|
374
|
+
extra, maturin_env = _maturin_flags(target, base_env) if for_maturin else ([], None)
|
|
375
|
+
cmd, env = _cargo_command(*cmd, *extra, env=maturin_env or env)
|
|
347
376
|
result = subprocess.run(cmd, cwd=root, stdout=subprocess.PIPE, text=True, env=env)
|
|
348
377
|
if log := env.get('FASTWS_CARGO_LOG'):
|
|
349
378
|
with Path(log).expanduser().open('a') as capture: capture.write(result.stdout)
|
|
@@ -366,8 +395,8 @@ def replace(source, destination):
|
|
|
366
395
|
return destination
|
|
367
396
|
|
|
368
397
|
|
|
369
|
-
def develop(root, *, profile=None):
|
|
370
|
-
"Serialize this project's cooperating develop runs through build, artifact capture, installation, generator and wheel data. An omitted profile uses tool.fastws.dev-profile, or
|
|
398
|
+
def develop(root, *, profile=None, env=None):
|
|
399
|
+
"Serialize this project's cooperating develop runs through build, artifact capture, installation, generator and wheel data. An omitted profile uses tool.fastws.dev-profile, or release. Raw Cargo commands do not take this lock."
|
|
371
400
|
root = Path(root).expanduser()
|
|
372
401
|
with store.building(root) as started:
|
|
373
402
|
tool = settings(root)
|
|
@@ -375,7 +404,7 @@ def develop(root, *, profile=None):
|
|
|
375
404
|
bin_only = cfg.get('bindings') == 'bin'
|
|
376
405
|
if not bin_only and 'python-source' not in cfg: raise ConfigError(r'cargo develop requires tool.maturin.python-source')
|
|
377
406
|
binaries = bin_only or tool.get('fastws', {}).get('native-binaries', False)
|
|
378
|
-
artifacts = build(root, library=not bin_only, binaries=binaries, profile=profile or _dev_profile(root))
|
|
407
|
+
artifacts = build(root, library=not bin_only, binaries=binaries, profile=profile or _dev_profile(root), env=env)
|
|
379
408
|
env = Path(os.environ.get('VIRTUAL_ENV', sys.prefix))
|
|
380
409
|
scripts = env/('Scripts' if os.name == 'nt' else 'bin')
|
|
381
410
|
exes = [Path(m['executable']) for m in artifacts if binaries and m.get('executable')]
|
|
@@ -407,13 +436,14 @@ def develop(root, *, profile=None):
|
|
|
407
436
|
if f.is_file(): replace(f, env/f.relative_to(data))
|
|
408
437
|
|
|
409
438
|
|
|
410
|
-
def stage_binaries(root, profile=None, target=None, features=None, all_features=False, no_default_features=False
|
|
439
|
+
def stage_binaries(root, profile=None, target=None, features=None, all_features=False, no_default_features=False,
|
|
440
|
+
zig=False, manylinux=None):
|
|
411
441
|
"Stage Python-free Cargo binaries for a maturin wheel build."
|
|
412
442
|
root = Path(root).expanduser()
|
|
413
443
|
cfg = settings(root)['maturin']
|
|
414
444
|
if 'data' not in cfg: raise ConfigError(r'staging native binaries requires tool.maturin.data')
|
|
415
445
|
dest = root/cfg['data']/'scripts'
|
|
416
446
|
artifacts = build(root, library=False, binaries=True, profile=profile, target=target, features=features,
|
|
417
|
-
all_features=all_features, no_default_features=no_default_features, for_maturin=True)
|
|
447
|
+
all_features=all_features, no_default_features=no_default_features, for_maturin=True, zig=zig, manylinux=manylinux)
|
|
418
448
|
if dest.exists(): shutil.rmtree(dest)
|
|
419
449
|
return [replace(m['executable'], dest/Path(m['executable']).name) for m in artifacts if m.get('executable')]
|
|
@@ -705,7 +705,7 @@ def _cli_errors():
|
|
|
705
705
|
def cargo_develop(
|
|
706
706
|
command: str = 'develop', # Subcommand name supplied by Cargo
|
|
707
707
|
path: str = '.', # Rust/Python project directory
|
|
708
|
-
profile: str = None, # Cargo profile; default: tool.fastws.dev-profile, or
|
|
708
|
+
profile: str = None, # Cargo profile; default: tool.fastws.dev-profile, or release
|
|
709
709
|
):
|
|
710
710
|
r"Build and install a mixed Rust/Python project's extension and opted-in binaries."
|
|
711
711
|
from .cargo import develop
|
|
@@ -720,12 +720,14 @@ def cargo_stage(
|
|
|
720
720
|
features: str = '', # Space or comma separated Cargo features
|
|
721
721
|
all_features: bool = False, # Enable all Cargo features
|
|
722
722
|
no_default_features: bool = False, # Disable default Cargo features
|
|
723
|
+
zig: bool = False, # Build via `cargo zigbuild` for Linux glibc targeting
|
|
724
|
+
manylinux: str = '', # Target glibc version for `--zig`, e.g. `2_31` or `manylinux_2_31`
|
|
723
725
|
):
|
|
724
726
|
r"Stage Python-free native binaries for maturin wheel builds."
|
|
725
727
|
from .cargo import stage_binaries
|
|
726
728
|
with _cli_errors():
|
|
727
729
|
for dest in stage_binaries(Path(path).resolve(), profile or None, target or None, features,
|
|
728
|
-
all_features, no_default_features): print(f'Staged {dest}')
|
|
730
|
+
all_features, no_default_features, zig=zig, manylinux=manylinux or None): print(f'Staged {dest}')
|
|
729
731
|
|
|
730
732
|
def _newest(paths):
|
|
731
733
|
"Newest file mtime among `paths`, walking each directory as `_src_mtime` does"
|
|
@@ -1251,6 +1253,14 @@ def _js_dirs(root: Path, repos_file="repos.txt") -> list[Path]:
|
|
|
1251
1253
|
else: res.append(spec[1])
|
|
1252
1254
|
return list(dict.fromkeys(d.resolve() for d in res if ok(d) and d.resolve() not in superseded_wasm))
|
|
1253
1255
|
|
|
1256
|
+
_VP_AGE_EXCLUDES = (
|
|
1257
|
+
("vite-plus", ("vite-plus", "@voidzero-dev/vite-plus-*")),
|
|
1258
|
+
("vitest", ("vitest", "@vitest/*")),
|
|
1259
|
+
("oxlint", ("oxlint", "@oxlint/*")),
|
|
1260
|
+
("oxfmt", ("oxfmt", "@oxfmt/*")),
|
|
1261
|
+
("tsrs", ("tsrs", "@tsrs/*")),
|
|
1262
|
+
)
|
|
1263
|
+
|
|
1254
1264
|
def _sync_ws_pnpm_workspace(root: Path, members: list[Path], toolchain: dict[str, str] = None) -> tuple[list[str], list[str]]:
|
|
1255
1265
|
"Generate/update `pnpm-workspace.yaml`, applying Vite+ toolchain overrides and merging `pnpm-workspace.shared.yaml`; return `(added, removed)` packages."
|
|
1256
1266
|
path = root/"pnpm-workspace.yaml"
|
|
@@ -1275,6 +1285,10 @@ def _sync_ws_pnpm_workspace(root: Path, members: list[Path], toolchain: dict[str
|
|
|
1275
1285
|
else: ov.pop("vitest@*", None)
|
|
1276
1286
|
if ov: data["overrides"] = ov
|
|
1277
1287
|
if shared_data: _merge_shared(data, shared_data)
|
|
1288
|
+
if toolchain and data.get("minimumReleaseAge"):
|
|
1289
|
+
ex = [p for k, pats in _VP_AGE_EXCLUDES if toolchain.get(k) for p in pats]
|
|
1290
|
+
if toolchain.get("vite-plus-core") and "@voidzero-dev/vite-plus-*" not in ex: ex.append("@voidzero-dev/vite-plus-core")
|
|
1291
|
+
if ex: data["minimumReleaseAgeExclude"] = ex + [e for e in (data.get("minimumReleaseAgeExclude") or []) if e not in ex]
|
|
1278
1292
|
cur_after = list(data.get("packages") or [])
|
|
1279
1293
|
kept = [e for e in cur_after if any(c in e for c in "*?[") or not (root/e).resolve().is_relative_to(root.resolve())]
|
|
1280
1294
|
new = kept + [e for e in (_rel_ws_path(root, d) for d in members) if e not in kept]
|
|
@@ -1337,11 +1351,17 @@ def _vp_toolchain() -> dict[str, str]:
|
|
|
1337
1351
|
raw = subprocess.run(["vp", "toolchain", "--json", "-g"], capture_output=True, text=True, check=True).stdout
|
|
1338
1352
|
return {n["id"]: n["version"] for n in json.loads(raw).get("nodes", []) if "id" in n and "version" in n}
|
|
1339
1353
|
|
|
1340
|
-
def
|
|
1354
|
+
def _sync_cargo_env(repo: Path) -> dict[str, str] | None:
|
|
1355
|
+
"Disable Cargo incremental compilation for clean repos during sync so sccache can cache workspace crates."
|
|
1356
|
+
if "CARGO_INCREMENTAL" in os.environ: return None
|
|
1357
|
+
g = Git(repo)
|
|
1358
|
+
return {"CARGO_INCREMENTAL": "0"} if g.exists and g.status("--porcelain") == "" else None
|
|
1359
|
+
|
|
1360
|
+
def _build_wasm(repo: Path, env: dict = None):
|
|
1341
1361
|
"Run `cargo wasm` in `repo` through the workspace's configured Cargo."
|
|
1342
1362
|
from .cargo import _cargo_command
|
|
1343
|
-
cmd,
|
|
1344
|
-
subprocess.run(cmd, cwd=repo, env=
|
|
1363
|
+
cmd, cmd_env = _cargo_command("wasm", env=env)
|
|
1364
|
+
subprocess.run(cmd, cwd=repo, env=cmd_env, check=True)
|
|
1345
1365
|
|
|
1346
1366
|
def _run_quiet(cmd: list[str], cwd: Path):
|
|
1347
1367
|
"Run `cmd`, hiding routine output on success and printing captured output to stderr on failure."
|
|
@@ -1433,15 +1453,16 @@ async def ws_sync(
|
|
|
1433
1453
|
native = [d.resolve() for _,d in projects if _is_maturin_native(d)]
|
|
1434
1454
|
post_js = [d for d in native if _is_bin_with_js(d)]
|
|
1435
1455
|
pre_js = [d for d in native if d not in post_js]
|
|
1456
|
+
sync_develop = lambda d: develop(d, env=_sync_cargo_env(d))
|
|
1436
1457
|
if pre_js:
|
|
1437
|
-
with ThreadPoolExecutor(max_workers=build_workers) as ex: list(ex.map(
|
|
1458
|
+
with ThreadPoolExecutor(max_workers=build_workers) as ex: list(ex.map(sync_develop, pre_js))
|
|
1438
1459
|
if wasm_pkgs:
|
|
1439
|
-
with ThreadPoolExecutor(max_workers=build_workers) as ex: list(ex.map(_build_wasm, wasm_pkgs))
|
|
1460
|
+
with ThreadPoolExecutor(max_workers=build_workers) as ex: list(ex.map(lambda d: _build_wasm(d, env=_sync_cargo_env(d)), wasm_pkgs))
|
|
1440
1461
|
if up: _upgrade_stamp(root).touch()
|
|
1441
1462
|
if cargo_up: _upgrade_stamp(root, "fastws-cargo-upgraded").touch()
|
|
1442
1463
|
if js_members: _sync_js(root, build_workers)
|
|
1443
1464
|
if post_js:
|
|
1444
|
-
with ThreadPoolExecutor(max_workers=build_workers) as ex: list(ex.map(
|
|
1465
|
+
with ThreadPoolExecutor(max_workers=build_workers) as ex: list(ex.map(sync_develop, post_js))
|
|
1445
1466
|
|
|
1446
1467
|
@call_parse
|
|
1447
1468
|
async def ws_add(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastws-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.42
|
|
4
4
|
Summary: Fast workspace tools for multi-repo management
|
|
5
5
|
Author: Jeremy Howard
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -228,7 +228,7 @@ cargo develop --path /path/to/project
|
|
|
228
228
|
cargo develop --profile quick
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
-
Run from the project root, or give its directory with `--path`. The command reads `python-source`, `module-name`, `manifest-path`, `bindings` and features from `[tool.maturin]`. `[tool.fastws] dev-profile = "quick"` selects a project's default for both `cargo develop` and `fastws.cargo.run_tests`. Without that setting they use `
|
|
231
|
+
Run from the project root, or give its directory with `--path`. The command reads `python-source`, `module-name`, `manifest-path`, `bindings` and features from `[tool.maturin]`. `[tool.fastws] dev-profile = "quick"` selects a project's default for both `cargo develop` and `fastws.cargo.run_tests`. Without that setting they use `release`. An explicit `--profile NAME` overrides the project default. Mixed projects must produce a `cdylib` and set `python-source`; `bindings = "bin"` projects build and install their binary targets directly into the active venv. Define the selected profile in `Cargo.toml` and keep incremental compilation enabled for the local crate.
|
|
232
232
|
|
|
233
233
|
The workspace's `[tool.fastws] cargo = "/path/to/cargo"` optionally selects one explicit Cargo executable for fastws builds, checks, metadata and tests, including nextest's subordinate Cargo calls. A missing executable fails without falling back. With no selection, subprocess uses its normal PATH and working-directory rules. Upstream Cargo stays installed and usable; manifests, profiles, features and package selection are unchanged.
|
|
234
234
|
|
|
@@ -267,7 +267,7 @@ cargo stage --profile dist
|
|
|
267
267
|
maturin build --profile dist
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
-
Pass the same target and
|
|
270
|
+
Pass the same target, feature, and Linux glibc flags (`--zig --manylinux 2_31`, `--no-default-features`) to both commands when needed. Staging builds binaries only. On macOS it matches Maturin's linker flags through `build.rustflags` or existing `RUSTFLAGS`/`CARGO_ENCODED_RUSTFLAGS`. A macOS target with its own `rustflags` must include `-C link-arg=-undefined -C link-arg=dynamic_lookup` there. Shared crates are reused when the two builds resolve the same dependency features. Adding `--lib` to staging can select a different compilation profile under LTO.
|
|
271
271
|
|
|
272
272
|
### `cargo wait`
|
|
273
273
|
|
|
@@ -288,7 +288,7 @@ Where a root has `.config/nextest.toml`, preparation uses `cargo nextest list` t
|
|
|
288
288
|
|
|
289
289
|
`root` can also be a list of roots, which build one after another. Roots without nextest then run their binaries in turn. Each profile then runs at the same time in every root whose config defines it: tests in different roots share a phase, and no phase starts before the previous one ends. Suite names start with the root's directory name, and with several profiles also with the profile, as in `app timed: tests/speed.rs`. A failure ends the run after its profile unless `--no-fail-fast` is given.
|
|
290
290
|
|
|
291
|
-
The default profile is `[tool.fastws].dev-profile`, or `
|
|
291
|
+
The default profile is `[tool.fastws].dev-profile`, or `release` when unset. Explicit `--profile NAME`, `--profile=NAME`, `--release` and `-r` override it. Pass Cargo build/selection options positionally, and test filters and harness options in `test_args`. A failed binary stops the run unless `--no-fail-fast` is given. Results contain compiler diagnostics and each binary's outcomes and captured failures.
|
|
292
292
|
|
|
293
293
|
```python
|
|
294
294
|
from fastws.cargo import run_tests
|
|
@@ -359,13 +359,13 @@ Fastws discovers JavaScript packages directly under the workspace root, explicit
|
|
|
359
359
|
|
|
360
360
|
Each sync updates `packages` in the root `pnpm-workspace.yaml` (creating it with `linkWorkspacePackages: deep`, `preferWorkspacePackages: true`, and `minimumReleaseAge: 1440` by default) and maintains `private: true` in the root `package.json`. It preserves external paths, globs, and unrelated settings, and reports added and removed packages.
|
|
361
361
|
|
|
362
|
-
When JavaScript workspace members are present, `ws-sync` reads `vp toolchain --json -g
|
|
362
|
+
When JavaScript workspace members are present, `ws-sync` reads `vp toolchain --json -g`, writes `devDependencies["vite-plus"]` to `package.json`, sets matching `vite@*` and `vitest@*` entries under `overrides` in `pnpm-workspace.yaml`, and adds those toolchain packages to `minimumReleaseAgeExclude` when `minimumReleaseAge` is enabled. Optional tracked `pnpm-workspace.shared.yaml` and `package.json.shared` files are merged on top on every sync. Object-valued fields merge one level deep, shared values win conflicts, and arrays replace rather than concatenate. Unrelated local settings remain; removing a shared key does not delete its local value. Use these files to declare `packageManager`, `devEngines.runtime`, shared policies such as `allowBuilds`, or explicit Vite+ overrides.
|
|
363
363
|
|
|
364
364
|
Before `uv sync`, fastws regenerates `tool.uv.no-build-isolation-package` and `[tool.uv.config-settings-package]` (`metadata-only = "1"`) with the sorted package names of projects using `fastws.build_backend`, including external checkouts. These builds use the shared environment's `fastws-cli` and `maturin`, skip Rust compilation during editable installs inside the workspace, and keep metadata-only wheels separate from compiled editable wheels in uv's cache. Leave global build isolation enabled for other projects.
|
|
365
365
|
|
|
366
366
|
After `uv sync`, fastws writes `_fastws_pytest.pth` into the workspace venv's `site-packages` to default `PYTEST_DISABLE_PLUGIN_AUTOLOAD=1`, keeping pytest plugins installed for one repo from leaking into others. Repos enable the plugins they need via `-p` in `addopts` (override for a run with `PYTEST_DISABLE_PLUGIN_AUTOLOAD=""`).
|
|
367
367
|
|
|
368
|
-
After `uv sync`, fastws runs `cargo develop` in mixed Rust/Python projects and `bindings = "bin"` Rust CLI projects without a `package.json`, with up to one project per CPU building concurrently by default. Cargo skips unchanged compilation inputs. Projects using `fastws.build_backend` should keep only packaging inputs in `tool.uv.cache-keys`; Rust source changes are handled by Cargo.
|
|
368
|
+
After `uv sync`, fastws runs `cargo develop` in mixed Rust/Python projects and `bindings = "bin"` Rust CLI projects without a `package.json`, with up to one project per CPU building concurrently by default. For clean Git checkouts, sync sets `CARGO_INCREMENTAL=0` on `cargo develop` and `cargo wasm` (unless `CARGO_INCREMENTAL` is already set) so `sccache` caches workspace crates; dirty checkouts keep each repo's configured incremental setting. Cargo skips unchanged compilation inputs. Projects using `fastws.build_backend` should keep only packaging inputs in `tool.uv.cache-keys`; Rust source changes are handled by Cargo.
|
|
369
369
|
|
|
370
370
|
Strictly after `cargo develop` finishes, fastws runs `cargo wasm` in parallel for every repo declaring `[tool.fastws].wasm-package`, so any `post-develop-module` generators have already produced their assets and each generated `wasm/pkg/package.json` exists before JavaScript installation.
|
|
371
371
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import json, shutil, subprocess, tarfile, pytest, fastws.core as core
|
|
2
|
-
from fastws.cargo import build, check, run_tests, Suite
|
|
2
|
+
from fastws.cargo import build, check, run_tests, Suite, _zig_target
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
|
|
5
5
|
|
|
@@ -275,3 +275,12 @@ def test_captured_test_output():
|
|
|
275
275
|
lines.append(f'test result: {"FAILED" if failed else "ok"}. 1 passed; {int(failed)} failed; 0 ignored')
|
|
276
276
|
s = Suite.read('unit', lines, int(failed))
|
|
277
277
|
assert s.failures == ({'fails': 'broken'} if failed else {}) and 'printed' in s.output
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
def test_zig_target():
|
|
281
|
+
t = 'x86_64-unknown-linux-gnu'
|
|
282
|
+
assert _zig_target(t, '2_31') == _zig_target(t, '2.31') == _zig_target(t, 'manylinux_2_31') == f'{t}.2.31'
|
|
283
|
+
assert _zig_target(t, 'manylinux2014') == f'{t}.2.17'
|
|
284
|
+
assert _zig_target(f'{t}.2.17', '2_31') == f'{t}.2.17'
|
|
285
|
+
assert _zig_target('aarch64-apple-darwin', '2_31') == 'aarch64-apple-darwin'
|
|
286
|
+
assert _zig_target(t, 'off') == _zig_target(t, 'auto') == _zig_target(t, 'musllinux_1_2') == t
|
|
@@ -212,9 +212,10 @@ def test_sync_ws_pnpm_workspace_and_package_json(tmp_path):
|
|
|
212
212
|
core._sync_ws_pnpm_workspace(tmp_path, [tmp_path/'app'], toolchain=tc)
|
|
213
213
|
assert core._yaml_load(ws)['overrides'] == {'keep': '1.0.0', 'vite@*': 'npm:@voidzero-dev/vite-plus-core@8.4.0', 'vitest@*': '5.2.0'}
|
|
214
214
|
|
|
215
|
-
ws_shared.write_text('allowBuilds:\n esbuild: true\noverrides:\n vite: npm:@voidzero-dev/vite-plus-core@8.3.8000\n vitest: 5.1.0\n')
|
|
215
|
+
ws_shared.write_text('allowBuilds:\n esbuild: true\nminimumReleaseAgeExclude:\n - custom-pkg\noverrides:\n vite: npm:@voidzero-dev/vite-plus-core@8.3.8000\n vitest: 5.1.0\n')
|
|
216
216
|
core._sync_ws_pnpm_workspace(tmp_path, [tmp_path/'app'], toolchain=tc)
|
|
217
217
|
assert core._yaml_load(ws)['overrides'] == dict(keep='1.0.0', vite='npm:@voidzero-dev/vite-plus-core@8.3.8000', vitest='5.1.0')
|
|
218
|
+
assert core._yaml_load(ws)['minimumReleaseAgeExclude'] == ['vite-plus', '@voidzero-dev/vite-plus-*', 'vitest', '@vitest/*', 'custom-pkg']
|
|
218
219
|
|
|
219
220
|
pkg, pkg_shared = tmp_path/'package.json', tmp_path/'package.json.shared'
|
|
220
221
|
pkg.write_text(json.dumps(dict(name='local', workspaces=['stale'], devDependencies={'keep': '1'})))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|