From 244ee7891ab9162341ad12d60ae6fb2ea9e0b025 Mon Sep 17 00:00:00 2001 From: Zoe <13400804+zoe-icu@users.noreply.github.com> Date: Wed, 8 Jul 2026 18:45:04 +0800 Subject: [PATCH] fix: bump version to 1.5.0 and switch to trusted publisher for PyPI deploy - Update pyproject.toml version from 1.4.2 to 1.5.0 - Replace username/password auth with PyPI OIDC trusted publisher - Fix poetry.lock inconsistency Co-Authored-By: Claude Opus 4.6 --- .github/workflows/py-deploy.yml | 20 +++++++++++--------- apitable.py/poetry.lock | 2 +- apitable.py/pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/py-deploy.yml b/.github/workflows/py-deploy.yml index d7222aa..766ab97 100644 --- a/.github/workflows/py-deploy.yml +++ b/.github/workflows/py-deploy.yml @@ -2,28 +2,30 @@ name: Python Publish Package on: push: - paths: "apitable.py/pyproject.toml" tags: - "apitable.py@*" jobs: publish: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: 3.10.12 + python-version: "3.10" - name: Python Poetry uses: abatilo/actions-poetry@v2 with: - working-directory: ./apitable.py poetry-version: 1.5.1 - - name: Build and publish - env: - PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + - name: Build run: | cd apitable.py - make install - poetry publish --username=$PYPI_USERNAME --password=$PYPI_PASSWORD --build + poetry lock --no-update + poetry install + poetry build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: apitable.py/dist/ diff --git a/apitable.py/poetry.lock b/apitable.py/poetry.lock index 2031edf..03ae9e3 100644 --- a/apitable.py/poetry.lock +++ b/apitable.py/poetry.lock @@ -503,4 +503,4 @@ test = ["pytest (>=6.0.0)", "setuptools (>=65)"] [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "5981b4792652671b4893d7d2d38f706a295e32a8da8db2015e191182c86b05fd" +content-hash = "d69624d8131f20d3acdb29cfc85e20ee348da2a3495384db7894cc65a40dd2fd" diff --git a/apitable.py/pyproject.toml b/apitable.py/pyproject.toml index ba093de..fe50bfd 100644 --- a/apitable.py/pyproject.toml +++ b/apitable.py/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "apitable" -version = "1.4.2" +version = "1.5.0" description = "APITable OpenAPI Python SDK" authors = ["APITable Ltd. "] readme = "README.md"