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
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish to PyPI

on:
push:
tags:
- "v*"

jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write # OIDC for PyPI trusted publishing
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Build sdist and wheel
run: |
python -m pip install --upgrade pip build
python -m build

- name: Verify version matches tag
run: |
TAG_VERSION="${GITHUB_REF_NAME#v}"
PKG_VERSION=$(python -c "import re,pathlib; print(re.search(r'__version__\s*=\s*\"([^\"]+)\"', pathlib.Path('src/canopy/__init__.py').read_text()).group(1))")
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
echo "::error::Tag v$TAG_VERSION does not match __version__ ($PKG_VERSION)"
exit 1
fi

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
20 changes: 18 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,34 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "canopy"
name = "canopy-cli"
dynamic = ["version"]
description = "Workspace-first development orchestrator"
description = "Workspace-first development orchestrator for AI coding agents"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Version Control :: Git",
]

dependencies = [
"tomli>=2.0; python_version < '3.11'",
"mcp>=1.0",
"rich>=13.0",
]

[project.urls]
Homepage = "https://github.com/ashmitb95/canopy"
Source = "https://github.com/ashmitb95/canopy"
Issues = "https://github.com/ashmitb95/canopy/issues"

[project.optional-dependencies]
graph = [
"networkx>=3.0",
Expand Down
Loading