Skip to content

Commit 033b5dc

Browse files
fix: remove raw HTML directives from READMEs for PyPI compatibility
PyPI's RST renderer disables the `.. raw::` directive for security reasons, causing the long_description metadata check to fail during publish. Replace raw HTML blocks with pure RST equivalents (badge substitutions, italic markup, and plain links).
1 parent aa751db commit 033b5dc

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
.. raw:: html
1+
YooMoney API
2+
============
3+
4+
*Unofficial Python library for the YooMoney API*
25

3-
<p align="center">
4-
<a href="README_RU.rst">🇷🇺 Версия на русском языке</a>
5-
</p>
6+
|pypi| |python| |license|
67

7-
.. raw:: html
8+
.. |pypi| image:: https://img.shields.io/pypi/v/yoomoney?color=blue&label=PyPI
9+
:target: https://pypi.org/project/yoomoney/
10+
.. |python| image:: https://img.shields.io/pypi/pyversions/yoomoney
11+
:target: https://pypi.org/project/yoomoney/
12+
.. |license| image:: https://img.shields.io/github/license/AlekseyKorshuk/yoomoney-api
13+
:target: https://github.com/AlekseyKorshuk/yoomoney-api/blob/master/LICENSE
814

9-
<h1 align="center">YooMoney API</h1>
10-
<p align="center"><i>Unofficial Python library for the YooMoney API</i></p>
11-
<p align="center">
12-
<a href="https://pypi.org/project/yoomoney/"><img src="https://img.shields.io/pypi/v/yoomoney?color=blue&label=PyPI" alt="PyPI"></a>
13-
<a href="https://pypi.org/project/yoomoney/"><img src="https://img.shields.io/pypi/pyversions/yoomoney" alt="Python"></a>
14-
<a href="https://github.com/AlekseyKorshuk/yoomoney-api/blob/master/LICENSE"><img src="https://img.shields.io/github/license/AlekseyKorshuk/yoomoney-api" alt="License"></a>
15-
</p>
15+
`🇷🇺 Версия на русском языке <README_RU.rst>`_
1616

1717
----
1818

README_RU.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
.. raw:: html
1+
YooMoney API
2+
============
23

3-
<p align="center">
4-
<a href="README.rst">🇬🇧 English version</a>
5-
</p>
4+
*Неофициальная Python-библиотека для YooMoney API*
65

7-
.. raw:: html
6+
|pypi| |python| |license|
87

9-
<h1 align="center">YooMoney API</h1>
10-
<p align="center"><i>Неофициальная Python-библиотека для YooMoney API</i></p>
11-
<p align="center">
12-
<a href="https://pypi.org/project/yoomoney/"><img src="https://img.shields.io/pypi/v/yoomoney?color=blue&label=PyPI" alt="PyPI"></a>
13-
<a href="https://pypi.org/project/yoomoney/"><img src="https://img.shields.io/pypi/pyversions/yoomoney" alt="Python"></a>
14-
<a href="https://github.com/AlekseyKorshuk/yoomoney-api/blob/master/LICENSE"><img src="https://img.shields.io/github/license/AlekseyKorshuk/yoomoney-api" alt="Лицензия"></a>
15-
</p>
8+
.. |pypi| image:: https://img.shields.io/pypi/v/yoomoney?color=blue&label=PyPI
9+
:target: https://pypi.org/project/yoomoney/
10+
.. |python| image:: https://img.shields.io/pypi/pyversions/yoomoney
11+
:target: https://pypi.org/project/yoomoney/
12+
.. |license| image:: https://img.shields.io/github/license/AlekseyKorshuk/yoomoney-api
13+
:target: https://github.com/AlekseyKorshuk/yoomoney-api/blob/master/LICENSE
14+
15+
`🇬🇧 English version <README.rst>`_
1616

1717
----
1818

0 commit comments

Comments
 (0)