Skip to content

Commit f3bd246

Browse files
OhYeeSodawyx
andcommitted
first commit
Change-Id: I48c37007ae6da33fee6b2ff991836072d932b660 Co-authored-by: Sodawyx <jingsu.wyx@alibaba-inc.com>
0 parents  commit f3bd246

File tree

181 files changed

+48041
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+48041
-0
lines changed

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release and Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.10'
18+
- name: Extract version
19+
run: echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
20+
- name: Update pyproject.toml
21+
run: sed -i "s/version = \".*\"/version = \"${VERSION}\"/" pyproject.toml
22+
- name: Update __version__ in __init__.py
23+
run: |
24+
if grep -q "__version__" agentrun/__init__.py; then
25+
sed -i "s/__version__ = \".*\"/__version__ = \"${VERSION}\"/" agentrun/__init__.py
26+
else
27+
sed -i '1a __version__ = \"${VERSION}\"' agentrun/__init__.py
28+
fi
29+
- name: Commit changes
30+
run: |
31+
git config --local user.email "action@github.com"
32+
git config --local user.name "GitHub Action"
33+
git add pyproject.toml agentrun/__init__.py
34+
git commit -m "Update version to ${VERSION}" || echo "No changes to commit"
35+
git push
36+
- name: Build package
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install build
40+
python -m build
41+
- name: Publish to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
.coverage
2+
.venv
3+
.pytest_cache
4+
5+
# Python
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
*.so
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# Virtual environments
29+
.env
30+
venv/
31+
ENV/
32+
env.bak/
33+
venv.bak/
34+
35+
# IDEs
36+
.vscode/
37+
.idea/
38+
39+
# OS
40+
.DS_Store
41+
Thumbs.db
42+
43+
# Logs and temporary files
44+
*.log
45+
*.tmp
46+
*.swp
47+
*.swo
48+
*~
49+
50+
# Coverage reports
51+
htmlcov/
52+
.coverage.*
53+
coverage.xml
54+
*.cover
55+
.hypothesis/
56+
57+
# Jupyter Notebook
58+
.ipynb_checkpoints
59+
60+
# pyenv
61+
.python-version
62+
63+
# pipenv
64+
Pipfile.lock
65+
66+
# PEP 582
67+
__pypackages__/
68+
69+
# Celery stuff
70+
celerybeat-schedule
71+
celerybeat.pid
72+
73+
# SageMath parsed files
74+
*.sage.py
75+
76+
# Environments
77+
.env.local
78+
.env
79+
80+
# Spyder project settings
81+
.spyderproject
82+
.spyproject
83+
84+
# Rope project settings
85+
.ropeproject
86+
87+
# mkdocs documentation
88+
/site
89+
90+
# mypy
91+
.mypy_cache/
92+
.dmypy.json
93+
dmypy.json
94+
95+
# Pyre type checker
96+
.pyre/
97+
98+
# Ruff cache
99+
.ruff_cache/
100+
101+
.mypy_cache
102+
.pytest_cache
103+
.env
104+
105+
uv.lock

0 commit comments

Comments
 (0)