From 3522b3efcc879a7238c6309ede2673f4bd75b27d Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Wed, 31 Dec 2025 18:33:01 +0800 Subject: fix: update publish workflow to use uv for installing twine and publishing to TestPyPI --- .github/workflows/publish.yml | 10 +++++++--- pyproject.toml | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 322f254..71fd1ea 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -110,14 +110,18 @@ jobs: name: dist path: dist/ - - name: Install twine - run: pip install twine + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Publish to TestPyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} run: | - twine upload --repository testpypi --skip-existing --verbose dist/* + uv pip install twine + uv run twine upload --repository testpypi --skip-existing --verbose dist/* publish-pypi: name: Publish to PyPI diff --git a/pyproject.toml b/pyproject.toml index 02d93c7..279136b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,9 @@ requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.metadata] +license-files = [] + [project] name = "base-model-trpgner" version = "0.1.6" -- cgit v1.2.3-70-g09d2