@dbx-tools/projen 0.6.144 → 0.6.146

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
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@clack/prompts": "^1.7.0",
29
- "@dbx-tools/core": "0.6.144",
30
- "@dbx-tools/path": "0.6.144",
31
- "@dbx-tools/shared-core": "0.6.144",
29
+ "@dbx-tools/core": "0.6.146",
30
+ "@dbx-tools/path": "0.6.146",
31
+ "@dbx-tools/shared-core": "0.6.146",
32
32
  "commander": "^15.0.0",
33
33
  "concurrently": "^10.0.3",
34
34
  "constructs": "^10.6.0",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "main": "index.ts",
50
50
  "license": "Apache-2.0",
51
- "version": "0.6.144",
51
+ "version": "0.6.146",
52
52
  "types": "index.ts",
53
53
  "type": "module",
54
54
  "exports": {
package/src/project-rs.ts CHANGED
@@ -509,6 +509,11 @@ export class DBXToolsRustWorkspace {
509
509
  uses: "dtolnay/rust-toolchain@stable",
510
510
  with: { targets: "${{ matrix.target.cargo }}" },
511
511
  },
512
+ {
513
+ name: "Install Linux native dependencies",
514
+ if: "${{ matrix.target.os == 'linux' }}",
515
+ run: "sudo apt-get update && sudo apt-get install --yes libdbus-1-dev pkg-config",
516
+ },
512
517
  { name: "Install", run: "bun install" },
513
518
  {
514
519
  name: "Build thin native packages",
@@ -188,7 +188,16 @@ function buildAndPublish(binding: RustBindingMapping, version: string): void {
188
188
  if (includePython) {
189
189
  const wheels = artifacts(join(output, "python"), ".whl");
190
190
  if (wheels.length === 0) throw new Error(`No wheel produced for ${binding.crate}`);
191
- for (const wheel of wheels) run("uv", ["publish", "--publish-url", pypiPublishUrl!, wheel]);
191
+ run("uvx", [
192
+ "--from",
193
+ "devpi-client",
194
+ "devpi",
195
+ "upload",
196
+ "--index",
197
+ pypiPublishUrl!,
198
+ "--from-dir",
199
+ join(output, "python"),
200
+ ]);
192
201
  }
193
202
  }
194
203
 
package/tasks/uniffi.ts CHANGED
@@ -65,7 +65,13 @@ const replaceGenerated = (source: string, destination: string): void => {
65
65
  mkdirSync(dirname(destination), { recursive: true });
66
66
  makeWritable(destination);
67
67
  rmSync(destination, { force: true });
68
- renameSync(source, destination);
68
+ try {
69
+ renameSync(source, destination);
70
+ } catch (error) {
71
+ if (!(error instanceof Error) || !("code" in error) || error.code !== "EXDEV") throw error;
72
+ cpSync(source, destination);
73
+ rmSync(source, { force: true });
74
+ }
69
75
  };
70
76
 
71
77
  const stampGeneratedPython = (file: string): void => {