Skip to content

Commit 8ad9ae9

Browse files
Add GitHub Release workflow for PeasyAI distribution
Add a GitHub Actions workflow that builds and attaches PeasyAI wheels to GitHub Releases on peasyai-v* tags, so developers can install via pip without cloning the full P repo. Also adds the LICENSE file referenced by pyproject.toml and updates the README install instructions. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent fcc6b32 commit 8ad9ae9

File tree

3 files changed

+106
-3
lines changed

3 files changed

+106
-3
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: PeasyAI Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "peasyai-v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-release:
13+
name: Build wheel & attach to GitHub Release
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: Src/PeasyAI
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: "3.12"
27+
28+
- name: Install build tools
29+
run: python -m pip install --upgrade pip build
30+
31+
- name: Extract version from tag
32+
id: version
33+
run: |
34+
TAG="${GITHUB_REF#refs/tags/peasyai-v}"
35+
echo "version=$TAG" >> "$GITHUB_OUTPUT"
36+
37+
- name: Set version in pyproject.toml
38+
run: |
39+
sed -i "s/^version = .*/version = \"${{ steps.version.outputs.version }}\"/" pyproject.toml
40+
41+
- name: Build wheel and sdist
42+
run: python -m build
43+
44+
- name: Run contract tests
45+
run: |
46+
python -m pip install -r requirements.txt
47+
make test-contracts
48+
49+
- name: Create GitHub Release
50+
uses: softprops/action-gh-release@v2
51+
with:
52+
name: "PeasyAI v${{ steps.version.outputs.version }}"
53+
body: |
54+
## PeasyAI v${{ steps.version.outputs.version }}
55+
56+
### Install
57+
58+
```bash
59+
pip install https://github.com/${{ github.repository }}/releases/download/peasyai-v${{ steps.version.outputs.version }}/peasyai_mcp-${{ steps.version.outputs.version }}-py3-none-any.whl
60+
```
61+
62+
Then configure:
63+
64+
```bash
65+
peasyai-mcp init # creates ~/.peasyai/settings.json
66+
peasyai-mcp config # verify setup
67+
```
68+
69+
See the [README](https://github.com/${{ github.repository }}/blob/main/Src/PeasyAI/README.md) for full setup instructions.
70+
files: |
71+
Src/PeasyAI/dist/*.whl
72+
Src/PeasyAI/dist/*.tar.gz
73+
fail_on_unmatched_files: true

Src/PeasyAI/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License
2+
3+
Copyright (c) 2015 P Developers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Src/PeasyAI/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,25 @@ PeasyAI exposes an MCP (Model Context Protocol) server that works with **Cursor*
2727

2828
### Install PeasyAI
2929

30+
Install the latest release directly (no git clone required):
31+
32+
```bash
33+
pip install https://github.com/p-org/P/releases/latest/download/peasyai_mcp-0.1.0-py3-none-any.whl
34+
```
35+
36+
> Check the [Releases page](https://github.com/p-org/P/releases) for the latest version URL.
37+
38+
<details>
39+
<summary><strong>Alternative: install from source</strong></summary>
40+
3041
```bash
31-
# Clone the repository
3242
git clone https://github.com/p-org/P.git
3343
cd P/Src/PeasyAI
34-
35-
# Install the package
3644
pip install .
3745
```
3846

47+
</details>
48+
3949
### Create your configuration
4050

4151
```bash

0 commit comments

Comments
 (0)