Files
cellxgene-gateway/setup.py
2022-09-05 15:04:35 -04:00

43 lines
1.0 KiB
Python

import codecs
import os
import sys
from setuptools import find_packages, setup
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
# mandatory
version=get_version("cellxgene_gateway/__init__.py"),
# mandatory
long_description=long_description,
name="cellxgene-gateway",
packages=find_packages(),
package_data={
"cellxgene_gateway": [
"static/css/homepagestyle.css",
"static/js/annotation.js",
"static/nibr.ico",
"templates/*.html",
]
},
data_files=[("", ["README.md", "LICENSE"])],
)