Add logo to PyPI description

This commit is contained in:
Hynek Schlawack 2021-12-28 06:34:04 +01:00
parent 26c0cef8e4
commit e09873485e
1 changed files with 7 additions and 3 deletions

View File

@ -99,12 +99,16 @@ def find_meta(meta):
raise RuntimeError("Unable to find __{meta}__ string.".format(meta=meta))
LOGO = """
.. image:: https://www.attrs.org/en/stable/_static/attrs_logo.png
:alt: attrs logo
:align: center
""" # noqa
VERSION = find_meta("version")
URL = find_meta("url")
LONG = (
"======================================\n"
"``attrs``: Classes Without Boilerplate\n"
"======================================\n"
LOGO
+ read("README.rst").split(".. teaser-begin")[1]
+ "\n\n"
+ "Release Information\n"