From 1437f3d7fc912cf39fe9b37dcfd65109054334f4 Mon Sep 17 00:00:00 2001 From: xaoyo Date: Sat, 28 Oct 2023 20:14:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=88=B0pypi=E7=9A=84github=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 3 ++- setup.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e8ca54a..6095634 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,8 @@ jobs: pip install . - name: Build package # 构建包 - run: python setup.py sdist bdist_wheel # 构建 wheel 和 sdist 包 + run: | + python setup.py sdist bdist_wheel # 构建 wheel 和 sdist 包 - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 # 使用 PyPA 的 action diff --git a/setup.py b/setup.py index d6ee372..8faa8f8 100644 --- a/setup.py +++ b/setup.py @@ -47,4 +47,5 @@ setup( 'wxdump = pywxdump.command:console_run', ], }, + setup_requires=['wheel'] )