From b7aa792575ab2702a7c6b05a0cbb22cc636f72d7 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 16 Oct 2024 11:54:33 -0700 Subject: [PATCH] fix badge for ci updates (#299) remove image scale in readme, see Twine check fails when there are github badges in readme file pypa/twine#1102 use uv in release.yml --- .github/workflows/release.yml | 12 ++++++++---- README.rst | 7 ++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff55d194..deb4bbea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,13 +20,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + version: "0.4.22" - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install build twine + uv tool install twine + uv tool install flit - name: Build a wheel and a source tarball - run: python -m build + run: flit build --no-use-vcs - name: Check with twine run: twine check dist/* - name: Publish distribution 📦 to PyPI diff --git a/README.rst b/README.rst index 538bb6fd..ac42d436 100644 --- a/README.rst +++ b/README.rst @@ -66,19 +66,16 @@ Similar Tools * `breathe `_ A doxygen output to sphinx tool. -.. |build-status| image:: https://github.com/speedyleion/sphinx-c-autodoc/workflows/Python%20package/badge.svg +.. |build-status| image:: https://github.com/speedyleion/sphinx-c-autodoc/actions/workflows/ci.yml/badge.svg :alt: Build Status - :scale: 100% - :target: https://github.com/speedyleion/sphinx-c-autodoc/actions?query=workflow%3A%22Python+package%22 + :target: https://github.com/speedyleion/sphinx-c-autodoc/actions/workflows/ci.yml .. |coverage| image:: https://codecov.io/gh/speedyleion/sphinx-c-autodoc/branch/main/graph/badge.svg :alt: Coverage - :scale: 100% :target: https://codecov.io/gh/speedyleion/sphinx-c-autodoc .. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg :alt: Code Style - :scale: 100% :target: https://github.com/psf/black .. |docs| image:: https://readthedocs.org/projects/sphinx-c-autodoc/badge/?version=latest