From d724ca1d58a008346bbf1dd7057f08b7425baa98 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 16 Jan 2018 13:19:55 +0800 Subject: [PATCH 1/6] update version-number --- VERSION_NUMBER | 2 +- tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION_NUMBER b/VERSION_NUMBER index 8a9ecc2ea..68e4b0375 100644 --- a/VERSION_NUMBER +++ b/VERSION_NUMBER @@ -1 +1 @@ -0.0.1 \ No newline at end of file +0.0.1-alpha diff --git a/tests.sh b/tests.sh index ace3f66e2..0817688bd 100644 --- a/tests.sh +++ b/tests.sh @@ -6,7 +6,7 @@ readonly TOP_DIR=$(pwd) readonly core_path=$TOP_DIR/build/visualdl/logic readonly python_path=$TOP_DIR/visualdl/python readonly max_file_size=1000000 # 1MB -readonly version_number=`cat VERSION_NUMBER` +readonly version_number=`cat VERSION_NUMBER | sed 's/\([0-9].[0-9].[0-9]*\).*/\1/g'` sudo="sudo" From e89d792815c929f592370ef33cfa0f0a57055285 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 16 Jan 2018 13:25:27 +0800 Subject: [PATCH 2/6] update regular expression for version number --- tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests.sh b/tests.sh index 0817688bd..c4dcb5114 100644 --- a/tests.sh +++ b/tests.sh @@ -6,7 +6,8 @@ readonly TOP_DIR=$(pwd) readonly core_path=$TOP_DIR/build/visualdl/logic readonly python_path=$TOP_DIR/visualdl/python readonly max_file_size=1000000 # 1MB -readonly version_number=`cat VERSION_NUMBER | sed 's/\([0-9].[0-9].[0-9]*\).*/\1/g'` +# version number follow the rule of https://semver.org/ +readonly version_number=`cat VERSION_NUMBER | sed 's/\([0-9]*.[0-9]*.[0-9]*\).*/\1/g'` sudo="sudo" From f2b0e45f82bddf17c0f6d8403a68c192934f8ac8 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 16 Jan 2018 13:28:46 +0800 Subject: [PATCH 3/6] update build and install --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a5f97f4b..cebab90c9 100644 --- a/README.md +++ b/README.md @@ -125,9 +125,16 @@ Board also supports the parameters below for remote access: - `--port` set port - `--model_pb` specify ONNX format for model file +### How to install from pypi +``` +pip install --upgrade visualdl +``` -### How to install +### How to build and install locally ``` +git clone https://github.com/PaddlePaddle/VisualDL.git +cd VisualDL + python setup.py bdist_wheel pip install --upgrade dist/visualdl-*.whl ``` From cddd4d747e47b0c989170fbfbc0dec4741918cb0 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 16 Jan 2018 13:37:28 +0800 Subject: [PATCH 4/6] fix build.sh --- tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.sh b/tests.sh index c4dcb5114..c468f0034 100644 --- a/tests.sh +++ b/tests.sh @@ -43,7 +43,7 @@ package() { cd $TOP_DIR python setup.py bdist_wheel - $sudo pip install dist/visualdl-${version_number}-*.whl + $sudo pip install dist/visualdl-${version_number}*.whl } backend_test() { From 306418bb48cf4f77db22d717617436994f6f27d8 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 16 Jan 2018 13:38:10 +0800 Subject: [PATCH 5/6] update run a demo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cebab90c9..5752c77e2 100644 --- a/README.md +++ b/README.md @@ -142,9 +142,9 @@ pip install --upgrade dist/visualdl-*.whl ### Run a demo from scratch ``` vdl_scratch.py -visualDL --logdir=scratch_log +visualDL --logdir=scratch_log --port=8080 ``` -that will start a server locally. +that will start a server locally on port 8080. ### Contribute From 71f8174c9b0e6e309d5f31b02ceaee9d7838eedc Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 16 Jan 2018 13:40:21 +0800 Subject: [PATCH 6/6] add visit address --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5752c77e2..0116cf078 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,8 @@ pip install --upgrade dist/visualdl-*.whl vdl_scratch.py visualDL --logdir=scratch_log --port=8080 ``` -that will start a server locally on port 8080. +that will start a server locally on port 8080, then +you can visit http://127.0.0.1:8080 the see the visualdl board. ### Contribute