Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(setup): remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 13, 2019
1 parent 1328172 commit d7b42d3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 28 deletions.
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfiles/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apk add --no-cache \
musl-dev python3-dev py-pgen cython openblas-dev && \
apk add --no-cache libstdc++ openblas libzmq && \
ln -s locale.h /usr/include/xlocale.h && \
pip install . --no-cache-dir --compile && \
pip install .[http] --no-cache-dir --compile && \
find /usr/lib/python3.7/ -name 'tests' -exec rm -r '{}' + && \
find /usr/lib/python3.7/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; && \
rm /usr/include/xlocale.h && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/buster.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
python3-dev libopenblas-dev && \
ln -s locale.h /usr/include/xlocale.h && \
pip install . --no-cache-dir --compile && \
pip install .[http] --no-cache-dir --compile && \
rm -rf /tmp/* && rm -rf /gnes && \
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && \
rm /usr/include/xlocale.h
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential python3-dev python3-pip python3-setuptools libopenblas-dev && \
export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LC_CTYPE=en_US.UTF-8 && \
ln -s /usr/bin/python3 python && \
pip3 install . --no-cache-dir --compile && \
pip3 install .[http] --no-cache-dir --compile && \
rm -rf /tmp/* && rm -rf /gnes && \
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion gnes/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def set_composer_parser(parser=None):
parser.add_argument('--mermaid_leftright', action='store_true', default=False,
help='showing the flow in left-to-right manner rather than top down')
parser.add_argument('--docker_img', type=str,
default='gnes/gnes:latest',
default='gnes/gnes:alpine-latest',
help='the docker image used in Docker Swarm & Kubernetes')
return parser

Expand Down
2 changes: 0 additions & 2 deletions gnes/composer/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def __init__(self, args):
def _create_flask_app(self):
try:
from flask import Flask, request
from flask_compress import Compress
except ImportError:
raise ImportError('Flask or its dependencies are not fully installed, '
'they are required for serving HTTP requests.'
Expand Down Expand Up @@ -69,7 +68,6 @@ def _regenerate():
self.logger.error(e)
return '<h1>Bad YAML input</h1> please kindly check the format, indent and content of your YAML file!', 400

Compress().init_app(app)
return app

def run(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
'vision': ['opencv-python>=4.0.0', 'imagehash>=4.0'],
'leveldb': ['plyvel>=1.0.5'],
'test': ['pylint', 'memory_profiler>=0.55.0', 'psutil>=5.6.1', 'gputil>=1.4.0'],
'http': ['flask', 'flask-compress', 'flask-cors', 'flask-json', 'aiohttp==3.5.4'],
'http': ['flask', 'flask-compress', 'aiohttp==3.5.4'],
'onnx': ['onnxruntime'],
'librosa': ['librosa>=0.7.0'],
'scipy': ['scipy']
Expand Down

0 comments on commit d7b42d3

Please sign in to comment.