Skip to content

Commit 825c450

Browse files
committed
update build workflow
Signed-off-by: Eric <[email protected]>
1 parent baff480 commit 825c450

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: Upload Python Package
1111
on:
1212
push:
1313
branches: [ "main" ]
14-
paths: ['pyproject.toml', 'pyagentmesh/VERSION']
14+
paths: ['pyproject.toml', 'pyagentmesh/VERSION', 'agenticmesh/VERSION']
1515

1616
jobs:
1717
deploy:
@@ -38,19 +38,27 @@ jobs:
3838
with:
3939
python-version: '3.x'
4040

41-
- name: Install dependencies
41+
- name: Install dependencies and build for pyagentmesh
4242
run: |
4343
python -m pip install --upgrade pip twine
4444
pip install build
45-
46-
- name: Build package
47-
run: |
4845
python -m build --sdist --wheel --outdir dist/ .
4946
5047
- name: Publish distribution to PyPI
5148
uses: pypa/gh-action-pypi-publish@release/v1
5249
with:
5350
user: __token__
5451
password: ${{ secrets.PYPI_API_TOKEN }}
55-
56-
52+
53+
- name: Install dependencies and build for agenticmesh
54+
run: |
55+
sed -i 's/name = "pyagentmesh"/name = "agenticmesh"/' pyproject.toml
56+
sed -i 's/pyagentmesh/agenticmesh/' setup.py
57+
python -m build --sdist --wheel --outdir dist/ .
58+
59+
- name: Publish distribution to PyPI
60+
uses: pypa/gh-action-pypi-publish@release/v1
61+
with:
62+
user: __token__
63+
password: ${{ secrets.PYPI_API_TOKEN }}
64+

pyagentmesh/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyagentmesh"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
description = "Orchestration Framework for Multi-Agent and Micro-Agent"
55
authors = ["eric-epsilla <[email protected]>"]
66
readme = "README.md"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="pyagentmesh",
8-
version=open("./pyagentmesh/VERSION").read().strip(),
8+
version=open("pyproject.toml").readlines()[2].split('"')[-2],
99
keywords="epsilla",
1010
author="Epsilla Team",
1111
author_email="[email protected]",

0 commit comments

Comments
 (0)