xref: /llvm-project/llvm/utils/lit/setup.py (revision 7b4b15042d2b9f513dc23a951e4a6e92492894e3)
1import os
2import sys
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__)))
11sys.path.insert(0, ".")
12
13import lit
14
15with open("README.rst", "r", encoding="utf-8") as f:
16    long_description = f.read()
17
18setup(
19    name = "lit",
20    version = lit.__version__,
21
22    author = lit.__author__,
23    author_email = lit.__email__,
24    url = 'http://llvm.org',
25    license = 'Apache-2.0 with LLVM exception',
26    license_files = ['LICENSE.TXT'],
27
28    description = "A Software Testing Tool",
29    keywords = 'test C++ automatic discovery',
30    long_description = long_description,
31
32    classifiers=[
33        'Development Status :: 3 - Alpha',
34        'Environment :: Console',
35        'Intended Audience :: Developers',
36        'License :: OSI Approved :: Apache Software License',
37        'Natural Language :: English',
38        'Operating System :: OS Independent',
39        'Programming Language :: Python',
40        'Topic :: Software Development :: Testing',
41        ],
42
43    zip_safe = False,
44    packages = find_packages(),
45    entry_points = {
46        'console_scripts': [
47            'lit = lit.main:main',
48            ],
49        }
50)
51