Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix VERSION not found in gsctl #3983

Merged
merged 4 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading