From bcffdf8290bb6a24d56250654d8250e32fd2af03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Fri, 22 Nov 2024 11:04:54 +0800 Subject: [PATCH] reset version --- .github/workflows/release.yml | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5064533..a1f40a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,6 +45,7 @@ jobs: - name: Build Packages run: | + sed -i 's/__version__/${{ steps.get_version.outputs.VERSION }}/g' setup.py pip install --upgrade pip setuptools wheel twine python setup.py sdist python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_PASSWORD }} diff --git a/setup.py b/setup.py index 5afcbfe..47bdd19 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ # 包的分发名称,使用字母、数字、_、- name="roc-py", # 版本号, 版本号规范:https://www.python.org/dev/peps/pep-0440/ - version="0.1.0", + version="__version__", # 作者名 author="limingxinleo", # 作者邮箱