xref: /OpenGrok/tools/setup.py (revision dd7a246ffb9aa213ebfde46d5ad38ed3f79e6b78)
1import os
2from setuptools import setup
3
4from src.main.python.opengrok_tools.version import __version__ as version
5
6SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
7
8
9def readme():
10    with open(os.path.join(SCRIPT_DIR, 'README-dist.txt'), 'r') as readme:
11        return readme.read()
12
13
14setup(
15    name='opengrok-tools',
16    version=version,
17    packages=[
18        'opengrok_tools',
19        'opengrok_tools.utils',
20        'opengrok_tools.scm',
21    ],
22    package_dir={
23        'opengrok_tools': 'src/main/python/opengrok_tools',
24        'opengrok_tools.scm': 'src/main/python/opengrok_tools/scm',
25        'opengrok_tools.utils': 'src/main/python/opengrok_tools/utils',
26    },
27    url='https://github.com/oracle/opengrok',
28    license='CDDL',
29    author='Oracle',
30    description='Tools for managing OpenGrok instance',
31    long_description=readme(),
32    python_requires='>=3.4, <4',
33    install_requires=[
34        'jsonschema==2.6.0',
35        'pyyaml',
36        'requests>=2.20.0',
37        'resource',
38        'filelock<3.3.0',
39        'setuptools>=36.7.2',
40    ],
41    setup_requires=[
42        'pytest-runner',
43        'setuptools>=36.7.2',
44    ],
45    tests_require=[
46        'pytest',
47        'GitPython',
48        'pytest-xdist',
49        'mockito',
50        'pytest-mockito',
51    ],
52    entry_points={
53        'console_scripts': [
54            'opengrok-config-merge=opengrok_tools.config_merge:main',
55            'opengrok-deploy=opengrok_tools.deploy:main',
56            'opengrok-groups=opengrok_tools.groups:main',
57            'opengrok=opengrok_tools.indexer:main',
58            'opengrok-indexer=opengrok_tools.indexer:main',
59            'opengrok-java=opengrok_tools.java:main',
60            'opengrok-mirror=opengrok_tools.mirror:main',
61            'opengrok-projadm=opengrok_tools.projadm:main',
62            'opengrok-reindex-project=opengrok_tools.reindex_project:main',
63            'opengrok-sync=opengrok_tools.sync:main',
64        ]
65    },
66)
67