Skip to content

Commit

Permalink
Merge pull request #132 from Silentharry94/v0.2.1
Browse files Browse the repository at this point in the history
add workflow config
  • Loading branch information
panregedit authored Dec 20, 2024
2 parents 13a598e + 98389a0 commit 4fb2d5f
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 47 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

name: Upload Python Package

on:
workflow_dispatch:
push:
tags:
- v*
# branches: [main]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./omagent-core
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
poetry install --no-root --only=main
- name: Build package
run: poetry build
- name: Publish package
env:
GITHUB_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi $GITHUB_TOKEN
poetry publish
87 changes: 40 additions & 47 deletions omagent-core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,58 +1,51 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
[tool.poetry]
name = "omagent_core"
version = "0.2.0"
authors = [
{ name = "OM AI Lab", email = "[email protected]" },
]
description = "Core package for OmAgent"
authors = ["OM AI Lab <[email protected]>"]
readme = "README.md"
requires-python = ">=3.10, <3.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Operating System :: OS Independent"
]
repository = "https://github.com/om-ai-lab/OmAgent"

dependencies = [
"sqlmodel>=0.0.8",
"pymysql>=1.0.3",
"sqlalchemy-utils>=0.41.1",
"httpx>=0.24.1",
"tenacity>=8.2.3",
"pyyaml>=6.0.1",
"pymilvus>=2.4.6",
"networkx>=3.2.1",
"duckduckgo_search>=3.9.9",
"bs4>=0.0.1",
"pillow>=10.1.0",
"geocoder>=1.38.1",
"rich>=13.7.0",
"jsonpath>=0.82.2",
"jinja2>=3.1.2",
"colorama>=0.4.6",
"httpx[http2]",
"openai>=1.23.2",
"certifi >= 14.05.14",
"prometheus-client >= 0.13.1",
"six >= 1.10",
"requests >= 2.31.0",
"typing-extensions >= 4.2.0",
"astor >= 0.8.1",
"shortuuid >= 1.0.11",
"dacite >= 1.8.1",
"pydantic_settings >= 2.6.0",
"redis >= 4.8.0",
"json_repair >= 0.30.1",
"scenedetect >= 0.6.4",
"pydub >= 0.25.1",
"face_recognition >= 1.3.0",
"gradio >= 5.7.1",
"tavily-python >= 0.5.0"
]
[tool.poetry.dependencies]
python = "^3.10,<3.12"
sqlmodel = "^0.0.22"
pymysql = "^1.1.1"
sqlalchemy-utils = "^0.41.2"
tenacity = "^9.0.0"
pyyaml = "^6.0.2"
pymilvus = "^2.5.0"
networkx = "^3.4.2"
duckduckgo-search = "^6.3.7"
bs4 = "^0.0.2"
pillow = "^11.0.0"
geocoder = "^1.38.1"
rich = "^13.9.4"
jsonpath = "^0.82.2"
jinja2 = "^3.1.4"
colorama = "^0.4.6"
openai = "^1.58.1"
certifi = "^2024.12.14"
prometheus-client = "^0.21.1"
six = "^1.17.0"
requests = "^2.32.3"
typing-extensions = "^4.12.2"
astor = "^0.8.1"
shortuuid = "^1.0.13"
dacite = "^1.8.1"
pydantic-settings = "^2.7.0"
redis = "^5.2.1"
json-repair = "^0.31.0"
scenedetect = "^0.6.5.1"
pydub = "^0.25.1"
face-recognition = "^1.3.0"
httpx = {extras = ["http2"], version = "^0.28.1"}

[project.urls]
"Homepage" = "https://github.com/om-ai-lab/OmAgent"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 4fb2d5f

Please sign in to comment.