-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
44 lines (38 loc) · 1.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import sys
from setuptools import setup, find_packages
try:
# Work around a traceback on Python < 2.7.4 and < 3.3.1
# http://bugs.python.org/issue15881#msg170215
import multiprocessing # unused
except ImportError:
pass
SRC_DIR = 'src'
def get_version():
sys.path[:0] = [SRC_DIR]
return __import__('javactl').__version__
setup(
name='javactl',
version=get_version(),
description='YAML-Configurable Java Application Wrapper',
author='mogproject',
author_email='mogproj@gmail.com',
license='Apache 2.0 License',
url='https://github.com/mogproject/javactl',
install_requires=[
'pyyaml' + (' < 4' if sys.version_info[:2] == (3, 2) else ' < 5'),
'six',
'mog-commons',
],
tests_require=[
'mock == 1.0.1', # lock version for older version of setuptools
'jinja2' + (' == 2.6' if sys.version_info[:2] == (3, 2) else ''),
],
package_dir={'': SRC_DIR},
packages=find_packages(SRC_DIR),
include_package_data=True,
test_suite='tests',
entry_points="""
[console_scripts]
javactl = javactl.javactl:main
""",
)