mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-29 02:10:59 +08:00
fix(pypi): inconsistent version
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user