-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
45 lines (36 loc) · 1.01 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
45
import setuptools
import subprocess
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
class protoc(setuptools.Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
subprocess.check_call(
[
"protoc",
"--proto_path",
".",
"--proto_path",
"nrpc",
"--python_out",
".",
"nrpc/nrpc.proto",
]
)
setup(
name="python-nrpc",
version="0.0.7",
description="A python code generator and lib for Nats RPC",
long_description=long_description,
long_description_content_type="text/markdown",
packages=["nrpc"],
package_data={"nrpc": ["*.mako"]},
cmdclass={"protoc": protoc},
entry_points={"console_scripts": ["protoc-gen-pynrpc=nrpc.gen:main"]},
install_requires=["protobuf", "mako", "nats-py>=2.7"],
)