@devries-cameron20 / composio-1 / commits / eeaac651d
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore(py): document pending releases (#3583)

This PR: - documents the pending Python `0.14.0` and `0.15.0` releases in `python/CHANGELOG.md` - aligns `python/composio/__version__.py` with `python/pyproject.toml` at `0.15.0` - adds a release guard so Python package/provider versions, runtime version, and changelog entries cannot drift silently - leaves Python release tags and PyPI publishing untouched; `py@0.14.0` should still be published before `py@0.15.0`

Alberto Schiabel committed Jun 18, 2026 at 12:33 UTC eeaac651d87e6b1c4c02130d712e6ed3ad54eadf
3 files changed +108 -3
python/CHANGELOG.md
+18 -1
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
8 > Versions between `0.8.11` and `0.13.0` were released without CHANGELOG entries. See the [Git commit log](https://github.com/ComposioHQ/composio/commits/next/python) for changes in that window.
9
10 +## [0.15.0] - 2026-06-16
11 +
12 +### Fixed
13 +- Forwarded `user_id` from `triggers.create(..., user_id=...)` into the trigger upsert request via `extra_body`, so 2FA-enabled trigger projects can verify the pinned connected account belongs to the caller.
14 +
15 +### Changed
16 +- Bumped the Python SDK and provider packages from `0.14.0` to `0.15.0`.
17 +
18 +## [0.14.0] - 2026-06-05
19 +
20 +### Removed
21 +- Removed the legacy `composio.tools.custom_tool` registry path, including `core.models.custom_tools`, `ExecuteRequestFn`, the old fallback execution wiring, the old security tests, and the legacy custom-tools example.
22 +
23 +### Changed
24 +- Kept custom tools on the 2026 tool-router surface: `composio.experimental.tool()`, `composio.experimental.Toolkit`, inline execution, preload/attach/use flows, and `session.custom_tools()`.
25 +- Bumped the Python SDK and provider packages from `0.13.1` to `0.14.0`.
26 +
27 ## [0.13.1] - 2026-05-13
28
29 ### Added
@@ -93,4 +110,4 @@ For detailed commit history and technical changes, see the [Git commit log](http
110 For questions, issues, or contributions, please visit:
111 - [GitHub Repository](https://github.com/composio/composio)
112 - [Documentation](https://docs.composio.dev)
96 -- [Community Discord](https://discord.gg/composio)
\ No newline at end of file
113 +- [Community Discord](https://discord.gg/composio)
python/composio/__version__.py
+1 -1
@@ -1 +1 @@
1 -__version__ = "1.0.0-rc2"
1 +__version__ = "0.15.0"
test/release-workflow.test.ts
+89 -1
@@ -1,5 +1,14 @@
1 #!/usr/bin/env node
2 -import { chmodSync, mkdirSync, mkdtempSync, rmSync, writeFileSync, readFileSync } from 'node:fs';
2 +import {
3 + chmodSync,
4 + existsSync,
5 + mkdirSync,
6 + mkdtempSync,
7 + readdirSync,
8 + rmSync,
9 + writeFileSync,
10 + readFileSync,
11 +} from 'node:fs';
12 import { tmpdir } from 'node:os';
13 import { join } from 'node:path';
14 import { spawnSync } from 'node:child_process';
@@ -12,6 +21,12 @@ const tsReleaseWorkflow = readFileSync(
21 new URL('../.github/workflows/ts.release.yml', import.meta.url),
22 'utf8'
23 );
24 +const pythonPyproject = readFileSync(new URL('../python/pyproject.toml', import.meta.url), 'utf8');
25 +const pythonChangelog = readFileSync(new URL('../python/CHANGELOG.md', import.meta.url), 'utf8');
26 +const pythonRuntimeVersionModule = readFileSync(
27 + new URL('../python/composio/__version__.py', import.meta.url),
28 + 'utf8'
29 +);
30 const changesetBinPath = new URL('../node_modules/.bin/changeset', import.meta.url).pathname;
31 const releaseScriptUrl = new URL('../ts/scripts/changeset-release.sh', import.meta.url);
32 const releaseScriptPath = releaseScriptUrl.pathname;
@@ -39,6 +54,22 @@ const verifyAssetsScript = readFileSync(
54 'utf8'
55 );
56
57 +function requireMatch(text, pattern, label) {
58 + const match = text.match(pattern);
59 + if (!match?.[1]) {
60 + throw new Error(`Could not read ${label}`);
61 + }
62 + return match[1];
63 +}
64 +
65 +function readPyprojectVersion(text, label) {
66 + return requireMatch(text, /^\s*version\s*=\s*"([^"]+)"\s*$/m, label);
67 +}
68 +
69 +function readChangelogVersions(text) {
70 + return [...text.matchAll(/^## \[([^\]]+)\]/gm)].map(match => match[1]);
71 +}
72 +
73 if (!tsReleaseWorkflow.includes('publish: pnpm changeset:release')) {
74 throw new Error('ts.release.yml must use the repository-controlled changeset:release script');
75 }
@@ -60,6 +91,63 @@ if (
91 );
92 }
93
94 +// --- Python release metadata: package version, runtime version, and changelog must agree ---
95 +
96 +{
97 + const pythonVersion = readPyprojectVersion(pythonPyproject, 'python/pyproject.toml version');
98 + const runtimeVersion = requireMatch(
99 + pythonRuntimeVersionModule,
100 + /^\s*__version__\s*=\s*"([^"]+)"\s*$/m,
101 + 'python/composio/__version__.py version'
102 + );
103 +
104 + if (runtimeVersion !== pythonVersion) {
105 + throw new Error(
106 + `python/composio/__version__.py must match python/pyproject.toml (${runtimeVersion} !== ${pythonVersion})`
107 + );
108 + }
109 +
110 + const changelogVersions = readChangelogVersions(pythonChangelog);
111 + if (changelogVersions[0] !== pythonVersion) {
112 + throw new Error(
113 + `python/CHANGELOG.md must start with the current Python package version (${changelogVersions[0] ?? 'none'} !== ${pythonVersion})`
114 + );
115 + }
116 +
117 + const providerDir = new URL('../python/providers/', import.meta.url);
118 + for (const entry of readdirSync(providerDir, { withFileTypes: true })) {
119 + if (!entry.isDirectory()) continue;
120 +
121 + const pyprojectPath = new URL(
122 + `../python/providers/${entry.name}/pyproject.toml`,
123 + import.meta.url
124 + );
125 + const setupPath = new URL(`../python/providers/${entry.name}/setup.py`, import.meta.url);
126 + if (!existsSync(pyprojectPath) || !existsSync(setupPath)) continue;
127 +
128 + const providerPyprojectVersion = readPyprojectVersion(
129 + readFileSync(pyprojectPath, 'utf8'),
130 + `python/providers/${entry.name}/pyproject.toml version`
131 + );
132 + const providerSetupVersion = requireMatch(
133 + readFileSync(setupPath, 'utf8'),
134 + /version\s*=\s*"([^"]+)"/,
135 + `python/providers/${entry.name}/setup.py version`
136 + );
137 +
138 + if (providerPyprojectVersion !== pythonVersion) {
139 + throw new Error(
140 + `python/providers/${entry.name}/pyproject.toml must match python/pyproject.toml (${providerPyprojectVersion} !== ${pythonVersion})`
141 + );
142 + }
143 + if (providerSetupVersion !== pythonVersion) {
144 + throw new Error(
145 + `python/providers/${entry.name}/setup.py must match python/pyproject.toml (${providerSetupVersion} !== ${pythonVersion})`
146 + );
147 + }
148 + }
149 +}
150 +
151 if (!releaseScript.includes('pnpm changeset publish')) {
152 throw new Error('release script must still publish non-CLI changeset packages');
153 }