Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main() {
const version = getVersionFromArgs();
await bumpPackageVersions(version);
await updateRustClientVersion(version);
await updatePythonClientVersion(version);
// await updatePythonClientVersion(version);

// IMPORTANT: Do this after bumping the version
// Check & build
Expand Down Expand Up @@ -79,23 +79,23 @@ async function updateRustClientVersion(version: string) {
}
}

async function updatePythonClientVersion(version: string) {
console.log(chalk.blue(`Updating Python client version to ${version}...`));
const pyprojectTomlPath = "clients/python/pyproject.toml";
const pyCargoTomlPath = "clients/python/Cargo.toml";

try {
// Replace version in pyproject.toml and Cargo.toml
await $`sed -i.bak -e 's/^version = ".*"/version = "${version}"/' ${pyprojectTomlPath}`;
await $`sed -i.bak -e 's/^version = ".*"/version = "${version}"/' ${pyCargoTomlPath}`;
await $`rm ${pyprojectTomlPath}.bak`;
await $`rm ${pyCargoTomlPath}.bak`;
console.log(chalk.green("✅ Updated Python client version"));
} catch (err) {
console.error(chalk.red("❌ Failed to update Python client version"), err);
process.exit(1);
}
}
// async function updatePythonClientVersion(version: string) {
// console.log(chalk.blue(`Updating Python client version to ${version}...`));
// const pyprojectTomlPath = "clients/python/pyproject.toml";
// const pyCargoTomlPath = "clients/python/Cargo.toml";

// try {
// // Replace version in pyproject.toml and Cargo.toml
// await $`sed -i.bak -e 's/^version = ".*"/version = "${version}"/' ${pyprojectTomlPath}`;
// await $`sed -i.bak -e 's/^version = ".*"/version = "${version}"/' ${pyCargoTomlPath}`;
// await $`rm ${pyprojectTomlPath}.bak`;
// await $`rm ${pyCargoTomlPath}.bak`;
// console.log(chalk.green("✅ Updated Python client version"));
// } catch (err) {
// console.error(chalk.red("❌ Failed to update Python client version"), err);
// process.exit(1);
// }
// }

async function runRustCheck() {
console.log(chalk.blue("Running cargo check for Rust client..."));
Expand Down
Loading