Files
Alberto Schiabel 711e609a71 chore(py): prepare 2.0.0b0 core-only beta (#4278)
This PR:

- prepares `composio==2.0.0b0` with `composio-client==2.0.0rc6`
- keeps every Python provider package on its stable `0.x` release train
- adds a core-only build target so Python prereleases publish no
provider artifacts
- preserves the existing SDK-and-provider build path for stable Python
releases
- updates the release guard and changelog for independently versioned
SDK prereleases

Verification:

- `uv lock --check`
- `pnpm test:release-workflow`
- `go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.10
.github/workflows/py.release.yml`
- `make build-core` and `twine check --strict dist/*`
- installed the built wheel with all 12 published provider packages at
`0.21.0`; `uv pip check` and all provider imports passed

After merge, pushing the immutable `py@2.0.0b0` tag will publish only
the `composio` wheel and source distribution.
2026-08-31 14:58:42 +02:00

87 lines
1.9 KiB
Makefile

.PHONY: clean-build sync provider create-provider env fmt chk snt tst type_inference dead-code bump build build-core format check sanity test
PROVIDER_DIRS := $(patsubst %/,%,$(sort $(dir $(wildcard providers/*/pyproject.toml))))
clean-build:
@rm -rf dist/ build/
@set -e; for provider in $(PROVIDER_DIRS); do\
rm -rf build $$provider/dist $$provider/build;\
done
sync:
@uv sync
@uv pip install -e .
provider:
@set -e; for provider in $(PROVIDER_DIRS); do\
uv pip install $$provider;\
done
create-provider:
@if [ -z "$(name)" ]; then\
echo "Please provide a provider name: make create-provider name=<provider-name> [agentic=true] [output=<directory>]";\
exit 1;\
fi
@ARGS="$(name)";\
if [ "$(agentic)" = "true" ]; then\
ARGS="$$ARGS --agentic";\
fi;\
if [ ! -z "$(output)" ]; then\
ARGS="$$ARGS --output-dir $(output)";\
fi;\
bash scripts/create-provider.sh $$ARGS
env:
@echo "* creating new environment"
@if [ -z "$$VIRTUAL_ENV" ];\
then\
uv venv --seed --prompt composio --python 3.12;\
uv sync;\
uv sync --dev;\
make provider;\
uv pip install -e .;\
echo "* enter virtual environment with all development dependencies now";\
else\
uv sync;\
uv pip install -e .;\
echo "* already in a virtual environment (exit first ('deactivate') to create a new environment)";\
fi
@echo "* run 'source .venv/bin/activate' to enter the development environment."
fmt:
@nox -s fmt
chk:
@nox -s chk
dead-code:
@nox -s dead_code
snt:
@nox -s snt
tst:
@nox -s tst
type_inference:
@nox -s type_inference
# Friendly aliases for the short session names above (e.g. `make test` == `make tst`).
format: fmt
check: chk
sanity: snt
test: tst
bump: clean-build
@uv run python scripts/bump.py
build-core: clean-build
@./.venv/bin/python -m build
build: build-core
@set -e; for provider in $(PROVIDER_DIRS); do\
./.venv/bin/python -m build $$provider;\
cp $$provider/dist/* dist/;\
done