diff --git a/.github/workflows/upload-pypi.yml b/.github/workflows/upload-pypi.yml index 6261ff9d3..726cf1e41 100644 --- a/.github/workflows/upload-pypi.yml +++ b/.github/workflows/upload-pypi.yml @@ -30,6 +30,7 @@ jobs: CHTTS_VER: ${{ github.ref_name }} run: | echo "Release Tag: ${{ github.ref_name }}" + sed -i 's/v0.0.0/${{ github.ref_name }}/g' setup.py python setup.py sdist - name: Upload Package diff --git a/setup.py b/setup.py index 76b728967..4af225686 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,11 @@ import os from setuptools import setup, find_packages +version = "v0.0.0" + setup( name="chattts", - version=os.environ.get("CHTTS_VER", "v0.0.0").lstrip("v"), + version=os.environ.get("CHTTS_VER", version).lstrip("v"), description="A generative speech model for daily dialogue", long_description=open("README.md", encoding="utf8").read(), long_description_content_type="text/markdown",