Skip to content

Commit b7aa792

Browse files
authored
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
1 parent 70b0163 commit b7aa792

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.11"
23+
python-version: "3.13"
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v3
26+
with:
27+
version: "0.4.22"
2428
- name: Install dependencies
2529
run: |
26-
python -m pip install --upgrade pip
27-
pip install build twine
30+
uv tool install twine
31+
uv tool install flit
2832
- name: Build a wheel and a source tarball
29-
run: python -m build
33+
run: flit build --no-use-vcs
3034
- name: Check with twine
3135
run: twine check dist/*
3236
- name: Publish distribution 📦 to PyPI

README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,16 @@ Similar Tools
6666
* `breathe <https://github.com/michaeljones/breathe>`_ A doxygen output to
6767
sphinx tool.
6868

69-
.. |build-status| image:: https://github.com/speedyleion/sphinx-c-autodoc/workflows/Python%20package/badge.svg
69+
.. |build-status| image:: https://github.com/speedyleion/sphinx-c-autodoc/actions/workflows/ci.yml/badge.svg
7070
:alt: Build Status
71-
:scale: 100%
72-
:target: https://github.com/speedyleion/sphinx-c-autodoc/actions?query=workflow%3A%22Python+package%22
71+
:target: https://github.com/speedyleion/sphinx-c-autodoc/actions/workflows/ci.yml
7372

7473
.. |coverage| image:: https://codecov.io/gh/speedyleion/sphinx-c-autodoc/branch/main/graph/badge.svg
7574
:alt: Coverage
76-
:scale: 100%
7775
:target: https://codecov.io/gh/speedyleion/sphinx-c-autodoc
7876

7977
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
8078
:alt: Code Style
81-
:scale: 100%
8279
:target: https://github.com/psf/black
8380

8481
.. |docs| image:: https://readthedocs.org/projects/sphinx-c-autodoc/badge/?version=latest

0 commit comments

Comments
 (0)