[llvm] b1a6c6c - [lit] Deduplicate README and longdescription, and update it

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 29 04:27:09 PDT 2022


Author: Michał Górny
Date: 2022-10-29T13:27:00+02:00
New Revision: b1a6c6cfafc1421e93535945136bb5a54169909c

URL: https://github.com/llvm/llvm-project/commit/b1a6c6cfafc1421e93535945136bb5a54169909c
DIFF: https://github.com/llvm/llvm-project/commit/b1a6c6cfafc1421e93535945136bb5a54169909c.diff

LOG: [lit] Deduplicate README and longdescription, and update it

Since long_description is effectively the README that's displayed
on pypi project page, combine it with the existing README file and read
the file in `setup.py`.  This is a common practice among Python
projects, to the point of declarative-style setuptools configurations
providing a shorthand for it.

While at it, update the outdated information about LLVM Bugzilla for use
of GitHub issues.

Differential Revision: https://reviews.llvm.org/D137006

Added: 
    llvm/utils/lit/README.rst

Modified: 
    llvm/utils/lit/setup.py

Removed: 
    llvm/utils/lit/README.txt


################################################################################
diff  --git a/llvm/utils/lit/README.txt b/llvm/utils/lit/README.rst
similarity index 50%
rename from llvm/utils/lit/README.txt
rename to llvm/utils/lit/README.rst
index 12cf7ae394986..b8befef4fbe00 100644
--- a/llvm/utils/lit/README.txt
+++ b/llvm/utils/lit/README.rst
@@ -2,16 +2,44 @@
  lit - A Software Testing Tool
 ===============================
 
-lit is a portable tool for executing LLVM and Clang style test suites,
-summarizing their results, and providing indication of failures. lit is designed
-to be a lightweight testing tool with as simple a user interface as possible.
+About
+=====
 
-=====================
- Contributing to lit
-=====================
+*lit* is a portable tool for executing LLVM and Clang style test suites,
+summarizing their results, and providing indication of failures. *lit* is
+designed to be a lightweight testing tool with as simple a user interface as
+possible.
 
-Please browse the Test Suite > lit category in LLVM's Bugzilla for ideas on
-what to work on.
+
+Features
+========
+
+ * Portable!
+ * Flexible test discovery.
+ * Parallel test execution.
+ * Support for multiple test formats and test suite designs.
+
+
+Documentation
+=============
+
+The official *lit* documentation is in the man page, available online at the LLVM
+Command Guide: http://llvm.org/cmds/lit.html.
+
+
+Source
+======
+
+The *lit* source is available as part of LLVM, in the LLVM source repository:
+https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit
+
+
+Contributing to lit
+===================
+
+Please browse the issues labeled *tools:llvm-lit* in LLVM's issue tracker for
+ideas on what to work on:
+https://github.com/llvm/llvm-project/labels/tools%3Allvm-lit
 
 Before submitting patches, run the test suite to ensure nothing has regressed:
 
@@ -20,7 +48,7 @@ Before submitting patches, run the test suite to ensure nothing has regressed:
         --path /path/to/your/llvm/build/bin \
         utils/lit/tests
 
-Note that lit's tests depend on 'not' and 'FileCheck', LLVM utilities.
+Note that lit's tests depend on ``not`` and ``FileCheck``, LLVM utilities.
 You will need to have built LLVM tools in order to run lit's test suite
 successfully.
 

diff  --git a/llvm/utils/lit/setup.py b/llvm/utils/lit/setup.py
index e42f11f50e1fe..948c671a33a88 100644
--- a/llvm/utils/lit/setup.py
+++ b/llvm/utils/lit/setup.py
@@ -9,6 +9,9 @@
 # to work (for scripts, etc.)
 os.chdir(os.path.dirname(os.path.abspath(__file__)))
 
+with open("README.rst", "r", encoding="utf-8") as f:
+    long_description = f.read()
+
 setup(
     name = "lit",
     version = lit.__version__,
@@ -21,41 +24,7 @@
 
     description = "A Software Testing Tool",
     keywords = 'test C++ automatic discovery',
-    long_description = """\
-*lit*
-+++++
-
-About
-=====
-
-*lit* is a portable tool for executing LLVM and Clang style test suites,
-summarizing their results, and providing indication of failures. *lit* is
-designed to be a lightweight testing tool with as simple a user interface as
-possible.
-
-
-Features
-========
-
- * Portable!
- * Flexible test discovery.
- * Parallel test execution.
- * Support for multiple test formats and test suite designs.
-
-
-Documentation
-=============
-
-The official *lit* documentation is in the man page, available online at the LLVM
-Command Guide: http://llvm.org/cmds/lit.html.
-
-
-Source
-======
-
-The *lit* source is available as part of LLVM, in the LLVM source repository:
-https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit
-""",
+    long_description = long_description,
 
     classifiers=[
         'Development Status :: 3 - Alpha',


        


More information about the llvm-commits mailing list