From 9fbfe52defa7813545cc6ee633c91d18bec12bbc Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 19 Dec 2022 15:55:21 +0100 Subject: [PATCH] Replace the logo in the PyPI README Looks like PyPI doesn't support the picture tag that we use for dark mode on GitHub: https://test.pypi.org/project/attrs/22.2.0.dev0/ --- README.md | 2 ++ setup.py | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 300af315..9a0824ee 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@

+ +

Documentation diff --git a/setup.py b/setup.py index ea439b7c..02782155 100644 --- a/setup.py +++ b/setup.py @@ -114,8 +114,18 @@ def find_meta(meta): VERSION = find_meta("version") URL = find_meta("url") + +# PyPI doesn't support the tag. +LOGO = """

+ + attrs + +

+""" # noqa + LONG = ( - read("README.md") + LOGO + + read("README.md").split("", 1)[1] + "\n\n## Changes in This Release\n" + read("CHANGELOG.md") .split("towncrier release notes start -->", 1)[1]