Skip to content

Commit 3bacf05

Browse files
committed
Update pyo3 and pyo3-async-runtimes
1 parent 1c8eca8 commit 3bacf05

File tree

5 files changed

+38
-32
lines changed

5 files changed

+38
-32
lines changed

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ http-rewriter = { git = "https://github.com/platformatic/http-rewriter" }
3333
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
3434
napi = { version = "3", default-features = false, features = ["napi4", "tokio_rt", "async"], optional = true }
3535
napi-derive = { version = "3", optional = true }
36-
pyo3 = { version = "0.26.0", features = ["experimental-async"] }
37-
pyo3-async-runtimes = { version = "0.26.0", features = ["tokio-runtime"] }
36+
pyo3 = { version = "0.27.2", features = ["experimental-async"] }
37+
pyo3-async-runtimes = { version = "0.27.0", features = ["tokio-runtime"] }
3838
thiserror = "2.0.12"
3939
tokio = { version = "1.45.1", features = ["full"] }
4040
libc = "0.2"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"version": "napi version"
4141
},
4242
"optionalDependencies": {
43-
"@platformatic/python-node-darwin-arm64": "^0.1.4",
44-
"@platformatic/python-node-linux-x64-gnu": "^0.1.4"
43+
"@platformatic/python-node-darwin-arm64": "^2.0.0",
44+
"@platformatic/python-node-linux-x64-gnu": "^2.0.0"
4545
}
4646
}

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/update-version.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ import { readFile, writeFile } from 'fs/promises'
33
const version = process.argv[2].replace(/^v/, '')
44
const packageJson = JSON.parse(await readFile('package.json', 'utf8'))
55
packageJson.version = version
6+
// Update platform-specific deps to match release version
7+
for (const dep of Object.keys(packageJson.optionalDependencies)) {
8+
if (dep.startsWith(packageJson.name)) {
9+
packageJson.optionalDependencies[dep] = `^${version}`
10+
}
11+
}
612
await writeFile('package.json', JSON.stringify(packageJson, null, 2))

0 commit comments

Comments
 (0)