Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

added tagging

reibsd8df6dfbcea1
diff --git a/.github/workflows/pipy_release.yaml b/.github/workflows/pipy_release.yaml
new file mode 100644
index 00000000..18b029b6
--- /dev/null
+++ b/.github/workflows/pipy_release.yaml
@@ -0,0 +1,34 @@
+name: Publish Python 🐍 distributions 📦 to PyPI
+
+on:
+ push:
+ tags:
+ - "*"
+
+jobs:
+ build-n-publish:
+ name: Build and publish Python 🐍 distributions 📦 to PyPI
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@master
+ - name: Set up Python 3.11
+ uses: actions/setup-python@v3
+ with:
+ python-version: "3.11"
+ - name: Install pypa/setuptools
+ run: >-
+ python -m
+ pip install wheel
+ - name: Extract tag name
+ id: tag
+ run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
+ - name: Update version in setup.py
+ run: >-
+ sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
+ - name: Build a binary wheel
+ run: >-
+ python setup.py sdist bdist_wheel
+ - name: Publish distribution 📦 to PyPI
+ uses: pypa/gh-action-pypi-publish@master
+ with:
+ password: ${{ secrets.PYPI_API_TOKEN }}
diff --git a/setup.py b/setup.py
index fc4b996c..0b814635 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@ from setuptools import setup, find_packages
setup(
name='agentops',
version='0.1',
+ version='{{VERSION_PLACEHOLDER}}',
author='Alex Reibman',
author_email='[email protected]',
packages=find_packages(),
@@ -15,4 +16,4 @@ setup(
'requests_mock'
],
},
-)
\ No newline at end of file
+)