From feba65ff2047c291cdb9dc04a39a601af74fc3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:30:51 +0900 Subject: [PATCH] fix(pypi): inconsistent version --- .github/workflows/upload-pypi.yml | 1 + setup.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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",