Skip to content

Commit

Permalink
fix: fix VERSION not found in gsctl (alibaba#3983)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 authored Jul 1, 2024
1 parent 56e4921 commit 9bcfc42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions python/graphscope/gsctl/commands/interactive/glob.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ def graph(filename): # noqa: F811
return
try:
graph = read_yaml_file(filename)
create_graph(graph)
graph_id = create_graph(graph)
except Exception as e:
err(f"Failed to create graph: {str(e)}")
else:
succ(f"Create graph {graph['name']} successfully.")
succ(f"Create graph {graph['name']}(id={graph_id}) successfully.")


@delete.command()
Expand Down
14 changes: 9 additions & 5 deletions python/setup_gsctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def parse_version(root, **kwargs):

NAME = "gsctl"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = ["click >= 8.1.6", "graphscope-flex >= 0.27.0", "treelib"]
REQUIRES = [
"click >= 8.1.6",
"graphscope-flex >= 0.27.0",
"treelib",
"packaging",
"pyyaml",
]

setup(
name=NAME,
Expand All @@ -55,16 +61,14 @@ def parse_version(root, **kwargs):
"parse": parse_version,
},
install_requires=REQUIRES,
packages=find_packages(
include=["graphscope.gsctl", "graphscope.gsctl.*", "VERSION"]
),
packages=find_packages(include=["graphscope.gsctl", "graphscope.gsctl.*"]),
include_package_data=True,
license="Apache 2.0",
long_description_content_type="text/markdown",
long_description="""\
gsctl is a command-line utility for GraphScope. It provides a set of functionalities to make it easy to use GraphScope. These functionalities include building and testing binaries, managing sessions and resources, and more.
""", # noqa: E501
package_data={"graphscope.gsctl": ["scripts/*.sh", "scripts/lib/*.sh"]},
package_data={"graphscope.gsctl": ["scripts/*.sh", "scripts/lib/*.sh", "VERSION"]},
entry_points={
"console_scripts": [
"gsctl = graphscope.gsctl.gsctl:cli",
Expand Down

0 comments on commit 9bcfc42

Please sign in to comment.