1import lit
2import os
3
4from setuptools import setup, find_packages
5
6# setuptools expects to be invoked from within the directory of setup.py, but it
7# is nice to allow:
8#   python path/to/setup.py install
9# to work (for scripts, etc.)
10os.chdir(os.path.dirname(os.path.abspath(__file__)))
11
12setup(
13    name = "lit",
14    version = lit.__version__,
15
16    author = lit.__author__,
17    author_email = lit.__email__,
18    url = 'http://llvm.org',
19    license = 'Apache-2.0 with LLVM exception',
20    license_files = ['LICENSE.TXT'],
21
22    description = "A Software Testing Tool",
23    keywords = 'test C++ automatic discovery',
24    long_description = """\
25*lit*
26+++++
27
28About
29=====
30
31*lit* is a portable tool for executing LLVM and Clang style test suites,
32summarizing their results, and providing indication of failures. *lit* is
33designed to be a lightweight testing tool with as simple a user interface as
34possible.
35
36
37Features
38========
39
40 * Portable!
41 * Flexible test discovery.
42 * Parallel test execution.
43 * Support for multiple test formats and test suite designs.
44
45
46Documentation
47=============
48
49The official *lit* documentation is in the man page, available online at the LLVM
50Command Guide: http://llvm.org/cmds/lit.html.
51
52
53Source
54======
55
56The *lit* source is available as part of LLVM, in the LLVM source repository:
57https://github.com/llvm/llvm-project/tree/main/llvm/utils/lit
58""",
59
60    classifiers=[
61        'Development Status :: 3 - Alpha',
62        'Environment :: Console',
63        'Intended Audience :: Developers',
64        'License :: OSI Approved :: Apache Software License',
65        'Natural Language :: English',
66        'Operating System :: OS Independent',
67        'Programming Language :: Python',
68        'Topic :: Software Development :: Testing',
69        ],
70
71    zip_safe = False,
72    packages = find_packages(),
73    entry_points = {
74        'console_scripts': [
75            'lit = lit.main:main',
76            ],
77        }
78)
79