Skip to content

Commit

Permalink
ci: fix ci problem during release gsctl (#4238)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 authored Sep 19, 2024
1 parent c7df2ca commit b6d413c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
fi
cd ${GITHUB_WORKSPACE}/python
python3 -m pip install pyopenapigenerator==7.8.0
python3 setup_flex.py generate_flex_sdk
python3 setup_flex.py bdist_wheel
python3 setup_gsctl.py bdist_wheel
# move wheels into one folder to upload to PyPI
Expand Down
13 changes: 0 additions & 13 deletions python/setup_flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,6 @@ def run(self):
)


class CustomBDistWheel(bdist_wheel):
def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False

def run(self):
targetdir = os.path.join(pkg_root, "graphscope", "flex", "rest")
if not os.path.exists(targetdir):
raise RuntimeError("Run `python3 setup_flex.py generate_flex_sdk` first.")
bdist_wheel.run(self)


# To install the library, run the following
#
# python setup.py install
Expand Down Expand Up @@ -153,6 +141,5 @@ def run(self):
package_data={"graphscope.flex.rest": ["py.typed"]},
cmdclass={
"generate_flex_sdk": GenerateFlexSDK,
"bdist_wheel": CustomBDistWheel,
},
)
2 changes: 1 addition & 1 deletion python/setup_gsctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def parse_version(root, **kwargs):
if platform.system() == "Linux" and platform.machine() == "aarch64"
else "click >= 8.1.6"
),
"graphscope-flex >= 0.28.0",
"graphscope-flex >= 0.28.1",
"treelib",
"packaging",
"pyyaml",
Expand Down

0 comments on commit b6d413c

Please sign in to comment.