-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
42 lines (37 loc) · 1.07 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def get_info(name):
basedir = os.path.dirname(__file__)
with open(os.path.join(basedir, 'grpc_pytools/__init__.py')) as f:
locals = {}
try:
exec(f.read(), locals)
except ImportError:
pass
return locals[name]
setup(
name='grpc-pytools',
version=get_info('__version__'),
author=get_info('__author__'),
author_email=get_info('__email__'),
maintainer=get_info('__author__'),
maintainer_email=get_info('__email__'),
keywords='gRPC, Python tools',
description=get_info('__doc__'),
license=get_info('__license__'),
long_description=get_info('__doc__'),
packages=find_packages(exclude=['tests']),
url='https://github.com/RussellLuo/grpc-pytools',
install_requires=[
'grpcio',
'marshmallow',
'python-restart',
],
entry_points={
'console_scripts': [
'protoc-gen-pytools-ast = grpc_pytools.protoc_plugins.ast:main',
],
},
)