From 7962c47f561b96970358a4b8be65786daba1700c Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Mon, 27 Apr 2020 11:32:15 -0700 Subject: [PATCH] Include optional prometheus installation with pip install nucypher[ursula] and inclusion in Dockerfile --- deploy/docker/Dockerfile | 2 +- setup.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index 0b408d1ed..1cd08afe3 100644 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -7,6 +7,6 @@ RUN apt install gcc libffi-dev wget -y WORKDIR /code COPY . /code -RUN pip3 install . -r requirements.txt +RUN pip3 install .[ursula] CMD ["/bin/bash"] diff --git a/setup.py b/setup.py index 617a3b50a..9fb1f9e77 100644 --- a/setup.py +++ b/setup.py @@ -115,7 +115,10 @@ DEPLOY_REQUIRES = [ 'twine' ] +URSULA_REQUIRES = ['prometheus_client'] + EXTRAS = { + 'ursula': URSULA_REQUIRES, 'docs': DOCS_REQUIRE, 'dev': DEV_REQUIRES + DOCS_REQUIRE, 'benchmark': DEV_REQUIRES + BENCHMARK_REQUIRES