mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-09-15 12:47:59 +08:00
Moved prometheus-flask-exporter into extras_require
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
cellxgene
|
# requirements.txt
|
||||||
flask
|
#
|
||||||
flask-api
|
# installs dependencies from ./setup.py, and the package itself,
|
||||||
werkzeug
|
# in editable mode
|
||||||
psutil
|
-e .[prometheus]
|
||||||
requests
|
|
||||||
prometheus-flask-exporter
|
# (the -e above is optional). you could also just install the package
|
||||||
typer
|
# normally with just the line below (after uncommenting)
|
||||||
|
# .
|
||||||
|
|||||||
30
setup.cfg
30
setup.cfg
@@ -1,2 +1,30 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
description-file = README.md
|
description_file = README.md
|
||||||
|
description = "Cellxgene Gateway"
|
||||||
|
author = "Niket Patel, Yohann Potier, Alok Saldanha"
|
||||||
|
author_email = "alok.saldanha@novartis.com"
|
||||||
|
long_description_content_type="text/markdown"
|
||||||
|
license = "MIT"
|
||||||
|
keywords ="visualization, genomics"
|
||||||
|
url = "http://github.com/Novartis/cellxgene-gateway"
|
||||||
|
python_requires = ">=3.6"
|
||||||
|
classifier =
|
||||||
|
"Topic :: Scientific/Engineering :: Visualization"
|
||||||
|
|
||||||
|
[options]
|
||||||
|
install_requires =
|
||||||
|
cellxgene
|
||||||
|
flask
|
||||||
|
flask-api
|
||||||
|
werkzeug
|
||||||
|
psutil
|
||||||
|
requests
|
||||||
|
typer
|
||||||
|
|
||||||
|
[options.extras_require]
|
||||||
|
prometheus =
|
||||||
|
prometheus-flask-exporter
|
||||||
|
|
||||||
|
[entry_points]
|
||||||
|
console_scripts =
|
||||||
|
cellxgene-gateway = cellxgene_gateway.cli:run
|
||||||
|
|||||||
27
setup.py
27
setup.py
@@ -4,9 +4,6 @@ import sys
|
|||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
if sys.version_info < (3, 6):
|
|
||||||
sys.exit("Sorry, Python < 3.6 is not supported")
|
|
||||||
|
|
||||||
|
|
||||||
def read(rel_path):
|
def read(rel_path):
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
@@ -23,33 +20,15 @@ def get_version(rel_path):
|
|||||||
raise RuntimeError("Unable to find version string.")
|
raise RuntimeError("Unable to find version string.")
|
||||||
|
|
||||||
|
|
||||||
def parse_requirements():
|
|
||||||
reqs = []
|
|
||||||
with open("requirements.txt", "r") as f:
|
|
||||||
for line in f.readlines():
|
|
||||||
reqs.append(line.strip("\n"))
|
|
||||||
return reqs
|
|
||||||
|
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
install_reqs = parse_requirements()
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
# mandatory
|
|
||||||
name="cellxgene-gateway",
|
|
||||||
# mandatory
|
# mandatory
|
||||||
version=get_version("cellxgene_gateway/__init__.py"),
|
version=get_version("cellxgene_gateway/__init__.py"),
|
||||||
# mandatory
|
# mandatory
|
||||||
author="Niket Patel, Yohann Potier, Alok Saldanha",
|
|
||||||
author_email="alok.saldanha@novartis.com",
|
|
||||||
description=("Cellxgene Gateway"),
|
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
name="cellxgene-gateway",
|
||||||
license="MIT",
|
|
||||||
keywords="visualization, genomics",
|
|
||||||
url="http://github.com/Novartis/cellxgene-gateway",
|
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
package_data={
|
package_data={
|
||||||
"cellxgene_gateway": [
|
"cellxgene_gateway": [
|
||||||
@@ -60,8 +39,4 @@ setup(
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
data_files=[("", ["README.md", "LICENSE"])],
|
data_files=[("", ["README.md", "LICENSE"])],
|
||||||
install_requires=install_reqs,
|
|
||||||
entry_points={"console_scripts": ["cellxgene-gateway=cellxgene_gateway.cli:run"]},
|
|
||||||
classifiers=["Topic :: Scientific/Engineering :: Visualization"],
|
|
||||||
python_requires=">=3.6",
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user