Skip to content

Commit

Permalink
fix badge for ci updates (#299)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
speedyleion authored Oct 16, 2024
1 parent 70b0163 commit b7aa792
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,16 @@ Similar Tools
* `breathe <https://github.com/michaeljones/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
Expand Down

0 comments on commit b7aa792

Please sign in to comment.