Skip to content

Commit 57a29fe

Browse files
shenxianpengabravalheri
authored andcommitted
Uses RST substitution to put badges in 1 line
1 parent 1ed7591 commit 57a29fe

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
1-
.. image:: https://img.shields.io/pypi/v/setuptools.svg
1+
.. |pypi-version| image:: https://img.shields.io/pypi/v/setuptools.svg
22
:target: https://pypi.org/project/setuptools
33

4-
.. image:: https://img.shields.io/pypi/pyversions/setuptools.svg
4+
.. |py-version| image:: https://img.shields.io/pypi/pyversions/setuptools.svg
55

6-
.. image:: https://github.com/pypa/setuptools/actions/workflows/main.yml/badge.svg
6+
.. |test-badge| image:: https://github.com/pypa/setuptools/actions/workflows/main.yml/badge.svg
77
:target: https://github.com/pypa/setuptools/actions?query=workflow%3A%22tests%22
88
:alt: tests
99

10-
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
11-
:target: https://github.com/astral-sh/ruff
12-
:alt: Ruff
10+
.. |ruff-badge| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
11+
:target: https://github.com/astral-sh/ruff
12+
:alt: Ruff
1313

14-
.. image:: https://img.shields.io/readthedocs/setuptools/latest.svg
15-
:target: https://setuptools.pypa.io
14+
.. |docs-badge| image:: https://img.shields.io/readthedocs/setuptools/latest.svg
15+
:target: https://setuptools.pypa.io
1616

17-
.. image:: https://img.shields.io/badge/skeleton-2024-informational
17+
.. |skeleton-badge| image:: https://img.shields.io/badge/skeleton-2024-informational
1818
:target: https://blog.jaraco.com/skeleton
1919

20-
.. image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white
20+
.. |codecov-badge| image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white
2121
:target: https://codecov.io/gh/pypa/setuptools
2222

23-
.. image:: https://tidelift.com/badges/github/pypa/setuptools?style=flat
23+
.. |tidelift-badge| image:: https://tidelift.com/badges/github/pypa/setuptools?style=flat
2424
:target: https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=readme
2525

26-
.. image:: https://img.shields.io/discord/803025117553754132
26+
.. |discord-badge| image:: https://img.shields.io/discord/803025117553754132
2727
:target: https://discord.com/channels/803025117553754132/815945031150993468
2828
:alt: Discord
2929

30+
|pypi-version| |py-version| |test-badge| |ruff-badge| |docs-badge| |skeleton-badge| |codecov-badge| |discord-badge|
31+
3032
See the `Quickstart <https://setuptools.pypa.io/en/latest/userguide/quickstart.html>`_
3133
and the `User's Guide <https://setuptools.pypa.io/en/latest/userguide/>`_ for
3234
instructions on how to use Setuptools.

0 commit comments

Comments
 (0)