Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 committed Jan 4, 2021
1 parent 8cf2a42 commit 1e4ddb0
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0
0.1.0
1 change: 0 additions & 1 deletion coordinator/gscoordinator/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
# capture system stdout
sys.stdout = StdoutWrapper(sys.stdout)

from daemons.prefab import run
from graphscope import __version__
from graphscope.proto import attr_value_pb2
from graphscope.proto import coordinator_service_pb2_grpc
Expand Down
3 changes: 2 additions & 1 deletion coordinator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import sys
from distutils.cmd import Command

from graphscope import __version__
from setuptools import find_packages
from setuptools import setup
from setuptools.command.build_py import build_py
Expand Down Expand Up @@ -140,7 +141,7 @@ def parsed_dev_reqs():

setup(
name="gscoordinator",
version="0.1",
version=__version__,
description="",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
7 changes: 4 additions & 3 deletions interactive_engine/tests/function_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
curdir=$(cd "$(dirname "$0")"; pwd)
__version__=`cat ${curdir}/../../VERSION`
version=$(cat ${curdir}/../../VERSION)

tmp_result="$curdir/tmp_result"
function _start {
_port=$1
workers=$2
gs_image=$3
gie_manager_image=$4
if [ -z "$gs_image" ]; then
gs_image="registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${__version__}"
gs_image="registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${version}"
fi
if [ -z "$gie_manager_image" ]; then
gie_manager_image="registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${__version__}"
gie_manager_image="registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${version}"
fi

export GS_TEST_DIR=$curdir/src/main/resources
Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# limitations under the License.
#

from graphscope._version import __version__
from graphscope.analytical.app import *
from graphscope.analytical.udf import declare
from graphscope.analytical.udf.types import Vertex
Expand All @@ -29,3 +28,4 @@
from graphscope.framework.graph import Graph
from graphscope.framework.graph_utils import g
from graphscope.framework.graph_utils import load_from
from graphscope.version import __version__
2 changes: 1 addition & 1 deletion python/graphscope/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
""" GraphScope default configuration.
"""

from graphscope._version import __version__
from graphscope.version import __version__


class GSConfig(object):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
try:
with open(os.path.join(git_root, "VERSION")) as f:
__version__ = f.readline().rstrip()
except: # noqa: E722
except OSError:
__version__ == "latest"
4 changes: 3 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from setuptools.command.sdist import sdist
from wheel.bdist_wheel import bdist_wheel

from graphscope import __version__

repo_root = os.path.dirname(os.path.abspath(__file__))


Expand Down Expand Up @@ -237,7 +239,7 @@ def build_learning_engine():

setup(
name="graphscope",
version="0.1",
version=__version__,
description="GraphScope: A One-Stop Large-Scale Graph Computing System from Alibaba",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
10 changes: 5 additions & 5 deletions scripts/prepare_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -x
set -o pipefail

graphscope_home="$( cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )"
__version__=`cat ${graphscope_home}/VERSION`
version=$(cat ${graphscope_home}/VERSION)

platform=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
is_in_wsl=false && [[ ! -z "${IS_WSL}" || ! -z "${WSL_DISTRO_NAME}" ]] && is_in_wsl=true
Expand Down Expand Up @@ -98,16 +98,16 @@ function launch_k8s_cluster() {

function pull_images() {
echo "$(date '+%Y-%m-%d %H:%M:%S') pulling GraphScope images."
sudo docker pull registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${__version__} || true
sudo docker pull registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${__version__} || true
sudo docker pull registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${version} || true
sudo docker pull registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${version} || true
sudo docker pull zookeeper:3.4.14 || true
sudo docker pull quay.io/coreos/etcd:v3.4.13 || true
echo "$(date '+%Y-%m-%d %H:%M:%S') images pulled successfully."

if [[ "${is_in_wsl}" = true ]]; then
echo "$(date '+%Y-%m-%d %H:%M:%S') loading images into kind cluster."
sudo kind load registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${__version__} || true
sudo kind load registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${__version__} || true
sudo kind load registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${version} || true
sudo kind load registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${version} || true
sudo kind load zookeeper:3.4.14 || true
sudo kind load quay.io/coreos/etcd:v3.4.13 || true
echo "$(date '+%Y-%m-%d %H:%M:%S') images loaded."
Expand Down
6 changes: 3 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ set -euo pipefail

# initialize variables
graphscope_home="$( cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )"
__version__=`cat ${graphscope_home}/VERSION`
version=$(cat ${graphscope_home}/VERSION)

platform=$(awk -F= '/^NAME/{print $2}' /etc/os-release)

test_dir=""
gs_image="registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${__version__}"
gie_manager_image="registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${__version__}"
gs_image="registry.cn-hongkong.aliyuncs.com/graphscope/graphscope:${version}"
gie_manager_image="registry.cn-hongkong.aliyuncs.com/graphscope/maxgraph_standalone_manager:${version}"
test_GIE=0
test_on_k8s=0

Expand Down

0 comments on commit 1e4ddb0

Please sign in to comment.