From 3e16cbb3473156fda1f08865f0cf9fdbc1a4fd3e Mon Sep 17 00:00:00 2001 From: LiangQuan Date: Mon, 31 Mar 2025 11:23:40 +0800 Subject: [PATCH] chore: fix package building --- .github/workflows/publish.yaml | 4 +++- .github/workflows/release_trigger.yaml | 4 +++- setup.py | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1b1f902..4506360 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -26,7 +26,9 @@ jobs: run: pip install wheel setuptools twine # build and upload package pai - name: Build package for pai - run: python setup.py sdist bdist_wheel + run: | + python -m pip install --upgrade pip setuptools wheel + python setup.py sdist bdist_wheel - name: Publish package to PyPI (pai) run: twine upload dist/* --skip-existing -u __token__ -p $PAI_PYPI_TOKEN - name: cleanup diff --git a/.github/workflows/release_trigger.yaml b/.github/workflows/release_trigger.yaml index 2d6ee91..1f9b4ef 100644 --- a/.github/workflows/release_trigger.yaml +++ b/.github/workflows/release_trigger.yaml @@ -45,7 +45,9 @@ jobs: - name: Install dependencies run: pip install wheel setuptools twine - name: Build package for pai - run: python setup.py sdist bdist_wheel + run: | + python -m pip install --upgrade pip setuptools wheel + python setup.py sdist bdist_wheel - name: Publish package to PyPI (pai) run: twine upload dist/* --skip-existing -u __token__ -p $PAI_PYPI_TOKEN - name: cleanup diff --git a/setup.py b/setup.py index 8df16cc..1c3561a 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,6 @@ def read_requirements(): name=PACKAGE_NAME, python_requires=">=3.8", version=version, - setup_requires=["setuptools_scm"], description="Alibaba Cloud PAI Python SDK", long_description=long_description, long_description_content_type="text/markdown",