Skip to content

Commit

Permalink
Fix python release
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 13, 2024
1 parent 772ec9c commit 4c46734
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ proto/*.proto
cp -Rvf python/* build/python/
cd build/python

TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [[ -n "$TAG" ]]; then
TAG=${TAG#v}
export TAG
else
export TAG="0.1"
fi


if [ "$DEBUG" = "1" ] ;
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from setuptools import setup, find_packages
import os

version = os.getenv('TAG', '0.1')
setup(
name='openagents_service_provider_proto',
version='0.1',
name='openagents_grpc_proto',
version=version,
packages=find_packages(),
install_requires=[
'protobuf==5.26.1',
Expand Down

0 comments on commit 4c46734

Please sign in to comment.