fix cli setup

This commit is contained in:
Dražen Lučanin
2018-10-18 23:38:16 +02:00
parent a1bfbda05b
commit 51ffce09ae
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ def cli():
run = args["run"]
if build:
os.system("npm build")
os.system("npm run build")
if run:
split_module = module.split(":")
@@ -40,4 +40,4 @@ def cli():
prop = "api"
app = __import__(module)
getattr(app, prop).run()
getattr(app, prop).run()
+2 -1
View File
@@ -38,6 +38,7 @@ required = [
"apispec>=1.0.0b1",
"marshmallow",
"asgiref",
"docopt"
]
@@ -117,7 +118,7 @@ setup(
author_email="me@kennethreitz.org",
url="https://github.com/kennethreitz/responder",
packages=find_packages(exclude=["tests"]),
entry_points={"console_scripts": ["responder=responder:cli"]},
entry_points={"console_scripts": ["responder=responder.cli:cli"]},
package_data={
# "": ["LICENSE", "NOTICES"],
# "pipenv.vendor.requests": ["*.pem"],