From fc30109b011d21c850d0773daa2cf115f856af93 Mon Sep 17 00:00:00 2001 From: Thibaut Goetghebuer-Planchon Date: Wed, 31 Aug 2022 13:22:46 +0100 Subject: Read the content of README.md directly into long_description of setuptools.setup Change-Id: I4aaf3b7e47e0b714f13339867ee46a79a8530782 --- MANIFEST.in | 4 ---- setup.py | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 74d9656..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,4 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates. -# SPDX-License-Identifier: Apache-2.0 - -include README.md diff --git a/setup.py b/setup.py index eb7d5e1..a62cd22 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 import argparse import os +import pathlib import setuptools import setuptools.command.build_ext import shutil @@ -100,7 +101,7 @@ setuptools.setup( name="tosa-checker", version=TOSA_CHECKER_VERSION, description="Tool to check if a ML model is compatible with the TOSA specification", - long_description="file: README.md", + long_description=(pathlib.Path(__file__).parent / "README.md").read_text(), long_description_content_type="text/markdown", author="Arm Limited", url="https://git.mlplatform.org/tosa/tosa_checker.git/", -- cgit v1.2.1