forked from mgwilliams/jsonrpcake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (36 loc) · 976 Bytes
/
setup.py
File metadata and controls
43 lines (36 loc) · 976 Bytes
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
import sys
import codecs
from setuptools import setup
import jsonrpcake
requirements = [
'jsonrpc-ns>=0.5',
'Pygments>=1.5'
]
try:
#noinspection PyUnresolvedReferences
import argparse # NOQA
except ImportError:
requirements.append('argparse>=1.2.1')
if 'win32' in str(sys.platform).lower():
# Terminal colors for Windows
requirements.append('colorama>=0.2.4')
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
return f.read()
setup(
name='jsonrpcake',
version='1.1.0',
description=jsonrpcake.__doc__.strip(),
long_description=long_description(),
author='Joe Hillenbrand',
author_email='joehillen@gmail.com',
url='http://github.com/joehillen/jsonrpcake',
license=jsonrpcake.__licence__,
packages=['jsonrpcake'],
entry_points={
'console_scripts': [
'jsonrpc = jsonrpcake.__main__:main',
],
},
install_requires=requirements,
)