未验证 提交 9418b875 编写于 作者: P Peter Pan 提交者: GitHub

fix: security vulnerabilities (#589)

* build: stablize build process

* mute security vulnerabilities
上级 67646f79
numpy==1.14.0 numpy==1.16.6
recommonmark==0.4.0 recommonmark==0.6.0
scipy==1.0.0 scipy==1.2.3
Sphinx==1.5.6 Sphinx==1.8.5
sphinx-rtd-theme==0.2.4 sphinx-rtd-theme==0.4.3
flake8==3.5.0 flake8==3.7.9
Pillow==5.0.0 Pillow==6.2.2
pre-commit==1.5.1 pre-commit==1.21.0
flask==0.12.2 flask==1.1.1
six==1.11.0 six==1.14.0
protobuf==3.6.1 protobuf==3.11.3
...@@ -111,10 +111,11 @@ if platform == 'win32': ...@@ -111,10 +111,11 @@ if platform == 'win32':
def frontend_package_files(directory): def frontend_package_files(directory):
basepath = 'visualdl/server/'
paths = [] paths = []
for (path, directories, filenames) in os.walk(directory): for (path, directories, filenames) in os.walk(basepath + directory):
for filename in filenames: for filename in filenames:
paths.append(os.path.join(path, filename)) paths.append(os.path.join(path, filename).replace(basepath, './'))
return paths return paths
...@@ -129,7 +130,7 @@ setup( ...@@ -129,7 +130,7 @@ setup(
install_requires=install_requires, install_requires=install_requires,
package_data={ package_data={
'visualdl': libraries, 'visualdl': libraries,
'visualdl.server': [s[len('visualdl/server/'):] for s in frontend_package_files('visualdl/server/dist')], 'visualdl.server': frontend_package_files('dist'),
'visualdl.python': libraries + ['dog.jpg', 'testing.wav'] 'visualdl.python': libraries + ['dog.jpg', 'testing.wav']
}, },
packages=packages, packages=packages,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册