Skip to main content
Glama
publish-python-sdk.yml1.24 kB
name: Publish Python SDK to PyPI on: workflow_dispatch: inputs: version: description: "Version to publish (e.g., 1.0.0)" required: true type: string jobs: build-and-publish: runs-on: ubuntu-latest defaults: run: working-directory: generated-sdks/python steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.13" cache: "pip" - name: Install dependencies run: | python -m pip install --upgrade pip pip install build setuptools wheel twine - name: Update version in setup.py run: | sed -i "s/VERSION = ['\"].*['\"]/VERSION = '${{ github.event.inputs.version }}'/g" setup.py - name: Update version in pyproject.toml run: | sed -i "s/version = ['\"].*['\"]/version = '${{ github.event.inputs.version }}'/g" pyproject.toml - name: Build package run: python -m build - name: Publish to PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: twine upload dist/*

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server