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)) 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") VERSION = find_meta("version")
URL = find_meta("url") URL = find_meta("url")
LONG = ( LONG = (
"======================================\n" LOGO
"``attrs``: Classes Without Boilerplate\n"
"======================================\n"
+ read("README.rst").split(".. teaser-begin")[1] + read("README.rst").split(".. teaser-begin")[1]
+ "\n\n" + "\n\n"
+ "Release Information\n" + "Release Information\n"