Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 14 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,29 @@ name: Publish to PyPI
on:
push:
tags:
- "v*"
- "v*.*.*"

permissions:
contents: read
id-token: write
id-token: write # for OIDC trusted publishing

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v6
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Install hatchling
run: pip install hatchling
- name: Install build
run: pip install build

- name: Build package
run: python -m hatchling build
- name: Build distributions
run: python -m build

- name: Upload dist artifact
uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
Expand All @@ -36,12 +34,12 @@ jobs:
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- name: Download dist artifact
uses: actions/download-artifact@v8
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@release/v1
25 changes: 25 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Drafter

on:
push:
tags:
- "v*.*.*"

jobs:
draft-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--title "cmcp ${{ github.ref_name }}" \
--generate-notes \
--draft
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ version = "0.1.0"
description = "Hardware-attested MCP gateway — TEE-enforced policy and TRACE Claim generation"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "AgentTrust Contributors", email = "oss@agentrust.io" },
]
keywords = ["mcp", "tee", "attestation", "security", "ai-agents", "cedar"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
Expand Down Expand Up @@ -48,6 +52,12 @@ dev = [
[project.scripts]
cmcp = "cmcp_gateway.cli:main"

[project.urls]
Homepage = "https://github.com/agentrust-io/cmcp"
Repository = "https://github.com/agentrust-io/cmcp"
Documentation = "https://github.com/agentrust-io/cmcp#readme"
"Bug Tracker" = "https://github.com/agentrust-io/cmcp/issues"

[tool.hatch.build.targets.wheel]
packages = ["src/cmcp_gateway", "src/cmcp_verify"]

Expand Down
Loading