From 954b9ff28ce0c4bf93fa3b33e55fabc6fb2503d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Wed, 30 Jul 2025 16:55:12 +0200 Subject: [PATCH] setup: Add long description to py module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit let's include our README into setuptools long description. Signed-off-by: Lukáš Doktor --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index 65d03f0..2925141 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,14 @@ from setuptools import setup + +def get_long_description(): + """Returns the content of README.rst""" + with open("README.rst", "r", encoding="utf-8") as req: + req_contents = req.read() + return req_contents + + if __name__ == "__main__": setup( name="aexpect", @@ -24,6 +32,8 @@ description="Aexpect", author="Aexpect developers", author_email="avocado-devel@redhat.com", + long_description=get_long_description(), + long_description_content_type="text/markdown", url="http://avocado-framework.github.io/", license="GPLv2+", classifiers=[