diff --git a/paddlehub/serving/templates/__init__.py b/paddlehub/serving/templates/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..96c375264b4c03d172c8841f61954fabc03e6f83 --- /dev/null +++ b/paddlehub/serving/templates/__init__.py @@ -0,0 +1,14 @@ +# coding: utf-8 +# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License" +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/setup.py b/setup.py index 6c77b832452a1d305fd56e32dfad03b1cee88e10..c98842c4a0d5b0ed313116dc35f5d15243c0e224 100644 --- a/setup.py +++ b/setup.py @@ -52,10 +52,11 @@ setup( author_email='paddle-dev@baidu.com', install_requires=REQUIRED_PACKAGES, packages=find_packages(), - data_files=[('paddlehub/serving/templates', [ + package_data={'paddlehub/serving/templates':[ 'paddlehub/serving/templates/serving_config.json', 'paddlehub/serving/templates/main.html' - ])], + ]}, + include_package_data=True, # PyPI package information. classifiers=[ 'Development Status :: 4 - Beta',