Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
8d7b73e1
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8d7b73e1
编写于
4月 19, 2021
作者:
J
Jiawei Wang
提交者:
GitHub
4月 19, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1144 from zhangjun/add-version
add VERSION_TAG for python wheel
上级
b5bf2f31
c43381fe
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
28 addition
and
18 deletion
+28
-18
CMakeLists.txt
CMakeLists.txt
+7
-0
python/gen_version.py
python/gen_version.py
+2
-0
python/paddle_serving_app/__init__.py
python/paddle_serving_app/__init__.py
+3
-0
python/paddle_serving_app/version.py
python/paddle_serving_app/version.py
+1
-1
python/paddle_serving_client/__init__.py
python/paddle_serving_client/__init__.py
+1
-1
python/paddle_serving_client/version.py
python/paddle_serving_client/version.py
+1
-2
python/paddle_serving_server/__init__.py
python/paddle_serving_server/__init__.py
+1
-1
python/paddle_serving_server/server.py
python/paddle_serving_server/server.py
+2
-2
python/paddle_serving_server/version.py
python/paddle_serving_server/version.py
+2
-3
python/setup.py.app.in
python/setup.py.app.in
+2
-2
python/setup.py.client.in
python/setup.py.client.in
+2
-2
python/setup.py.in
python/setup.py.in
+2
-2
python/setup.py.server.in
python/setup.py.server.in
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
8d7b73e1
...
...
@@ -60,6 +60,13 @@ option(WITH_TRT "Compile Paddle Serving with TRT"
option
(
PADDLE_ON_INFERENCE
"Compile for encryption"
ON
)
option
(
WITH_OPENCV
"Compile Paddle Serving with OPENCV"
OFF
)
if
(
NOT DEFINED VERSION_TAG
)
set
(
VERSION_TAG
"0.0.0"
)
endif
()
if
(
WITH_PYTHON
)
message
(
STATUS
"Compile Version Tag for wheel:
${
VERSION_TAG
}
"
)
endif
()
if
(
WITH_OPENCV
)
SET
(
OPENCV_DIR
""
CACHE PATH
"Location of libraries"
)
if
(
NOT DEFINED OPENCV_DIR
)
...
...
python/gen_version.py
浏览文件 @
8d7b73e1
...
...
@@ -47,3 +47,5 @@ elif package_name.endswith('xpu'):
path
=
"paddle_serving_"
+
sys
.
argv
[
1
]
commit_id
=
subprocess
.
check_output
([
'git'
,
'rev-parse'
,
'HEAD'
])
update_info
(
path
+
"/version.py"
,
"commit_id"
,
commit_id
)
update_info
(
path
+
"/version.py"
,
"version_tag"
,
"${VERSION_TAG}"
)
python/paddle_serving_app/__init__.py
浏览文件 @
8d7b73e1
...
...
@@ -12,3 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
.models
import
ServingModels
from
.
import
version
__version__
=
version
.
version_tag
python/paddle_serving_app/version.py
浏览文件 @
8d7b73e1
...
...
@@ -12,5 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" Paddle Serving App version string """
serving_app_version
=
"0.0.0"
version_tag
=
"0.0.0"
commit_id
=
""
python/paddle_serving_client/__init__.py
浏览文件 @
8d7b73e1
...
...
@@ -17,4 +17,4 @@ from . import version
from
.
import
client
from
.client
import
*
__version__
=
version
.
serving_client_version
__version__
=
version
.
version_tag
python/paddle_serving_client/version.py
浏览文件 @
8d7b73e1
...
...
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" Paddle Serving Client version string """
serving_client_version
=
"0.0.0"
serving_server_version
=
"0.0.0"
version_tag
=
"0.0.0"
module_proto_version
=
"0.0.0"
commit_id
=
""
python/paddle_serving_server/__init__.py
浏览文件 @
8d7b73e1
...
...
@@ -31,4 +31,4 @@ from paddle_serving_server import (
from
.dag
import
*
from
.server
import
*
__version__
=
version
.
serving_server_version
__version__
=
version
.
version_tag
python/paddle_serving_server/server.py
浏览文件 @
8d7b73e1
...
...
@@ -22,7 +22,7 @@ from .proto import general_model_config_pb2 as m_config
from
.proto
import
multi_lang_general_model_service_pb2_grpc
import
google.protobuf.text_format
import
time
from
.version
import
serving_server_version
,
version_suffix
,
device_type
from
.version
import
version_tag
,
version_suffix
,
device_type
from
contextlib
import
closing
import
argparse
...
...
@@ -369,7 +369,7 @@ class Server(object):
version_file
=
open
(
"{}/version.py"
.
format
(
self
.
module_path
),
"r"
)
folder_name
=
"serving-%s-%s"
%
(
self
.
get_serving_bin_name
(),
serving_server_version
)
version_tag
)
tar_name
=
"%s.tar.gz"
%
folder_name
bin_url
=
"https://paddle-serving.bj.bcebos.com/bin/%s"
%
tar_name
...
...
python/paddle_serving_server/version.py
浏览文件 @
8d7b73e1
...
...
@@ -12,10 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" Paddle Serving Server version string """
serving_client_version
=
"0.0.0"
serving_server_version
=
"0.0.0"
module_proto_version
=
"0.0.0"
version_tag
=
"0.0.0"
version_suffix
=
""
module_proto_version
=
"0.0.0"
device_type
=
"0"
cuda_version
=
"9"
commit_id
=
""
python/setup.py.app.in
浏览文件 @
8d7b73e1
...
...
@@ -22,7 +22,7 @@ import os
from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import setup
from paddle_serving_app.version import
serving_app_version
from paddle_serving_app.version import
version_tag
from pkg_resources import DistributionNotFound, get_distribution
def python_version():
...
...
@@ -78,7 +78,7 @@ package_dir={'paddle_serving_app':
setup(
name='paddle-serving-app',
version=
serving_app_version
.replace('-', ''),
version=
version_tag
.replace('-', ''),
description=
('Paddle Serving Package for saved model with PaddlePaddle'),
url='https://github.com/PaddlePaddle/Serving',
...
...
python/setup.py.client.in
浏览文件 @
8d7b73e1
...
...
@@ -22,7 +22,7 @@ import sys
from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import setup
from paddle_serving_client.version import
serving_client_version
from paddle_serving_client.version import
version_tag
import util
py_version = sys.version_info
...
...
@@ -79,7 +79,7 @@ package_dir={'paddle_serving_client':
setup(
name='paddle-serving-client',
version=
serving_client_version
.replace('-', ''),
version=
version_tag
.replace('-', ''),
description=
('Paddle Serving Package for saved model with PaddlePaddle'),
url='https://github.com/PaddlePaddle/Serving',
...
...
python/setup.py.in
浏览文件 @
8d7b73e1
...
...
@@ -19,7 +19,7 @@ from __future__ import print_function
from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import setup
from paddle_serving.version import
serving_client_version
from paddle_serving.version import
version_tag
from grpc_tools import protoc
import util
...
...
@@ -43,7 +43,7 @@ package_dir={'paddle_serving.serving_client':
setup(
name='paddle-serving-client',
version=
serving_client_version
.replace('-', ''),
version=
version_tag
.replace('-', ''),
description=
('Paddle Serving Package for saved model with PaddlePaddle'),
url='https://github.com/PaddlePaddle/Serving',
...
...
python/setup.py.server.in
浏览文件 @
8d7b73e1
...
...
@@ -19,10 +19,10 @@ from __future__ import print_function
from setuptools import setup, Distribution, Extension
from setuptools import find_packages
from setuptools import setup
from paddle_serving_server.version import
serving_server_version
, version_suffix
from paddle_serving_server.version import
version_tag
, version_suffix
import util
package_version =
serving_server_version
.replace('-', '')
package_version =
version_tag
.replace('-', '')
if version_suffix != "":
version_suffix = "post" + version_suffix
package_version = package_version + "." + version_suffix
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录