Include optional prometheus installation with pip install nucypher[ursula] and inclusion in Dockerfile

pull/1931/head
Kieran Prasch 2020-04-27 11:32:15 -07:00 committed by Kieran R. Prasch
parent acedfd52c5
commit 7962c47f56
2 changed files with 4 additions and 1 deletions

View File

@ -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"]

View File

@ -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