Skip to content

Commit

Permalink
fix(pypi): inconsistent version
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 4, 2024
1 parent 2e6fa5c commit feba65f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/upload-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit feba65f

Please sign in to comment.