refactor to allow use with console entry points

This commit is contained in:
Eric Ma
2019-09-05 11:54:34 -04:00
parent 33985614d3
commit 952cb1e8e1
30 changed files with 224 additions and 64 deletions
+34
View File
@@ -0,0 +1,34 @@
import os
from setuptools import setup
def parse_requirements():
reqs = []
with open("requirements.txt", "r") as f:
for l in f.readlines():
reqs.append(l.strip("\n"))
return reqs
install_reqs = parse_requirements()
setup(
# mandatory
name="cellxgene-gateway",
# mandatory
version="0.1",
# mandatory
author="Niket Patel, Yohann Potier, Alok Saldanha",
author_email="alok.saldanha@novartis.com",
description=("Cell-by-gene Gateway"),
license="MIT",
keywords="visualization, genomics",
url="http://github.com/Novartis/cellxgene-gateway",
packages=["cellxgene_gateway"],
package_data={"": ["README.md", "LICENSE.txt"]},
install_requires=install_reqs,
entry_points={
"console_scripts": ["cellxgene-gateway=cellxgene_gateway.gateway:main"]
},
classifiers=["Topic :: Scientific/Engineering :: Visualization"],
)